Part Number Hot Search : 
SMCJ300 SY74PT C3405 BC846F 380D45 2SC4672 HCA10014 MC75450
Product Description
Full Text Search
 

To Download EM73461B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary general description general description general description general description general description EM73461B is an advanced single chip cmos 4-bit micro-controller. it contains 4k/8k-byte rom, 244-nibble ram, 4-bit alu, 13-level subroutine nesting, 22-stage time base, two 12-bit timer/counters for the kernel function. EM73461B also contains 6 interrupt sources, 1 input port, 2 bidirection ports, lcd display (32x4), and one high speed timer/counter with melody output. EM73461B has plentiful operating modes (slow, idle, stop) intended to reduce the power consumption. features features features features features ? operation voltage : 2.4v to 3.6v.  clock source : dual clock system. low-frequency oscillator is crystal or rc oscillator (32k hz, connect an external resistor) by mask option and high-frequency oscillator is rc oscillator (connect an external resistor), or built-in internal oscillator.  instruction set : 109 powerful instructions for 4k rom / 107 powerful instructoins for 8k rom.  instruction cycle time : 0.85s for 9.2m or 1.7s for 4.6m or 2s for 4mhz. selected by mask option (high speed clock). 122 s or 244s by frequency double mask option for 32768 hz (low speed clock).  rom capacity : 4096 x 8 bits / 8192 x 8 bits rom are choosed by mask option.  ram capacity : 244 x 4 bits.  input port : 1 port (p0). p0(0..3) and idle releasing function are available by mask option.  bidirection port : 2 ports (p4, p8). p4.0 and sound is available by mask option. p4.1 is shared with htc external input. p8(0..3) and idle releasing function are available by mask option.  12-bit timer/counter : two 12-bit timer/counters are programmable for timer, event counter and pulse width measurement.  high speed timer/counter : one 8-bit high speed timer/counters is programmable for auto load timer, melody output and pulse width measurement.  built-in time base counter : 22 stages.  subroutine nesting : up to 13 levels.  interrupt : external . . . . . 2 input interrupt sources. internal . . . . . . 2 timer overflow interrupts, 1 time base interrupt. 1 high speed timer overflow interrupt.  lcd driver : 32 x 4 dots, 1/4duty, 1/3duty, 1/2duty, static, 1/2 bias, 1/3 bias; 6 options selectable.  power saving function : slow, idle, stop operation mode.  package type : chip form 61 pins. applications applications applications applications applications EM73461B is suitable for application in family applicance, consumer products, hand held games and the toy controller.
2 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary function block diagram function block diagram function block diagram function block diagram function block diagram symbol symbol symbol symbol symbol pin-type pin-type pin-type pin-type pin-type function function function function function v dd power supply (+) v ss power supply (-) reset reset-a system reset input signal, low active mask option : none pull-up clk osc-i/osc-g rc clock source or capacitor connecting pin for high frequency oscillator lxin osc-b/osc-h1 crystal/rc connecting pin for low speed clock source lxout osc-b crystal connecting pin for low speed clock source p0(0..3)/wakeup0..3 input-k 4-bit input port with idle releasing function mask option : wakeup enable, negative edge release, pull-up wakeup enable, negative edge release, none wakeup enable, positive edge release, pull-down wakeup enable, positive edge release, none wakeup disable, pull-up wakeup disable, pull-down wakeup disable, none p4.0/sound i/o-r 1-bit bidirection i/o port or inverse sound effect output mask option : sound enable, high current push-pull sound disable, open-drain pin descriptions pin descriptions pin descriptions pin descriptions pin descriptions interrupt control time base timer/counter (ta,tb) system control instruction decoder instruction register rom pc data bus reset control clock generator timing generator sleep mode control data pointer acc alu flag zc s g stack pointer stack rom hr lr i/o control p0.0/wakeup0 p0.1/wakeup1 p0.2/wakeup2 p0.3/wakeup3 p4.0/sound p4.1trgh p4.2 p4.3 p8.0(int1)/wakeupa p8.1(trgb)/wakeupb p8.2(int0)/wakeupc p8.3(trga)/wakeupd reset clk clock generator (slow) lxout lxin htc dp sp lcd va vb v1 v2 v3 com0~com3 sound seg0~seg31
3 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary symbol symbol symbol symbol symbol pin-type pin-type pin-type pin-type pin-type function function function function function sound disable, low current push-pull sound disable, normal current push-pull sound disable, high current push-pull p4.1/trgh i/o-t 1-bit bidirection i/o port with htc external input mask option : nmos open-drain pmos open-drain low current push-pull normal current push-pull high current push-pull p4(2,3) i/o-r 2-bit bidirection i/o port with high current source mask option : nmos open-drain pmos open-drain low current push-pull normal current push-pull high current push-pull p8.0(int1)/wakeupa, i/o-s 2-bit bidirection i/o port with external interrupt source input and idle p8.2(int0)/wakeupc releasing function mask option : wakeup enable, low current push-pull wakeup enable, normal current push-pull wakeup disable, open-drain wakeup disable, low current push-pull wakeup disable, normal current push-pull p8.1(trgb)/wakeupb i/o-s 2-bit bidirection i/o port with time/counter a,b external input and idle p8.3(trga)/wakeupd releasing function mask option : wakeup enable, low current push-pull wakeup enable, normal current push-pull wakeup disable, open-drain wakeup disable, low current push-pull wakeup disable, normal current push-pull sound melody output va,vb, v1, v2, v3 connect the capacitors for lcd bias voltage com0~com3 lcd common output pins seg0~seg31 lcd segment output pins test tie vss as package type, no connecting as cob type. pin descriptions pin descriptions pin descriptions pin descriptions pin descriptions function descriptions function descriptions function descriptions function descriptions function descriptions program rom (4k x 8 bits) program rom (4k x 8 bits) program rom (4k x 8 bits) program rom (4k x 8 bits) program rom (4k x 8 bits) 4 k x 8 bits program rom contains user's program and some fixed data. the basic structure of program rom can be divided into 5 parts. 1. address 000h: reset start address. 2. address 002h - 00ch : 6 kinds of interrupt service routine entry addresses. 3. address 00eh-086h : scall subroutine entry address, only available at 00eh,016h,01eh,026h, 02eh, 036h, 03eh, 046h, 04eh, 056h, 05eh, 066h, 06eh, 076h, 07eh, 086h. 4. address 000h - 7ffh : lcall subroutine entry address. 5. address 000h - fffh : except used as above function, the other region can be used as user's program region.
4 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary address 4096 x 8 bits 000h reset start address 002h int0; external interrupt service routine entry address 004h htci; high speed timer interrupt service entry address 006h trga; timer/countera interrupt service routine entry address 008h trgb; timer/counter b interrupt service routine entry address 00ah tbi; time base interrupt service routine entry address 00ch int1; external interrupt service routine entry address 00eh 086h fffh user's program and fixed data are stored in the program rom. user's program is according the pc value to send next executed instruction code. fixed data can be read out by table-look-up instruction. . . . . . . scall, subroutine call entry address table-look-up instruction : table -look-up instruction is depended on the data pointer (dp) to indicate to rom address, then to get the rom code data. ldax ldax ldax ldax ldax acc acc acc acc acc rom[dp] rom[dp] rom[dp] rom[dp] rom[dp] l l l l l ldaxi ldaxi ldaxi ldaxi ldaxi acc acc acc acc acc rom[dp] rom[dp] rom[dp] rom[dp] rom[dp] h h h h h ,dp+1 ,dp+1 ,dp+1 ,dp+1 ,dp+1 dp is a 12-bit data register which can store the program rom address to be the pointer for the rom code data. first, user load rom address into dp by instruction "stadpl, stadpm, stadph", then user can get the lower nibble of rom code data by instruction "ldax" and higher nibble by instruction "ldaxi". program example: read out the rom code of address 777h by table-look-up instruction. ldia #07h; stadpl ; dp3-0 07h stadpm ; dp5-4 07h stadph ; dp8-6 07h, load dp=777h : ldl #00h; ldh #03h; ldax ; acc 6h stami ; ram[30] 6h ldaxi ; acc 5h stam ; ram[31] 5h ; org 777h data 56h; :
5 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary program rom (8k x 8 bits) program rom (8k x 8 bits) program rom (8k x 8 bits) program rom (8k x 8 bits) program rom (8k x 8 bits) 8 k x 8 bits program rom contains user's program and some fixed data . the basic structure of program rom can be divided into 6 parts. 1. address 0000h: reset start address. 2. address 0002h - 000ch : 6 kinds of interrupt service routine entry addresses . 3. address 000eh - 0086h : scall subroutine entry address, only available at 000eh, 0016h, 001eh, 0026h, 002eh, 0036h, 003eh, 0046h, 004eh, 0056h, 005eh, 0066h, 006eh, 0076h, 007eh, 0086h. 4. address 0000h - 07ffh : lcall subroutine entry address. 5. address 0000h - 1fffh : except used as above function, the other region can be used as user's program region. 6. address 1000h - 1fffh : fixed data stortage area. address 8192 x 8 bits 000h reset start address 002h int0; external interrupt service routine entry address 004h htci; high speed timer interrupt service entry address 006h trga; timer/countera interrupt service routine entry address 008h trgb; timer/counter b interrupt service routine entry address lcall entry address 00ah tbi; time base interrupt service routine entry address 00ch int1; external interrupt service routine entry address 00eh 086h 800h 1000h :: fffh bank 1 fixed data area 1fffh user's program and fixed data are stored in the program rom. user's program is according the pc value to send next executed instruction code. fixed data can be read out by table-look-up instruction. please note that fixed data only can be stored in 8k rom bank 1. the program counter is a 13-bit binary counter. the pc can defined 8k rom. scall, subroutine call entry address
6 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary data. first, user load rom address into dp by instruction "stadpl, stadpm, stadph", then user can get the lower nibble of rom code data by instruction "ldax" and higher nibble by instruction "ldaxi". program example: read out the rom code of address 1777h by table-look-up instruction for 8k rom. ldia #07h; stadpl ; dp3-0 07h stadpm ; dp5-4 07h stadph ; dp8-6 07h, load dp=1777h : ldl #00h; ldh #03h; ldax ; acc 6h stami ; ram[30] 6h ldaxi ; acc 5h stam ; ram[31] 5h ; bank 1; org 1777h data 56h; : data ram ( 244-nibble ) data ram ( 244-nibble ) data ram ( 244-nibble ) data ram ( 244-nibble ) data ram ( 244-nibble ) there is total 244 - nibble data ram from address 00 to f3h data ram includes 3 parts: zero page region, stacks and data area. table-look-up instruction : table -look-up instruction is depended on the data pointer (dp) to indicate to rom address, then to get the rom code data. ldax ldax ldax ldax ldax acc acc acc acc acc rom[dp] rom[dp] rom[dp] rom[dp] rom[dp] l l l l l ldaxi ldaxi ldaxi ldaxi ldaxi acc acc acc acc acc rom[dp] rom[dp] rom[dp] rom[dp] rom[dp] h h h h h ,dp+1 ,dp+1 ,dp+1 ,dp+1 ,dp+1 dp is a 13-bit data register which can store the program rom address to be the pointer for the rom code level 0 level 4 level 8 level c level 1 level 5 level 9 level 2 level 6 level a level 3 level17 level b b0h ~ bfh c0h ~ cfh d0h ~ dfh e0h ~ efh f0h ~ f3h address 00h~0fh 10h~1fh 20h~2fh 30h~3fh 40h~4fh : zero page lcd display ram increment
7 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary for example: lda x ; acc ram[x] sta x ; ram[x] acc (3) zero-page addressing mode for zero-page region, user can using direct addressing to write or do any arithematic, comparsion or bit manupulated operation directly. for example: std #k,y ; ram[y] #k add #k,y; ram[y] ram[y] + #k lcd display ram: ram address from 20h ~ 3fh are the lcd display ram area, the ram data of this region can't be operated by instruction ldhl xx and exhl. zero-page: from 00h to 0fh is the location of zero-page. it is used as the pointer in zero-page addressing mode for the instruction of "std #k,y; add #k,y; clr y,b; cmp k,y". program example: to wirte immediate data "07h" to address "03h" of ram and to clear bit 2 of ram. std #07h, 03h ; ram[03] 07h clr 0eh,2 ; ram[0eh] 2 0 stack: there are 13-level (maximum) stack for user using for subroutine (including interrupt and call). user can assign any level be the starting stack by giving the level number to stack pointer (sp). when user using any instruction of call or subroutine, before entry the subroutine, the previous pc address will be saved into stack until return from those subroutines, the pc value will be restored by the data saved in stack. data area: except the special area used by user, the whole ram can be used as data area for storing and loading general data. addressing mode (1) indirect addressing mode: indirect addressing mode indicates the ram address by specified hl register. for example: ldam ; acc ram[hl] stam ; ram[hl] acc (2) direct addressing mode: direct addressing mode indicates the ram address by immediate data.
8 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary program counter (4k/8k rom) program counter (4k/8k rom) program counter (4k/8k rom) program counter (4k/8k rom) program counter (4k/8k rom) program counter ( pc ) is composed by a 12-bit counter for 4k rom/13-bit counter for 8k rom which indicates the next executed address for the instruction of program rom. for a 4k - byte size rom, pc can indicate address form 000h - fffh, for branch and call instrcutions, pc is changed by instruction indicating. for a 8k - byte size rom, pc can indicate address form 0000h - 1fffh, for branch and call instrcutions, pc is changed by instruction indicating. (1) branch instruction: (1) branch instruction: (1) branch instruction: (1) branch instruction: (1) branch instruction: sbr a sbr a sbr a sbr a sbr a object code: 00aa aaaa condition: sf=1; pc pc 11-6.a ( branch condition satisified ) pc hold original pc value+1 aaaaaa (for 4k/8k rom) sf=0; pc pc +1( branch condition not satisified ) pc original pc value + 1 lbr a lbr a lbr a lbr a lbr a object code: 1100 aaaa aaaa aaaa condition: sf=1; pc a ( branch condition satisified ) pc aaaaaaaaaaa a (for 4k/8k rom) sf=0 ; pc pc + 2 ( branch condition not satisified ) pc original pc value + 2 slbr a slbr a slbr a slbr a slbr a object code: 0101 0101 1100 aaaa aaaa aaaa (a : 1000 ~ 1fffh) 0101 0111 1100 aaaa aaaa aaaa (a : 0000 ~ 0fffh) condition: sf=1; pc a ( branch condition satisified ) pc aaaaaaaaaaa a (only for 8k rom) sf=0 ; pc pc + 2 ( branch condition not satisified ) pc original pc value + 2
9 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (2) subroutine instruction: (2) subroutine instruction: (2) subroutine instruction: (2) subroutine instruction: (2) subroutine instruction: scall a scall a scall a scall a scall a object code: 1110 nnnn condition : pc a ; a=8n+6 ; n=1..15 ; a=86h, n=0 pc0000 aaaaaaaa lcall a lcall a lcall a lcall a lcall a object code: 0100 0 aaa aaaa aaaa condition: pc a pc0aaaaaaaaaaa ret ret ret ret ret object code: 0100 1111 condition: pc stack[sp]; sp + 1 pc the return address stored in stack (for 4k rom) pc the return address stored in stack (for 8k rom) rt i rt i rt i rt i rt i object code: 0100 1101 condition : flag. pc stack[sp]; ei 1; sp + 1 pc the return address stored in stack (for 4k rom) pc the return address stored in stack (for 8k rom) (3) interrupt acceptance operation: (3) interrupt acceptance operation: (3) interrupt acceptance operation: (3) interrupt acceptance operation: (3) interrupt acceptance operation: when an interrupt is accepted, the original pc is pushed into stack and interrupt vector will be loaded into pc,the interrupt vectors are as following: int0 int0 int0 int0 int0 (external interrupt from p8.2) pc000000000010 (for 4k rom) pc000000000001 0 (for 8k rom) trga trga trga trga trga (timer a overflow interrupt) pc000000000110 (for 4k rom) pc000000000011 0 (for 8k rom)
10 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary accumulator accumulator accumulator accumulator accumulator accumulator is a 4-bit data register for temporary data. for the arithematic, logic and comparative opertion .., acc plays a role which holds the source data and result. flags flags flags flags flags there are four kinds of flag, cf ( carry flag ), zf ( zero flag ), sf ( status flag ) and gf ( general flag ), these 4 1-bit flags are affected by the arithematic, logic and comparative .... operation. all flags will be put into stack when an interrupt subroutine is served, and the flags will be restored after rti instruction executed. trgb trgb trgb trgb trgb (time b overflow interrupt) pc000000001000 (for 4k rom) pc000000000100 0 (for 8k rom) tbi tbi tbi tbi tbi (time base interrupt) pc000000001010 (for 4k rom) pc000000000101 0 (for 8k rom) int1 int1 int1 int1 int1 (external interrupt from p8.0) pc000000001100 (for 4k rom) pc000000000110 0 (for 8k rom) (4) reset operation: (4) reset operation: (4) reset operation: (4) reset operation: (4) reset operation: pc000000000000 (for 4k rom) pc000000000000 0 (for 8k rom) (5) other operations: (5) other operations: (5) other operations: (5) other operations: (5) other operations: for 1-byte instruction execution: pc + 1 for 2-byte instruction execution: pc + 2
11 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (1) carry flag ( cf ) the carry flag is affected by following operation: a. addition : cf as a carry out indicator, when the addition operation has a carry-out, cf will be "1", in another word, if the operation has no carry-out, cf will be "0". b. subtraction : cf as a borrow-in indicator, when the subtraction operation must has a borrow, in the cf will be "0", in another word, if no borrow-in, cf will be "1". c. comparision: cf is as a borrow-in indicator for comparision operation as the same as subtraction operation. d. rotation: cf shifts into the empty bit of accumulator for the rotation and holds the shift out data after rotation. e. cf test instruction : for tfcfc instruction, the content of cf sends into sf then clear itself "0". for ttsfc instruction, the content of cf sends into sf then set itself "1". (2) zero flag ( zf ) zf is affected by the result of alu, if the alu operation generate a "0" result, the zf will be "1", otherwise, the zf will be "0". (3) status flag ( sf ) the sf is affected by instruction operation and system status. a. sf is initiated to "1" for reset condition. b. branch instruction is decided by sf, when sf=1, branch condition will be satisified, otherwise, branch condition will not be satisified by sf = 0. @ (4) general flag ( gf ) gf is a one bit general purpose register which can be set, clear, test by instruction sgf, cgf and tgs. program example: check following arithematic operation for cf, zf, sf @ : just for 4k rom.
12 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary cf zf sf ldia #00h; - 1 1 ldia #03h; - 0 1 adda #05h; - 0 1 adda #0dh; - 0 0 adda #0eh; - 0 0 alu alu alu alu alu the arithematic operation of 4 - bit data is performed in alu unit. there are 2 flags can be affected by the result of alu operation, zf and sf. the operation of alu can be affected by cf only. alu structure alu structure alu structure alu structure alu structure alu supported user arithematic operation function, including : addition, subtraction and rotaion. alu function alu function alu function alu function alu function (1) addition: for instruction addam, adcam, addm #k, add #k,y .... alu supports addition function. the addition operation can affect cf and zf. for addition operation, if the result is "0", zf will be "1", otherwise, not equal "0", zf will be "0". when the addition operation has a carry-out, cf will be "1", otherwise, cf will be "0". example: operation carry zero 3+4=7 0 0 7+f=6 1 0 0+0=0 0 1 8+8=0 1 1 (2) subtraction: for instruction subm #k, suba #k, sbcam, decm... alu supports user subtraction function. the subtraction operation can affect cf and zf, for subtraction operation, if the result is negative, cf will be "0", it means a borrow out, otherwise, if the result is positive, cf will be "1". for zf, if the result of subtraction operation is "0", the zf will be "1", otherwise, zf will be "1". zf cf sf gf alu data bus
13 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary acc cf msb lsb 3 2 1 0 h register 3 2 1 0 l register acc cf msb lsb example: operation carry zero 8-4=4 1 0 7-f= -8(1000) 0 0 9-9=0 1 1 (3) rotation: there are two kinds of rotation operation, one is rotation left, the other is rotation right. rlca instruction rotates acc value to left, shift the cf value into the lsb bit of acc and the shift out data will be hold in cf. rrca instruction operation rotates acc value to right, shift the cf value into the msb bit of acc and the shift out data will be hold in cf. program example: to rotate acc right and shift a "1" into the msb bit of acc. ttcfs; cf 1 rrca; rotate acc right and shift cf=1 into msb. hl register hl register hl register hl register hl register hl register are two 4-bit registers, they are used as a pair of pointer for the address of ram memory and also 2 independent temporary 4-bit data registers. for some instruction, l register can be a pointer to indicate the pin number ( port4 ). hl register structure hl register structure hl register structure hl register structure hl register structure hl register function hl register function hl register function hl register function hl register function
14 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (1) for instruction : ldl #k, ldh #k, tha, thl, incl, decl, exal, exah, hl register used as a temporary register. program example: load immediate data "5h" into l register, "dh" into h register. ldl #05h; ldh #0dh; (2) for instruction ldam, stam, stami .., hl register used as a pointer for the address of ram memory. program example: store immediate data #ah into ram of address 35h. ldl #5h; ldh #3h; stdmi #0ah; ram[35] ah (3) for instruction : selp, clpl, tfpl, l regieter be a pointer to indicate the bit of i/o port. when lr = 0 indicate p4.0 program example: to set bit 0 of port4 to "1" ldl #00h; sepl ; p4.0 1 stack pointer (sp) stack pointer (sp) stack pointer (sp) stack pointer (sp) stack pointer (sp) stack pointer is a 4-bit register which stores the present stack level number. before using stack, user must set the sp value first, cpu will not initiate the sp value after reset condition . when a new subroutine is accepted, the sp will be decreased one automatically, in another word, if returning from a subroutine, the sp will be increased one. the data transfer between acc and sp is by instruction of "ldasp" and "stasp". data pointer (dp) data pointer (dp) data pointer (dp) data pointer (dp) data pointer (dp) data pointer is a 12-bit register which stores the address of rom can indicate the rom code data specified by user (refer to data rom). clock and timing generator clock and timing generator clock and timing generator clock and timing generator clock and timing generator the clock generator is supported by a single clock system, the clock source comes from crystal (resonator) or rc oscillation is decided by mask option, the working frequency range is 480 k hz to 4 mhz depending on the working voltage. clock generator structure clock generator structure clock generator structure clock generator structure clock generator structure there are two clock generator for system clock control. p14 is the status register for the cpu status. p16, p19 and p22 are the system clock mode control ports.
15 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary system clock mode control system clock mode control system clock mode control system clock mode control system clock mode control the system clock mode controller can start or stop the high-frequency and low-frequency clock oscillator and switch between the basic clocks. EM73461B has four operation modes (normal, slow,idle and stop operation modes). operation mode operation mode operation mode operation mode operation mode oscillator oscillator oscillator oscillator oscillator system clock system clock system clock system clock system clock available function available function available function available function available function one instruction cycle one instruction cycle one instruction cycle one instruction cycle one instruction cycle normal high, low frequency high frequency clock lcd, high speed timer 8/fc slow low frequency low frequency clock lcd, high speed timer 4/fs or 8/fs by mask option idle low frequency cpu stops lcd - stop none cpu stops all disable - stop operation mode normal operation mode idle (cpu stops) slow operation mode reset operation high osc : stopped low osc : stopped high osc : stopped low osc : oscillating high osc : oscillating low osc : oscillating high osc : stopped low osc : oscillating command (p16) command (p16) command (p22) command (p22) command (p19) reset reset reset reset reset release i/o wakeup i/o or internal timer wakeup high-frequency generator system clock mode control fc fs system control rc connection crystal connection lxin lxout p14 p16 p22 p19 low-frequency generator mask option for choose crystal or rc oscillator lxin lxout lxin clk clk clk rc connection pll connection 20pf 20pf 1.2m ? 0.022uf 330k ?
16 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary normal operation mode normal operation mode normal operation mode normal operation mode normal operation mode the 4-bit c is in the normal operation mode when the cpu is reseted. this mode is a dual clock system (high-frequency(fc) and low-frequency(fs) clocks oscillating). it can be changed to slow or stop operation mode by the command register (p22 or p16). the instruction cycle is 8/fc in normal operation mode. lcd display and high speed timer/counter with melody output are available for the normal operation mode. slow operation mode slow operation mode slow operation mode slow operation mode slow operation mode the slow operation mode is a single clock system (low-frequency(fs) clock oscillating). it can be changed to the dual operation mode with the commoand register (p22), stop operation mode with p16 and idle operation mode with p19. the instruction cycle is 4/fs or 8/fs by frequency double mask option in slow operation mode. lcd display and high speed timer/counter with melody output are available for the slow operation mode. p22 3210 initial value : 0000 * som * * som select operation mode 0 normal operation mode 1 slow operation mode p14 32 10 initial value : *000 * wks lfs cpus lfs low-frequency status cpus cpu status 0 lxin source is not stable 0 normal operation mode 1 lxin source is stable 1 slow operation mode wks wakeup status 0 wakeup not by internal timer 1 wakeup by internal timer port14 is the status register for cpu. p14.0 (cpu status) and p14.1 (low-frequency status) are read-only bits. p14.2 (wakeup status) will be set to "1" when cpu is wake-up by internal timer. p14.2 will be cleared to "0" when user out data to p14. idle operation mode idle operation mode idle operation mode idle operation mode idle operation mode the idle operation mode suspends all slow operations except for the low-frequency clock and lcd driver. it retains the internal status with low power consumption without stopping the clock function and lcd display. lcd display is available for the idle operation mode. sound generator is disabled in this mode. the idle operation mode will be wakeup and return to the slow operation mode by the internal timing generator or i/o pins (p0(0..3)/wakeup 0..3 or p8(0..3)/wakeupa..d).
17 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary idme sidr idme enable idle mode sidr select idle releasing condition 0 1 enable idle mode 0 0 p0(0..3), p8(0..3) pin input * * reserved 0 1 p0(0..3), p8(0..3) pin input and 1 sec signal 1 0 p0(0..3), p8(0..3) pin input and 0.5 sec signal 1 1 p0(0..3), p8(0..3) pin input and 15.625 ms signal stop operation mode stop operation mode stop operation mode stop operation mode stop operation mode the stop operation mode suspends system operation and holds the internal status immediately before the suspension with low power consumption. this mode will be released by reset or i/o pins (p0(0..3)/ wakeup 0..3 or p8(0..3)/wakeup a..d). lcd display and high speed timer/counter with melody output are disabled in the mode. time base interrupt ( tbi ) time base interrupt ( tbi ) time base interrupt ( tbi ) time base interrupt ( tbi ) time base interrupt ( tbi ) the time base can be used to generate a fixed frequency interrupt. there are 8 kinds of frequencies can be selected by setting p25. p25 3 2 1 0 i nitial value : 0000 p25 normal operation mode slow operation mode 0 0 x x interrupt disable interrupt disable 0 1 0 0 interrupt frequency lxin / 2 3 hz reserved 0 1 0 1 interrupt frequency lxin / 2 4 hz reserved 0 1 1 0 interrupt frequency lxin / 2 5 hz reserved 0 1 1 1 interrupt frequency lxin / 2 14 hz interrupt frequency lxin / 2 14 hz 1 1 0 0 interrupt frequency lxin / 2 1 hz reserved 1 1 0 1 interrupt frequency lxin / 2 6 hz interrupt frequency lxin / 2 6 hz 1 1 1 0 interrupt frequency lxin / 2 8 hz interrupt frequency lxin / 2 8 hz 1 1 1 1 interrupt frequency lxin / 2 10 hz interrupt frequency lxin / 2 10 hz 1 0 x x reserved reserved timer / counter ( timera, timerb ) timer / counter ( timera, timerb ) timer / counter ( timera, timerb ) timer / counter ( timera, timerb ) timer / counter ( timera, timerb ) timer/counters can support user three special functions: 1. even counter 2. timer. 3. pulse-width measurement. p16 32 1 0 initial value : 0000 spme swwt spme enable stop mode swwt set wake-up warm-up time 0 1 enable stop mode 0 0 wait normal frequency ready (2 6 /fc) * * reserved 0 1 wait slow frequency ready (2 14 /fs) 1 0 wait slow frequency ready (2 7 /fs) 1 1 reserved p19 32 10 initial value : 0000
18 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary these three functions can be executed by 2 timer/counter independently. for timera, the counter data is saved in timer register tah, tam, tal, which user can set counter initial value and read the counter value by instruction "ldatah(m,l), statah(m,l)" and timer register is tbh, tbm, tbl and w/r instruction "ldatbh (m,l), statbh (m,l)". the basic structure of timer/counter is composed by two same structure counter, these two counters can be set initial value and send counter value to timer register, p28 and p29 are the command ports for timera and timer b, user can choose different operation mode and different internal clock rate by setting these two ports. when timer/counter overflow, it will generate a trga(b) interrupt request to interrupt control unit. interrupt control trga request p8.3/ trga event counter control timer control internal clock p28 12 bit counter tmsa ipsa data bus p8.1/ trgb event counter control timer control internal clock high speed timer/counter p29 12 bit counter mux tmsb ipsb trgb request pulse-width measurement control pulse-width measurement control port 28 3 2 1 0 tmsa ipsa initial state: 0000 timer/counter mode selection tmsa (b) function description 0 0 stop 0 1 event counter mode 1 0 timer mode 1 1 pulse width measurement mode port 29 3 2 1 0 tmsb ipsb initial state: 0000 timer/counter control timer/counter control timer/counter control timer/counter control timer/counter control p8.1/trgb, p8.3/trga are the external timer inputs for timerb and timera, they are used in event counter and pulse-width measurement mode. timer/counter command port: p28 is the command port for timer/countera and p29 is for the timer/ counterb. internal pulse-rate selection internal pulse-rate selection ipsa normal mode slow mode ipsb normal mode slow mode 0 0 lxin/2 3 hz reserved 0 0 depend on high speed timer/counter 0 1 lxin/2 7 hz lxin/2 7 hz 0 1 lxin/2 5 hz lxin/2 5 hz 1 0 lxin/2 11 hz lxin/2 11 hz 1 0 lxin/2 9 hz lxin/2 9 hz 1 1 lxin/2 15 hz lxin/2 15 hz 1 1 lxin/2 13 hz lxin/2 13 hz
19 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary internal pulse t imerb (timera )value n n+1 n+2 n+3 n+4 n+5 n+6 n+7 p8.1/trgb (p8.3/trga) timerb (timera) value n n+1 n+2 n+3 n+4 n+5 n+6 timer/counter function timer/counter function timer/counter function timer/counter function timer/counter function timer/countera can be programmable for timer, event counter and pulse width measurement. each timer/ counter can execute any one of these functions independly. event counter mode for event counter mode, timer/counter increases one at any rising edge of p8.1/trgb for timerb (p8.3/ trga for timer a). when timerb (timera) counts overflow, it will give interrupt control an interrupt request trgb (trga). program example: enable timera with p28 ldia #0100b; outa p28; enable timera with event counter mode timer mode for timer mode, timer/counter increase one at any rising edge of internal pulse. user can choose 4 kinds of internal pulse rate by setting ipsb for timerb (ipsa for timera). when timer/counter counts overflow, trgb (trga) will be generated to interrupt control unit. program example: to ge nerate trga interrupt request after 60 ms with system clock lxln=32khz ldia #0100b; exae; enable mask 2 eicil 110111b; interrupt latch 0, enable ei ldia #0ah; statal; ldia #00h; statam; ldia #0fh; statah; ldia #1000b; outa p28; enable timera with internal pulse rate: lxin/2 3 hz note: the preset value of timer/counter register is calculated as following procedure. internal pulse rate: lxin/2 3 ; lxin = 32khz the time of timer counter count one = 2 3 /lxin = 8/32768=0.244ms the number of internal pulse to get timer overflow = 60 ms/ 0.244ms = 245.901= 0f6h the preset value of timer/counter register = 1000h - 0f6h = 0f0ah pulse width measurement mode
20 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary high speed timer/counter high speed timer/counter high speed timer/counter high speed timer/counter high speed timer/counter EM73461B has one 8-bit high speed timer/counter (htc). it supports three special functions : auto load timer, melody output and pulse width measurement modes. the htc is available for the normal and slow operation mode. the htc can be set initial value and send counter value to counter registers (p11 and p10), p31 is the command port for htc, user can choose different operation mode and different internal clockrate by setting the port. the timer/counter increase one at the rising edge of internal pulse. the htc can generate an overflow interrupt (htci) when it overflows. the htci cannot be generated when the htc is in the melody mode or disabled. p31 is the command register of the 8-bit high speed timer/counter. p31 3210 initial value : 0000 htms hips * : only for 9.2mhz htms mode selection hips clock rate selection normal mode slow mode 0 0 stop 0 0 lxin/2 0 hz lxin/2 0 hz 0 1 auto load timer mode 0 1 lxin/2 2 hz lxin/2 2 hz 1 0 melody mode 1 0 fc/2 4 or fc/2 5 * reserved 1 1 pulse width measurement mode 1 1 fc/2 6 or fc/2 8 * reserved for the pulse width measurement mode, the counter only incresed by the rising edge of internal pulse rate as external timer/counter input (p8.1/trgb, p8.3/trga ), interrupt request will be generated as soon as timer/counter count overflow. internal pulse timerb(timera) value n n+1 n+2 n+3 n+4 n+5 p 8.1/trgb(p8.3/trga) program example: enable timera by pulse width measurement mode. ldia #1100b; outa p28; enable timera with pulse width measurement mode. p11 and p10 are the counter registers of the 8-bit high speed timer/counter. p10 is the lower nibble register and p11 is the higher nibble register. (ht is the value of counter registers.) p11 3210 p10 3210 initial value : 0000 0000 (ht) higher nibble register lower nibble register p31(3,2) p4.0/sound sound p4.1/trgh 8-bit binary counter p31(1,0) p11 ? 2 p10 xin input data data bus reload overflow htci interrupt timer/counter b output data mask option f htc
21 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary ** f htc =[(xin/2 x )/(100h-ht)]/2, ht=0~255 ** example : lxin=32k hz, hips=01, ht=11110000b=0f0h. ? f htc =[(32k hz/2 2 )/(100h-0f0h)]/2=256 hz. ldia #1111b outa p11 ldia #0000b outa p10 ldia #1001b outa p31 the value of 8-bit binary up counter can be presetted by p10 and p11. the value of registers can loaded into the htc when the counter starts counting or occurs overflow. if user write value to the registers before the next overflow occurs, the preset value can be changed. the preset value will be changed when users output the different data to p10 and p11. the count value of htc can be read from p10 and p11. the value is unstable when user read the value during counting. thus, user must disable the counter before reading the value. the p4.0/sound and sound pins will output the squre wave in the melody mode. when the cpu is not in the melody mode, the p4.0/sound is high and sound is low. the p4.1/rgh pin will be the input pin in the pulse width measurement mode. user must output high to p4.1/ trgh and then it can be the htc external input pin. when the htc is disabled, the p4.1 pin is a normal i/ o pin. interrupt function interrupt function interrupt function interrupt function interrupt function there are 6 interrupt sources, 2 external interrupt sources, 4 internal interrupt sources. multiple interrupts are admitted according the priority. type type type type type interrupt source interrupt source interrupt source interrupt source interrupt source priority priority priority priority priority interrupt interrupt interrupt interrupt interrupt interrupt interrupt interrupt interrupt interrupt program rom program rom program rom program rom program rom latch latch latch latch latch enable condition enable condition enable condition enable condition enable condition entry address entry address entry address entry address entry address external external interrupt(int0) 1 il5 ei=1 002h internal high speed timer overflow interrupt (htci) 2 il4 ei=1, mask3=1 004h internal timera overflow interrupt (trga) 3 il3 ei=1, mask2=1 006h internal timerb overflow interrupt (trgb) 4 il2 ei=1, mask1=1 008h internal time base interrupt(tbi) 5 il1 00ah external external interrupt(int1) 6 il0 ei=1,mask0=1 00ch interrupt structure interrupt structure interrupt structure interrupt structure interrupt structure reset by system reset and program instruction mask0 mask1 mask1 mask2 mask3 il0 int1 r0 il1 tbi r1 il2 r2 il3 trga r3 il4 r4 il5 int0 r5 priority checker ei entry address generator interrupt request interrupt entry address reset by system reset and program instruction set by program instruction trgb htci
22 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary lcd driver lcd driver lcd driver lcd driver lcd driver EM73461B can directly drive the liquid crystal display (lcd) and has 32 segment, 4 common output pins (1/ 2 bias, 1/3 bias). there are total 32x4 dots can be display. the v1, v2, v3, va, vb, vdd and vss pins are the lcd bias generator. control of lcd driver control of lcd driver control of lcd driver control of lcd driver control of lcd driver the lcd driver control command register is p27. when ldc is 0, the lcd is disabled, the com and seg pins are vss. when ldc is 1, the lcd driver enables. when the cpu is reseted or during the stop operation mode, the lcd driver is disabled. port27 2 1 0 initial value : 0000 ldc duty ldc lcd display control duty driving method select 0 lcd display disable 0 0 0 1/4 duty (1/3 bias) 1 lcd display enable 0 0 1 1/4 duty (1/2 bias) 0 1 0 1/3 duty (1/3 bias) 0 1 1 1/3 duty (1/2 bias) 1 0 0 1/2 duty (1/2 bias) 1 0 1 static 1 1 * reserved the lcd display data is stored in the display data area of the data memory (ram). the display data area begins with address 20h during reset. the lcd display data area ia as below : interrupt controller: il0-il5 : interrupt latch. hold all interrupt requests from all interrupt sources. ilr can not be set by program, but can be reset by program or system reset, so il only can decide which interrupt source can be accepted. mask0-mask3 : except int0, mask register can promit or inhibit all interrupt sources. ei : enable interrupt flip-flop can promit or inhibit all interrupt sources, when inter- rupt happened, ei is cleared to "0" automatically, after rti instruction happened, ei will be set to "1" again. priority checker : check interrupt priority when multiple interrupts happened. interrupt function interrupt function interrupt function interrupt function interrupt function the procedure of interrupt operation: 1. push pc and all flags to stack. 2. set interrupt entry address into pc. 3. set sf= 1. 4. clear ei to inhibit other interrupts happened. 5. clear the il for which interrupt source has already be accepted. 6. to excute interrupt subroutine from the interrupt entry address. 7. cpu accept rti, restore pc and flags from stack. set ei to accept other interrupt requests. program example: to enable interrupt of "int0, trga" ldia #1100b; exae; set mask register "1100b" eicil 111111b ; enable interrupt f.f.
23 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary ram com3 com2 com1 com0 address bit3 bit2 bit1 bit0 seg0 20h seg1 21h seg2 22h :: :: seg30 3eh seg31 3fh the relation between lcd display data and driving method driving method bit3 bit2 bit1 bit0 1/4 duty com3 com2 com1 com0 1/3 duty - com2 com1 com0 1/2 duty - - com1 com0 static - - - com0 lcd frame frequency : according to the drive method to set the frame frequency. duty frame frequency (hz) 1/4 duty 64 x (4/4) = 64 1/3 duty 64 x (4/3) = 85 1/2 duty 64 x (4/2) = 128 static 64 v dd v3 v2 v1 v ss 3v 2v 1v va vb v dd v3 v2 v1 v ss 4.5v 3v 1.5v va vb v dd v3 v2 v1 v ss 3v 2v 1v va vb v dd v3 v2 v1 v ss 4.5v 3v 1.5v va vb v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss v3 v2 v1 vss -v1 -v2 -v3 v3 v2 v1 vss -v1 -v2 -v3 frame v3 v2 v1 vss v3 v2 v1 vss -v1 -v2 -v3 v3 v2 v1 vss -v1 -v2 -v3 frame com0 com1 com2 com3 seg0 seg0-com0 on seg0-com1 off (1) 1/4 duty (1/3 bias) (2 ) 1/3 duty (1/3 bias) ?     vdd=3v vdd=3v vdd=3v vdd=3v vdd=3v lcd driving methods lcd driving methods lcd driving methods lcd driving methods lcd driving methods there are six kinds of driving methods can be selected by duty (p27.0~p27.2). the drivinf waveforms of lcd driver are as below : program example : ldia #0001b ; 1/4 duty, 1/2 bias outa p27 ldia #1001b ; enable lcd outa p27
24 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary v dd v3 v2 v1 v ss 3v 1.5v va vb v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss -v1 -v3 v3 v1 vss -v1 -v3 frame com0 com1 com2 com3 seg0 seg0-com0 on seg0-com1 off v dd v3 v2 v1 v ss 3v 1.5v va vb v dd v3 v2 v1 v ss 3v 1.5v va vb v dd v3 v2 v1 v ss 3v 1.5v va vb v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss -v1 -v3 v3 v1 vss -v1 -v3 frame v3 v1 vss v3 v1 vss v3 v1 vss v3 v1 vss -v1 -v3 v3 v1 vss -v1 -v3 frame v3 vss v3 v1 vss v3 vss -v3 vss -v3 frame v3 (6) static (5) 1/2 duty (1/2 bias) (4) 1/3 duty (1/2 bias) (3) 1/4 duty (1/2 bias) on off watch-dog-timer (wdt) watch-dog-timer (wdt) watch-dog-timer (wdt) watch-dog-timer (wdt) watch-dog-timer (wdt) watch-dog-timer can help user to detect the malfunction (runaway) of cpu and give system a timeup signal every certain time . user can use the time up signal to give system a reset signal when system is fail. this function is available by mask option. if the mask option of wdt is enabled, it will stop counting when cpu is reseted or in the stop operation mode. the basic structure of watch-dog-timer control is composed by a 4-stage binary counter and a control unit. the wdt counter counts for a certain time to check the cpu status, if there is no malfunction happened, the counter will be cleared and continue counting. otherwise, if there is a malfunction happened, the wdt control will send a wdt signal ( low active ) to reset cpu. the wdt checking period is assign by p21 ( wdt command port ). 0 wdt control wdt command port 12 3 counter clear request reset pin lxin/2 13 wdt counter p21 mask option
25 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary resetting function resetting function resetting function resetting function resetting function when cpu in normal working condition and reset pin holds in low level for three instruction cycles at least, then cpu begins to initialize the whole internal states, and when reset pin changes to high level, cpu begins to work in normal condition. the cpu internal state during reset condition is as following table : hardware condition in reset state initial value program counter 0000h status flag 01h interrupt enable flip-flop ( ei ) 00h mask0 ,1, 2, 3 00h interrupt latch ( il ) 00h p10, 11,14, 16, 19, 25, 27, 28, 29, 31 00h p4, 8, 23, 24 0fh both oscillator start oscillation the reset pin is a hysteresis input pin and it has a pull-up resistor available by mask option. the simplest reset circuit is connect reset pin with a capacitor to v ss and a diode to v dd . reset p21 is the control port of watch-dog-timer, and the wdt time up signal is connected to reset. port 21 3210 initial value :0000 cwc * * wdt cwc clear watchdog timer counter 0 clear counter then return to 1 1 nothing wdt set watch-dog-timer detect time 03 x 2 13 /lxin = 3 x 2 13 /32k hz = 0.75 sec 17 x 2 13 /lxin = 7 x 2 13 /32k hz = 1.75 sec program example to enable wdt with 7 x 2 13 /lxin detection time. ldia #0001b outa p21; set wdt detection time and clear wdt counter : :
26 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary EM73461B i/o port description : EM73461B i/o port description : EM73461B i/o port description : EM73461B i/o port description : EM73461B i/o port description : port port port port port input function input function input function input function input function output function output function output function output function output function note note note note note 0 e input port , wakeup function 1-- -- 2-- -- 3-- -- 4 e input port e output port, p4.0/sound 5-- -- 6-- -- 7-- -- 8 e input port, wakeup function, e output port 9-- -- 10 -- i high speed timer/counter low nibble 11 -- i high speed timer/counter high nibble 12 -- -- 13 -- -- 14 i cpu status i clear p14.0 to 0 15 -- -- 16 i stop mode control register 17 -- 18 -- 19 i idle mode control register 20 -- 21 wdt control register 22 i slow mode control register 23 -- 24 -- 25 i timebase control register 26 -- 27 i lcd control register 28 i timer/counter a control register 29 i timer/counter b control register 30 -- 31 i htc control register
27 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary dc electrical characteristics dc electrical characteristics dc electrical characteristics dc electrical characteristics dc electrical characteristics (v dd =30.3v, v ss =0v, t opr =25 o c) parameters sym. parameters sym. parameters sym. parameters sym. parameters sym. min. min. min. min. min. typ. typ. typ. typ. typ. max. max. max. max. max. unit unit unit unit unit conditions conditions conditions conditions conditions items items items items items sym. sym. sym. sym. sym. ratings ratings ratings ratings ratings condition condition condition condition condition supply voltage v dd 2.4v to 3.6v input voltage v ih 0.90xv dd to v dd v il 0v to 0.10xv dd operating frequency f c 4mhz to 9.2mhz clk (rc osc, cap) fs 32khz lxin, lxout items items items items items sym. sym. sym. sym. sym. ratings ratings ratings ratings ratings conditions conditions conditions conditions conditions supply voltage v dd -0.5v to 6v input voltage v in -0.5v to v dd +0.5v output voltage v o -0.5v to v dd +0.5v power dissipation p d 300mw t opr =50 o c operating temperature t opr 0 o c to 50 o c storage temperature t stg -55 o c to 125 o c supply current i dd 300 500 1200 a v dd =3.3v, no load, normal mode, fc=4.6mhz(pll1), fs=32khz, no load 200 320 600 a v dd =3.3v, no load, normal mode, fc=4mhz(rc), fs=32khz, no load 47 15av dd =3.3v,no load,slow mode, fs=32khz(x'tal) 10 15 20 a v dd =3.3v,no load,slow mode, fs=32khz(rc) 25 10av dd =3.3v, idle mode (x'tal) 610 15av dd =3.3v, idle mode(rc) - 0.1 1 a v dd =3.3v, stop mode hysteresis voltage v hys+ 0.50v dd 0.65v dd 0.75v dd v reset, p0, p8 v hys- 0.20v dd 0.30v dd 0.40v dd v input current i ih - 40 60 a p0, pull-down, v ih =v dd -60 -40 - a p0, pull-up, v ih =v ss - - 1 a p0, none - - 1 a reset, v dd =3.3v,v ih =3.3/0v i il -100 -200 -500 a normal current push-pull,v dd =3.3v,v il =0.4v -30 -50 -70 a low current push-pull, v dd =3.3v, v il =0.4v output voltage v oh 2.2 2.4 - v high current push-pull, sound v dd =2.7v, i oh =-2ma 2.0 2.4 - v normal current push-pull, v dd =2.7v, i oh =-40a v ol - - 0.3 v v dd =2.7v,i ol =1ma leakage current i lo - - 1 a open-drain, v dd =3.3v, v o =3.3v recommanded operating conditions recommanded operating conditions recommanded operating conditions recommanded operating conditions recommanded operating conditions absolute maximum ratings absolute maximum ratings absolute maximum ratings absolute maximum ratings absolute maximum ratings
28 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary input resistor r in 35 50 70 k ? reset lcd bias voltage v1 1 / 2 v dd -0.1 1 / 2 v dd - v i1=5a ( 1 / 2 bias) v2 1 / 2 v dd -0.1 1 / 2 v dd 1 / 2 v dd +0.1 v i2=5a v3 -v dd v dd +0.1 v i3=5a lcd bias voltage v1 1 / 3 v dd -0.1 1 / 3 v dd - v i1=5a ( 1 / 3 bias) v2 2 / 3 v dd -0.1 2 / 3 v dd 2 / 3 v dd +0.1 v i2=5a v3 -v dd v dd +0.1 v i3=5a frequency stability - 5 20 % fc=4mhz,rc osc,[f(3v)-f(2.4v)]/f(3v) frequency variation - 5 20 % fc=4mhz, v dd =3v,rc osc, [f(typical)-f(worse case)]/f(typical) dc electrical characteristics dc electrical characteristics dc electrical characteristics dc electrical characteristics dc electrical characteristics (v dd =30.3v, v ss =0v, t opr =25 o c) parameters sym. parameters sym. parameters sym. parameters sym. parameters sym. min. min. min. min. min. typ. typ. typ. typ. typ. max. max. max. max. max. unit unit unit unit unit conditions conditions conditions conditions conditions
29 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary application circuit application circuit application circuit application circuit application circuit 0 . 0 p 2 . 0 p 1 . 0 p dd v 31 ~ 0 seg seg 3 ~ 0 com com lcd pannel dd v dd v v 3 f u 1 . 0 clk clk ? k 330 f u 022 . 0 EM73461B sound sound vss f u 1 . 0 reset reset lxout lxin lxin ? m 2 . 1 khz 768 . 32 pf 20 pf 20 v3 v2 v1 dd lcd v v = dd v dd lcd v v 2 3 = dd v v2 v3 tal x use frequency low ' rc use frequency low pll use frequency high rc use frequency high va vb f u 1 . 0 0.1uf 0.1uf 0.1uf 0.1uf v1
30 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary reset mask option lxin lxout crystal osc. : mask option wakeup mask option positive edge detector negative edge detector input data : mask option : mask option clk rc osc. lxin rc osc. 1.2 m ? 330k ? clk internal osc. 0.022uf 20p 20p reset pin type reset pin type reset pin type reset pin type reset pin type type reset-a input pin type input pin type input pin type input pin type input pin type type input-k type osc-i type ocs_g oscillation pin type oscillation pin type oscillation pin type oscillation pin type oscillation pin type type osc-b type osc-h1 i/o pin type i/o pin type i/o pin type i/o pin type i/o pin type type i/o-n type i/o-q
31 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary type i/o-r type i/o-r type i/o-r type i/o-r type i/o-r type i/o-s type i/o-s type i/o-s type i/o-s type i/o-s path a : for set and clear bit of port instructions, data goes through path a from output data latch to cpu. path b : for input and test instructions, data from output pin go through path b to cpu and the output data latch will be set to high. input data output data path b path a type i/o-q output data latch special function output : mask option type i/o-n output data latch input data output data path b path a sel special function control input wakeup function mask option input data output data path b path a type i/o-q output data latch special function output : mask option type i/o-t type i/o-t type i/o-t type i/o-t type i/o-t
32 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary pad diagram pad diagram pad diagram pad diagram pad diagram unit : m chip size : 1660 x 2630 m note : for pcb layout, ic substrate must be floated or connected to v ss . 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 (0,0) EM73461B seg13 seg14 seg15 seg16 seg17 seg18 seg20 seg21 seg22 seg23 seg24 seg25 seg26 seg27 seg19 seg28 p8.3 p8.2 p8.1 p8.0 reset test p0.3 p0.2 p0.1 p0.0 seg31 seg30 seg29 47 48 seg11 seg12 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 sound p4.0 p4.1 p4.2 p4.3 vdd lxin lxout clk vss v1 v2 v3 va vb com0 com1 61 60 59 58 57 56 55 54 53 52 51 50 49 com2 com3 seg0 seg1 seg2 seg3 seg4 seg5 seg6 seg7 seg8 seg9 seg10 elan
33 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary 1 com1 -672.7 948.9 2 com0 -672.7 838.5 3 vb -672.7 728.0 4 va -672.7 617.6 5 v3 -672.7 499.8 6 v2 -672.7 377.6 7 v1 -672.7 267.1 8 vss -672.7 153.5 9 clk -672.7 14.1 10 lxout -672.7 -96.3 11 lxin -672.7 -206.8 12 vdd -672.7 -329.0 13 p4.3 -672.7 -451.3 14 p4.2 -672.7 -566.3 15 p4.1 -672.7 -676.8 16 p4.0 -672.7 -791.8 17 sound -672.7 -906.8 18 p8.3 -665.9 -1157.7 19 p8.2 -555.4 -1157.7 20 p8.1 -445.0 -1157.7 21 p8.0 -334.5 -1157.7 22 reset -224.0 -1157.7 23 test -113.6 -1157.7 24 p0.3 -3.1 -1157.7 25 p0.2 110.9 -1157.7 26 p0.1 221.3 -1157.7 27 p0.0 335.3 -1157.7 28 seg31 451.6 -1157.7 29 seg30 562.1 -1157.7 30 seg29 672.6 -1157.7 31 seg28 673.5 -928.9 32 seg27 673.5 -818.4 33 seg26 673.5 -708.0 34 seg25 673.5 -597.5 35 seg24 673.5 -487.0 36 seg23 673.5 -376.6 37 seg22 673.5 -266.1 38 seg21 673.5 -155.7 39 seg20 673.5 -45.2 40 seg19 673.5 65.3 pad no. pad no. pad no. pad no. pad no. symbol symbol symbol symbol symbol x x x x x y y y y y
34 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary pad no. pad no. pad no. pad no. pad no. symbol symbol symbol symbol symbol x x x x x y y y y y 41 seg18 673.5 175.7 42 seg17 673.5 286.2 43 seg16 673.5 396.6 44 seg15 673.5 507.1 45 seg14 673.5 617.6 46 seg13 673.5 728.0 47 seg12 673.5 838.5 48 seg11 673.5 948.9 49 seg10 659.6 1159.9 50 seg9 549.2 1159.9 51 seg8 438.7 1159.9 52 seg7 328.3 1159.9 53 seg6 217.8 1159.9 54 seg5 107.3 1159.9 55 seg4 -3.1 1159.9 56 seg3 -113.6 1159.9 57 seg2 -224.0 1159.9 58 seg1 -334.5 1159.9 59 seg0 -445.0 1159.9 60 com3 -555.4 1159.9 61 com2 -665.9 1159.9
35 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary instruction table instruction table instruction table instruction table instruction table (1) data transfer (1) data transfer (1) data transfer (1) data transfer (1) data transfer mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s lda x 0110 1010 xxxx xxxx acc ram[x] 2 2 - z 1 ldam 0101 1010 acc ram[hl] 1 1 - z 1 ldax 0110 0101 acc rom[dp] l 12-z1 ldaxi 0110 0111 acc rom[dp] h ,dp+1 1 2 - z 1 ldh #k 1001 kkkk hr k11--1 ldhl x 0100 1110 xxxx xx00 lr ram[x],hr ram[x+1] 2 2 - - 1 ldia #k 1101 kkkk acc k11-z1 ldl #k 1000 kkkk lr k11--1 sta x 0110 1001 xxxx xxxx ram[x] acc 2 2 - - 1 stam 0101 1001 ram[hl] acc 1 1 - - 1 stamd 0111 1101 ram[hl] acc, lr-1 1 1 - z c stami 0111 1111 ram[hl] acc, lr+1 1 1 - z c' std #k,y 0100 1000 kkkk yyyy ram[y] k22--1 stdmi #k 1010 kkkk ram[hl] k, lr+1 1 1 - z c' tha 0111 0110 acc hr 1 1 - z 1 tla 0111 0100 acc lr 1 1 - z 1 (2) rotate (2) rotate (2) rotate (2) rotate (2) rotate mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s rlca 0101 0000 cf acc 11czc' rrca 0101 0001 cf acc 11czc' ( 3) arithmetic operation 3) arithmetic operation 3) arithmetic operation 3) arithmetic operation 3) arithmetic operation mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s adcam 0111 0000 acc acc + ram[hl] + cf 1 1 c z c' add #k,y 0100 1001 kkkk yyyy ram[y] ram[y] +k 2 2 - z c' adda #k 0110 1110 0101 kkkk acc acc+k 2 2 - z c' addam 0111 0001 acc acc + ram[hl] 1 1 - z c' addh #k 0110 1110 1001 kkkk hr hr+k 2 2 - z c' addl #k 0110 1110 0001 kkkk lr lr+k 2 2 - z c' addm #k 0110 1110 1101 kkkk ram[hl] ram[hl] +k 2 2 - z c' deca 0101 1100 acc acc-1 1 1 - z c decl 0111 1100 lr lr-1 1 1 - z c decm 0101 1101 ram[hl] ram[hl] -1 1 1 - z c inca 0101 1110 acc acc + 1 1 1 - z c'
36 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary incl 0111 1110 lr lr + 1 1 1 - z c' incm 0101 1111 ram[hl] ram[hl]+1 1 1 - z c' suba #k 0110 1110 0111 kkkk acc k-acc 2 2 - z c sbcam 0111 0010 acc ram[hll - acc - cf' 1 1 c z c subm #k 0110 1110 1111 kkkk ram[hl] k - ram[hl] 2 2 - z c ( ( ( ( ( 4) logical operation 4) logical operation 4) logical operation 4) logical operation 4) logical operation mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s anda #k 0110 1110 0110 kkkk acc acc&k 2 2 - z z' andam 0111 1011 acc acc & ram[hl] 1 1 - z z' andm #k 0110 1110 1110 kkkk ram[hl] ram[hl]&k 2 2 - z z' ora #k 0110 1110 0100 kkkk acc acc k 2 2 - z z' oram 0111 1000 acc acc ram[hl] 1 1 - z z' orm #k 0110 1110 1100 kkkk ram[hl] ram[hl] k 2 2 - z z' xoram 0111 1001 acc acc^ram[hl] 1 1 - z z' (5) exchange (5) exchange (5) exchange (5) exchange (5) exchange mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s exa x 0110 1000 xxxx xxxx acc ? ram[x] 2 2 - z 1 exah 0110 0110 acc ? hr 1 2 - z 1 exal 0110 0100 acc ? lr 1 2 - z 1 exam 0101 1000 acc ? ram[hl] 1 1 - z 1 exhl x 0100 1100 xxxx xx00 lr ? ram[x], hr ? ram[x+1] 2 2 - - 1 (6) branch (6) branch (6) branch (6) branch (6) branch mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s sbr a 00aa aaaa if sf=1 then pc pc 11-6 .a 5-0 11--1 else null lbr a 1100 aaaa aaaa aaaa if sf= 1 then pc a else null 2 2 - - 1 @@ slbr a 0101 0101 1100 aaaa if sf=1 then pc a else null 3 3 - - 1 aaaa aaaa (a : 1000-1fffh) 0101 0111 1100 aaaa aaaa aaaa (a : 0000-0fffh) @@ : just for 8k rom - - - - - -
37 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (7) compare (7) compare (7) compare (7) compare (7) compare mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s cmp #k,y 0100 1011 kkkk yyyy k-ram[y] 2 2 c z z' cmpa x 0110 1011 xxxx xxxx ram[x]-acc 2 2 c z z' cmpam 0111 0011 ram[hl] - acc 1 1 c z z' cmph #k 0110 1110 1011 kkkk k - hr 2 2 - z c cmpia #k 1011 kkkk k - acc 1 1 c z z' cmpl #k 0110 1110 0011 kkkk k-lr 2 2 - z c (8) bit manipulation (8) bit manipulation (8) bit manipulation (8) bit manipulation (8) bit manipulation mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s clm b 1111 00bb ram[hl] b 011--1 clp p,b 0110 1101 11bb pppp p ort[p] b 022--1 clpl 0110 0000 port[lr 3-2 +4] lr 1-0 012--1 clr y,b 0110 1100 11bb yyyy ram[y] b 022--1 sem b 1111 01bb ram[hl] b 111--1 sep p,b 0110 1101 01bb pppp p ort[p] b 122--1 sepl 0110 0010 port[lr 3-2 +4] lr l-0 112 --1 set y,b 0110 1100 01bb yyyy ram[y] b 122--1 tf y,b 0110 1100 00bb yyyy sf ram[y] b '22--* tfa b 1111 10bb sf acc b '11--* tfm b 1111 11bb sf ram[hl] b '11--* tfp p,b 0110 1101 00bb pppp sf port[p] b '22--* tfpl 0110 0001 sf port[lr 3-2 +4] lr 1-0 '12--* tt y,b 0110 1100 10bb yyyy sf ram[y] b 22--* ttp p,b 0110 1101 10bb pppp sf port[p] b 22--* (9) subroutine (9) subroutine (9) subroutine (9) subroutine (9) subroutine mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s lcall a 0100 0aaa aaaa aaaa stack[sp] pc, 2 2 - - - sp sp -1, pc a scall a 1110 nnnn stack[sp] pc, 1 2 - - - sp sp - 1, pc a, a = 8n +6 (n=1~15),0086h (n =0) ret 0100 1111 sp sp + 1, pc stack[sp] 1 2 - - -
38 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (10) input/output (10) input/output (10) input/output (10) input/output (10) input/output mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s ina p 0110 1111 0100 pppp acc port[p] 2 2 - z z' inm p 0110 1111 1100 pppp ram[hl] port[p] 2 2 - - z' out #k,p 0100 1010 kkkk pppp port[p] k22--1 outa p 0110 1111 000p pppp port[p] acc 2 2 - - 1 outm p 0110 1111 100p pppp port[p] ram[hl] 2 2 - - 1 (11) flag manipulation (11) flag manipulation (11) flag manipulation (11) flag manipulation (11) flag manipulation mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s @ cgf 0101 0111 gf 011--1 @ sgf 0101 0101 gf 111--1 tfcfc 0101 0011 sf cf', cf 0110-* @ tgs 0101 0100 sf gf 1 1 - - * ttcfs 0101 0010 sf cf, cf 1111-* tzs 0101 1011 sf zf 1 1 - - * (12) interrupt control (12) interrupt control (12) interrupt control (12) interrupt control (12) interrupt control mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s cil r 0110 0011 11rr rrrr il il & r 2 2 - - 1 dicil r 0110 0011 10rr rrrr eif 0,il il&r 2 2 - - 1 eicil r 0110 0011 01rr rrrr eif 1,il il&r 2 2 - - 1 exae 0111 0101 mask ? acc 1 1 - - 1 rti 0100 1101 sp sp+1,flag.pc 1 2 * * * stack[sp],eif 1 (13) cpu control (13) cpu control (13) cpu control (13) cpu control (13) cpu control mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s nop 0101 0110 no operation 1 1 - - - @ : just for 4k rom
39 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary (14) timer/counter & data pointer & stack pointer control (14) timer/counter & data pointer & stack pointer control (14) timer/counter & data pointer & stack pointer control (14) timer/counter & data pointer & stack pointer control (14) timer/counter & data pointer & stack pointer control mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) mnemonic object code (binary) operation description operation description operation description operation description operation description byte byte byte byte byte cycle cycle cycle cycle cycle flag flag flag flag flag c c c c c z z z z z s s s s s ldadpl 0110 1010 1111 1100 acc [dp] l 22-z1 ldadpm 0101 0110 1111 1101 acc [dp] m 22-z1 ldadph 0101 0110 1111 1110 acc [dp] h 22-z1 ldasp 0101 0110 1111 1111 acc sp 2 2 - z 1 ldatal 0110 1010 1111 0100 acc [ta] l 22-z1 ldatam 0101 0110 1111 0101 acc [ta] m 22-z1 ldatah 0101 0110 1111 0110 acc [ta] h 22 -z1 ldatbl 0110 1010 1111 1000 acc [tb] l 22-z1 ldatbm 0101 0110 1111 1001 acc [tb] m 22-z1 ldatbh 0101 0110 1111 1010 acc [tb] h 22-z1 stadpl 0110 1001 1111 1100 [dp] l acc 2 2 - - 1 stadpm 0110 1001 1111 1101 [dp] m acc 2 2 - - 1 stadph 0110 1001 1111 1110 [dp] h acc 2 2 - - 1 stasp 0110 1001 1111 1111 sp acc 2 2 - - 1 statal 0110 1001 1111 0100 [ta] l acc 2 2 - - 1 statam 0110 1001 1111 0101 [ta] m acc 2 2 - - 1 statah 0110 1001 1111 0110 [ta] h acc 2 2 - - 1 statbl 0110 1001 1111 1000 [ tb] l acc 2 2 - - 1 statbm 0110 1001 1111 1001 [tb] m acc 2 2 - - 1 statbh 0110 1001 1111 1010 [tb] h acc 2 2 - - 1
40 * this specification are subject to be changed without notice. EM73461B EM73461B EM73461B EM73461B EM73461B 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 4-bit micro-controller for lcd product 12.26.2001 preliminary preliminary preliminary preliminary preliminary **** symbol description **** symbol description **** symbol description **** symbol description **** symbol description symbol symbol symbol symbol symbol description description description description description symbol symbol symbol symbol symbol description description description description description hr h register lr l register pc program counter dp data pointer sp stack pointer stack[sp] stack specified by sp a cc accumulator flag all flags cf carry flag zf zero flag sf status flag gf general flag @ just for 4k rom ei enable interrupt register il interrupt latch mask interrupt mask port[p] port ( address : p ) ? timer/counter a ? timer/counter b ram[hl] data memory (address : hl ) ram[x] data memory (address : x ) rom[dp] l low 4-bit of program memory rom[dp] h high 4-bit of program memory [dp] l low 4-bit of data pointer register [dp] m middle 4-bit of data pointer register [dp] h high 4-bit of data pointer register [ta] l ([tb] l ) low 4-bit of timer/counter a (timer/counter b) register [ta] m ([tb] m ) middle 4-bit of timer/counter a [ta] h ([tb] h ) high 4-bit of timer/counter a (timer/counter b) register (timer/counter b) register transfer ? exchange + addition - substraction & logic and logic or ^ logic xor ' inverse operation . concatenation #k 4-bit immediate data x 8-bit ram address y 4-bit zero-page address p 4-bit or 5-bit port address b bit address r 6-bit interrupt latch pc 11-6 bit 11 to 6 of program counter lr 1 -0 contents of bit assigned by bit a 5-0 bit 5 to 0 of destination address for 1 to 0 of lr branch instruction lr 3-2 bit 3 to 2 of lr - -


▲Up To Search▲   

 
Price & Availability of EM73461B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X