Part Number Hot Search : 
2600ET SD101A 180MW 180MW B20200 N5401 A5800605 TCSS221
Product Description
Full Text Search
 

To Download HMS38112 Datasheet File

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


  Datasheet File OCR Text:
  4-bit single chip microcomputers HMS38112/39112 user`s manual ? HMS38112 ? hms39112 dec. 2001 ver. 1.00
ver. 1.00 published by mcu application team in magnachip semiconductor ltd. co., ltd. ? magnachip semiconductor ltd. 2004 all right reserved. addit ional information of this manual may be served by magnachip semiconductor ltd. off ices in korea or distributors and representative listed at address directory. magnachip semiconduc tor ltd. res erves the right to ma k e changes t o any i nformation here in at any time without notice. the information, diagrams, and other data in this manual are correct and reliable; however, magnachip semiconduc tor ltd. is in n o way respon sible for any violations of patents or other rights of the third party generated by the use of this manual.
hms39112 2 architecture 3 instruction 4 HMS38112 1 application 5
1-1 chapter 1. HMS38112 outline of characteristics the HMS38112 is remote control transmitter which uses cmos technology this enables transmission code outputs of different configurations, multiple custom code output, and double push key output for easy fabrication. the HMS38112 is suitable for remote control of tv, vcr, fans, air-conditioners, audio equipments, toys, games etc. characteristics program memory : 1,024 bytes data memory : 32 ? 4 bits 43 types of instruction set 3 levels of subroutine nesting operating frequency : 2.4mhz ~ 4mhz instruction cycle : f osc /48 cmos process (single 3.0v power supply) stop mode (through internal instruction) released stop mode by key input(mask option) built in power-on reset circuit built in transistor for i.r led drive : i ol =250ma at v dd =3v and v o =0.3v built in low voltage reset circuit built in a watch dog timer (wdt) low operating voltage : 2.0 ~ 3.6v 20 pin pdip/sop/ssop package chapter 1.HMS38112
1-2 block diagram fig 1-1 block diagram chapter 1.HMS38112 ram 16word x 2page x 4bit ram word selector y-reg acc st r-latch x-reg mux mux alu 2 3 4 5 6 9 19 7 8 10 11 12 13 14 15 16 17 18 instruction decoder program counter 3-level stack power-on reset watchdog timer 20 1 10 10 8 eprom 64word ? 16page ? 8bit 8 4 4 2 410 4 10 4 4 4 16 4 4 4 4 4 osc1 osc2 k0 ~ k3 r0 ~ r3 d0 remout vdd gnd osc control signal pulse generator d-latch d1 d2 d3 d4 d5 pgnd i.r.led drive tr.
1-3 pin assignment fig 1-2 HMS38112 pin assignment (20 pin) chapter 1.HMS38112 1 2 3 4 5 6 7 8 9 10 gnd osc1 osc2 k0 k1 k2 k3 r0 r1 r2 20 19 18 17 16 15 14 13 12 11 vdd remout pgnd d5 d4 d3 d2 d1 d0 r3
1-4 fig 1-3. 20pdip (300mil) pin dimension (unit : inch) fig 1-4. 20sop (300mil) pin dimension (unit : mm) pin dimension chapter 1.HMS38112 - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch pre side. 3. unspecified is according to jedec ms-001 variation ae. - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.15 mm per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.25 mm pre side. 3. dimensioning and toleranceing per ansi y14.5m-1982. 4. unspecified is according to jedec ms-013, variation ac.
1-5 fig 1-5. 20ssop (150mil) pin dimension (unit : inch) chapter 1.HMS38112 ** 0.157 0.150 0.244 0.230 0.025 bsc * 0.344 0.337 0.010 0.004 0.068 0.057 0.012 0.008 0.0098 0.0075 0.035 0.016 0  - 8  - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.006 inch per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch pre side. 3. dimensioning and toleranceing per ansi y14.5m-1982. 4. unspecified is according to jedec mo-137, variation ad.
1-6 pin description and circuit pin description pin function i/o connected to 2.0~ 3.6v power supply connected to 0v power supply. 4-bit input port with built in pull-up resistor. stop mode is released by "l" input of each pin. k0 ~ k3 input gnd - vdd - each can be set and reset independently. the output is the structure of n-channel-open-drain. 2-bit i/o port. (input mode is set only when each of them output "h".) in outputting, each can be set and reset independently(or at once.) the output is in the form of c-mos. stop mode is released by "l" input of each pin. high current output port for driving i.r.led. the output is in the form n-channel open drain. d0 ~ d5 output r2 ~ r3 i/o remout output oscillator input. input to the oscillator circuit and connection point for ceramic resonator. a feedback resistor is connected between this pin and osc2. connect a resonator between this pin and osc1. osc1 input osc2 output ground pin for internal high current n-channel transistor. (connected to gnd) pgnd - 2-bit input port with built in pull-up resistor. stop mode is released by "l" input of each pin. r0 ~ r1 input chapter 1.HMS38112
1-7 pin circuit chapter 1.HMS38112 - open drain output. - "l" output at reset. - d0~d3 are l output at stop mode.. - d4 ~d5 pins low or keep before stop mode at stop mode (option) pin i/o note i/o circuit - cmos output. - "h" output at reset. - built in mos tr for pull-up, about 140 ? . r2 ~ r3 i/o - built in mos tr for pull-up, about 140 ? . k0 ~ k3 i d0 ~ d5 o - open drain output - output tr. disable at reset. remout o - built in mos tr for pull-up, about 140 ? . r0 ~ r1 i remout pgnd resetb data pull-up pull-up pull-up
1-8 optional features the HMS38112 offers the following optional features. these options are masked. ? i/o terminals having pull-up resistor : r2 ~ r3 ? input terminals having stop release mode : k0 ~ k3, r0 ~ r3 ? output form at stop mode : d4 ~d5 pins l or keep before stop mode chapter 1.HMS38112 pin i/o note i/o circuit - built in feedback-resistor about 1 e i osc2 osc1 o osc1 osc2 stop rf
1-9 electrical characteristics absolute maximum ratings (ta = 25 ? ? ) recommended operating condition parameter supply voltage unit v rating 2.0 ~ 3.6 condition 2.4mhz ~ 4mhz symbol v dd ? topr operating temperature --20 ~ +70 parameter supply voltage power dissipation storage temperature range input voltage output voltage unit v mw ? v v symbol v dd p d tstg v in v out max. rating -0.3 ~ 5.0 700 * -55 ~ 125 -0.3 ~ v dd +0.3 -0.3 ~ v dd +0.3 * thermal derating above 25 ? : 6mw per degree ? rise in temperature. chapter 1.HMS38112
1-10 electrical characteristics (ta=25 ? ? , v dd = 3v) *1 refer to fig.1-6 < i ol2 vs. v ol2 graph> *2 i dd is measured at reset mode. parameter symbol limits unit condition min. typ. max. input h current r pull-up resistance v ih1 r pu1 i ih 2.1 70 - - 140 - - 300 1 v ? ua - vi=gnd vi=v dd k pull-up resistance r pu2 70 140 300 ? vi=gnd, output off current on stop mode operating supply current i dd *2 i stp - - 0.5 - 1.5 1 ma ua f osc =4mhz at stop mode remout leakage current i olk1 -- 1ua v 0ut =v dd , output off osc2 output l voltage osc2 output h voltage v oh3 v ol3 2.1 - 2.5 0.4 - 0.9 v v i oh =-150ua i ol =150ua d. r output l voltage v ol2 *1 - 0.15 0.4 v i ol =3ma k, r input h voltage k, r input l voltage v il1 -- 0.9 v - f osc /48 f osc system clock frequency 2.4 - 4mhz mhz version remout output l current i ol1 250 ma v ol =0.3v d, r output leakage current i olk2 -- 1ua v 0ut =v dd , output off feedback resistance r fd 0.3 1.0 3.0 e v osc1 =gnd, v osc2 =vdd chapter 1.HMS38112
1-11 fig 1-6. i ol2 vs. v ol2 graph. ( d, r port ) ??? ? ? ? ? ?? ?? ?? ?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? a?? |a} ??? |?} a?? ? ???a chapter 1.HMS38112
hms39112 2 architecture 3 instruction 4 HMS38112 1 application 5
2-1 chapter 2. hms39112 outline of characteristics the hms39112 is remote control transmitter which uses cmos technology this enables transmission code outputs of different configurations, multiple custom code output, and double push key output for easy fabrication. the hms39112 is suitable for remote control of tv, vcr, fans, air-conditioners, audio equipments, toys, games etc. it is possible to structure the 8 x 7 key matrix. characteristics program memory : 1,024 bytes data memory : 32 ? 4 bits 43 types of instruction set 3 levels of subroutine nesting operating frequency : 2.4mhz ~ 4mhz instruction cycle : f osc /48 cmos process (single 3.0v power supply) stop mode (through internal instruction) released stop mode by key input(mask option) built in power-on reset circuit built in low voltage reset circuit built in a watch dog timer (wdt) low operating voltage : 2.0 ~ 3.6v 20 pin pdip/sop/ssop package chapter 2.hms39112
2-2 block diagram fig 2-1 block diagram chapter 2.hms39112 ram 16word x 2page x 4bit ram word selector y-reg acc st r-latch x-reg mux mux alu 2 3 4 5 6 9 19 7 8 10 11 12 13 14 15 16 17 18 instruction decoder program counter 3-level stack power-on reset watchdog timer 20 1 10 10 8 eprom 64word ? 16page ? 8bit 8 4 4 2 410 4 10 4 4 4 16 4 4 4 4 4 osc1 osc2 k0 ~ k3 r0 ~ r3 d0 remout vdd gnd osc control signal pulse generator d-latch d1 d2 d3 d4 d5 d6
2-3 pin assignment fig 2-2 hms39112 pin assignment (20 pin) chapter 2.hms39112 1 2 3 4 5 6 7 8 9 10 gnd osc1 osc2 k0 k1 k2 k3/vpp r0 r1 r2 20 19 18 17 16 15 14 13 12 11 vdd remout d6 d5 d4 d3 d2 d1 d0 r3
2-4 fig 2-4. 20sop (300mil) pin dimension (unit : mm) pin dimension chapter 2.hms39112 fig 2-3. 20pdip (300mil) pin dimension (unit : inch) - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch pre side. 3. unspecified is according to jedec ms-001 variation ae. - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.15 mm per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.25 mm pre side. 3. dimensioning and toleranceing per ansi y14.5m-1982. 4. unspecified is according to jedec ms-013, variation ac.
2-5 fig 2-5. 20ssop (150mil) pin dimension (unit : inch) chapter 2.hms39112 ** 0.157 0.150 0.244 0.230 0.025 bsc * 0.344 0.337 0.010 0.004 0.068 0.057 0.012 0.008 0.0098 0.0075 0.035 0.016 0  - 8  - note - 1. dimension * mark does not include mold protrusion. maximum allowable protrusion is 0.006 inch per side. 2. dimension ** mark does not include mold protrusion. maximum allowable protrusion is 0.010 inch pre side. 3. dimensioning and toleranceing per ansi y14.5m-1982. 4. unspecified is according to jedec mo-137, variation ad.
2-6 pin description and circuit pin description pin function i/o connected to 2.0~ 3.6v power supply connected to 0v power supply. 4-bit input port with built in pull-up resistor. stop mode is released by "l" input of each pin.(masked option) k0 ~ k3 input gnd - vdd - each can be set and reset independently. the output is the structure of n-channel-open-drain. 2-bit i/o port. (input mode is set only when each of them output "h".) in outputting, each can be set and reset independently(or at once.) the output is in the form of c-mos. stop mode is released by "l" input of each pin. pull-up resistor and stop release mode can be respectively selected as masked option for each pin.(it is released by l input at stop) high current output port for driving i.r.led. the output is in the form n-channel open drain. d0 ~ d6 output r2 ~ r3 i/o remout output oscillator input. input to the oscillator circuit and connection point for ceramic resonator. a feedback resistor is connected between this pin and osc2. connect a resonator between this pin and osc1. osc1 input osc2 output 2-bit input port with built in pull-up resistor. stop mode is released by "l" input of each pin.(masked option) r0 ~ r1 input chapter 2.hms39112
2-7 pin circuit chapter 2.hms39112 pin i/o note i/o circuit - cmos output. - "h" output at reset. - built in mos tr for pull-up, about 140 ? . r2 ~ r3 i/o - built in mos tr for pull-up, about 140 ? . k0 ~ k3 i - open drain output. - "l" output at reset. - d0~d3 are l output at stop mode. -d4 ~d6 pins l or keep before stop mode at stop mode(option) d0 ~ d6 o - open drain output - l output at reset. - high current output source. remout o - built in mos tr for pull-up, about 140 ? . r0 ~ r1 i pull-up pull-up pull-up
2-8 optional features the hms39112 offers the following optional features. these options are masked. ? i/o terminals having pull-up resistor : r2 ~ r3 ? input terminals having stop release mode : k0 ~ k3, r0 ~ r3 ? output form at stop mode : d4 ~d6 pins l or keep before stop mode chapter 2.hms39112 pin i/o note i/o circuit - built in feedback-resistor about 1 e i osc2 osc1 o osc1 osc2 stop rf
2-9 electrical characteristics absolute maximum ratings (ta = 25 ? ? ) recommended operating condition parameter supply voltage unit v rating 2.0 ~ 3.6 condition 2.4mhz ~ 4mhz symbol v dd ? topr operating temperature --20 ~ +70 * thermal derating above 25 ? : 6mw per degree ? rise in temperature. parameter supply voltage power dissipation storage temperature range input voltage output voltage unit v mw ? v v symbol v dd p d tstg v in v out max. rating -0.3 ~ 5.0 700 * -55 ~ 125 -0.3 ~ v dd +0.3 -0.3 ~ v dd +0.3 chapter 2.hms39112
2-10 electrical characteristics (ta=25 ? ? , v dd = 3v) *1 refer to fig.2-6 < i ol2 vs. v ol2 graph> *2 refer to fig.2-7 < i ol1 vs. v ol1 graph> *3 refer to fig.2-8 < i oh1 vs. v oh1 graph> *4 i dd is measured at reset mode. parameter symbol limits unit condition min. typ. max. input h current r pull-up resistance v ih1 r pu1 i ih 2.1 70 - - 140 - - 300 1 v ? ua - vi=gnd vi=v dd k pull-up resistance r pu2 70 140 300 ? vi=gnd, output off current on stop mode operating supply current i dd *4 i stp - - 0.5 - 1.5 1 ma ua f osc =4mhz at stop mode osc2 output l voltage osc2 output h voltage v oh3 v ol3 2.1 - 2.5 0.4 - 0.9 v v i oh =-150ua i ol =150ua d. r output l voltage v ol2 *1 - 0.15 0.4 v i ol =3ma k, r input h voltage k, r input l voltage v il1 -- 0.9 v - f osc /48 f osc system clock frequency 2.4 - 4mhz mhz version remout output l current i ol1 *2 0.5 1.1 3mav ol1 =0.4v d, r output leakage current i olk2 -- 1ua v 0ut =v dd , output off feedback resistance r fd 0.3 1.0 3.0 e v osc1 =gnd, v osc2 =vdd remout output h current i oh1 *3 -5 -15 -30 ma v oh1 =2v chapter 2.hms39112
2-11 fig 2-6. i ol2 vs. v ol2 graph. ( d, r port ) fig 2-7. i ol1 vs v ol1 graph (remout port) ??? ? ? ? ? ?? ?? ?? ?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? a?? |a} ??? |?} a?? ? ???a ??? ? ? ? ? ? ? ? ? ? ? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? a?? |a} ??? |?} a?? ? ???a a?? ? ???a a?? ? ???a chapter 2.hms39112
2-12 fig 2-8. i oh1 vs v oh1 graph (remout port) ??? ? ??? ??? ??? ??? ??? ??? ?? ? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? a?? |a} ??? |?} a?? ? ???a a?? ? ???a a?? ? ???a chapter 2.hms39112
hms39112 2 architecture 3 instruction 4 HMS38112 1 application 5
3-1 chapter 3. architecture program memory the HMS38112/39112 can incorporate maximum 1,024 words (64 words ? 16 pages ? 8bits) for program memory. program counter pc (a0~a5) and page address register (a6~a9) are used to address the whole area of program memory having an instruction (8bits) to be next executed. the program memory consists of 64 words on each page, and thus each page can hold up to 64 steps of instructions. the program memory is composed as shown below. chapter 3. architecture fig 3-1 configuration of program memory 7 program counter (pc) page address register (pa) page buffer (pb) 64 (level "1") (level "2") (level "3") (psr) (sr) stack register a0~a5 01215 a6~a9 program capacity (pages) 4 0 1 2 3 4 5 6 8 page 0 6 page 15 page 1 page 2 63
3-2 address register the following registers are used to address the rom. ? page address register (pa) : holds rom's page number (0~fh) to be addressed. ? page buffer register (pb) : value of pb is loaded by an lpbi command when newly addressing a page. then it is shifted into the pa when rightly executing a branch instruction (br) and a subroutine call (cal). ? program counter (pc) : available for addressing word on each page. ? stack register (sr) : stores returned-word address in the subroutine call mode. (1) page address register and page buffer register : address one of pages #0 to #15 in the eprom by the 4-bit binary counter. unlike the program counter, the page address register is usually unchanged so that the program will repeat on the same page unless a page changing command is issued. to change the page address, take two steps such as (1) writing in the page buffer what page to jump (execution of lpbi) and (2) execution of br or cal, because instruction code is of eight bits so that page and word can not be specified at the same time. in case a return instruction (rtn) is executed within the subroutine that has been called in the other page, the page address will be changed at the same time. (2) program counter : this 6-bit binary counter increments for each fetch to address a word in the currently addressed page having an instruction to be next executed. for easier programming, at turning on the power, the program counter is reset to the zero location. the pa is also set to "0". then the program counter specifies the next address in random sequence. when br, cal or rtn instructions are decoded, the switches on each step are turned off not to update the address. then, for br or cal, address data are taken in from the instruction operands (a 0 to a 5 ), or for rtn, and address is fetched from stack register no. 1. (3) stack register : this stack register provides two stages each for the program counter (6bits) and the page address register (4bits) so that subroutine nesting can be made on two levels. chapter 3. architecture
3-3 data memory (ram) up to 32 nibbles (16 words ? 2pages ? 4bits) is incorporated for storing data. the whole data memory area is indirectly specified by a data pointer (x,y). page number is specified by zero bit of x register, and words in the page by 4 bits in y-register. data memory is composed in 16 nibbles/page. figure 4-2 shows the configuration. x-register (x) x-register is consist of 2bit, x0 is a data pointer of page in the ram, x1 is reserved. x1=1 x1=0 reserved reserved y=0 y=1 d1 d0 table 3-1 mapping table between x and y register y-register (y) y-register has 4 bits. it operates as a data pointer or a general-purpose register. y-register specifies an address (a 0 ~a 3 ) in a page of data memory, as well as it is used to specify an output port. further it is used to specify a mode of carrier signal outputted from the remout port. it can also be treated as a general- purpose register on a program. chapter 3. architecture 0 1 2 3 15 output port y-register (y) x-register (x) d0 d9 r0 r3 remout page 0 page 1 01 4 a 0 ~a 3 data memory page (0~1) fig 3-2 composition of data memory
3-4 accumulator (a cc ) the 4-bit register for holding data and calculation results. arithmetic and logic unit (alu) in this unit, 4bits of adder/comparator are connected in parallel as it's main components and they are combined with status latch and status logic (flag.) (1) operation circuit (alu) : the adder/comparator serves fundamentally for full addition and data comparison. it executes subtraction by making a complement by processing an inversed output of a cc (a cc +1) (2) status logic : this is to bring an st, or flag to control the flow of a program. it occurs when a specified instruction is executed in three cases such as overflow or underflow in operation and two inputs unequal. state counter (sc) a fundamental machine cycle timing chart is shown below. every instruction is one byte length. its execution time is the same. execution of one instruction takes 6 clocks for fetch cycle and 6 clocks for execute cycle (12 clocks in total). virtually these two cycles proceed simultaneously, and thus it is apparently completed in 6 clocks (one machine cycle). exceptionally br, cal and rtn instructions is normal execution time since they change an addressing sequentially. therefore, the next instruction is prefetched so that its execution is completed within the fetch cycle. chapter 3. architecture fig. 3-3 fundamental timing chart t1 t2 t3 t4 t5 t6 t1 t2 t3 t4 t5 t6 fetch cycle n execute cycle n-1 execute cycle n fetch cycle n-1 phase phase phase ? machine cycle machine cycle
3-5 clock generator the HMS38112/39112 have an internal clock oscillator. the oscillator circuit is designed to operate with an external ceramic resonator. oscillator circuit is able to organize by connecting ceramic resonator to outside. * it is necessary to connect capacitor to outside in order to change ceramic resonator, you must refer to a manufacturer`s resonator matching guide. chapter 3. architecture osc1 osc2 c1 c2 23 sx~ ^c\\] ^ya_xs _y[[xs x?}ll n~w~^xa_r`axm[ n~w~^xa_r`axm[ nz }ppns n} w^ya_x} n} w_y[[x} ov qn} ^ya_xn` qn} _y[xn` * all type have the built-in loading capacitors.
3-6 pulse generator the following frequency and duty ratio are selected for carrier signal outputted from the remout port depending on a pmr (pulse mode register) value set in a program. chapter 3. architecture t t1 * default value is "0" table 3-2 pmr selection table remout signal t=1/f pul = 96/f osc , t1/t = 1/2 0 1 pmr 2 3 4 5 t=1/f pul = 96/f osc , t1/t = 1/3 t=1/f pul = 64/f osc , t1/t = 1/2 t=1/f pul = 64/f osc , t1/t = 1/4 t=1/f pul = 88/f osc , t1/t = 4/11 no pulse (same to d0 ~ d9) 6t=1/f pul = 96/f osc , t1/t = 1/4 7 no pulse (same to d0 ~ d9)
3-7 reset operation HMS38112/39112 have three reset sources. one is a built-in power-on reset circuit, another is a built-in low vdd detection circuit, the other is the overflow of watch dog timer (wdt). all reset operations are internal in the HMS38112. built-in power on reset circuit HMS38112/39112 has a built-in power-on reset circuit consisting of an about 1 e resistor and a 3pf capacitor. when the power-on reset pulse occurs, system reset signal is latched and wdt is cleared. after the overflow time of wdt (2 13 x system clock time), system reset signal is released. chapter 3. architecture t reset vcc system resetb about 108msec at fosc = 3.64mhz vdd gnd counter ( wdt ) s y stem resetb 1 e 3pf fig. 3-4 power-on reset circuit and timing chart
3-8 built-in low vdd reset circuit HMS38112/39112 have a low vdd detection circuit. if vdd become reset voltage of low vdd detection circuit at a active status, system reset occur and wdt is cleared. after vdd is increased upper reset voltage again, wdt is re-counted and if wdt is overflowed, system reset is released. chapter 3. architecture fig. 3-5 low voltage detection diagram vdd reset voltage internal resetb about 108msec at fosc =3.64mhz
3-9 watch dog timer (wdt) watch dog timer is organized binary of 14 steps. the signal of f osc /48 cycle comes in the first step of wdt after wdt reset. if this counter was overflowed, reset signal automatically come out so that internal circuit is initialized. the overflow time is 8 ? 6 ? 2 13 /f osc (108.026ms at f osc = 3.64mhz) normally, the binary counter must be reset before the overflow by using reset instruction (wdtr), power-on reset pulse or low vdd detection pulse. * it is constantly reset in stop mode. when stop is released, counting is restarted. (refer to stop operation>) fig 3-6 block diagram of watch-dog timer binary counter(14 steps) reset (edge-trigger) f osc /48 cpu reset reset by instruction power-on reset low vdd detection chapter 3. architecture
3-10 stop operation stop mode can be achieved by stop instructions. in stop mode : 1. oscillator is stopped, the operating current is low. 2. watch dog timer is reset, d0~d3 output and remout output are "l" . 3. part other than wdt, d0~d3 output and remout output have a value before come into stop mode. stop mode is released when one of k or r input is going to "l". 1. state of d0~d3 output and remout output is return to state of before stop mode is achieved. 2. after 2 10 ? system clock time for stable oscillating, first instruction start to operate. 3. in return to normal operation, wdt is counted from zero again. but, at executing stop instruction, if one of k or r input is chosen to "l", stop instruction is same to nop instruction. chapter 3. architecture
hms39112 2 architecture 3 instruction 4 HMS38112 1 application 5
4-1 chapter 4. instruction chapter 4. instruction instruction format all of the 43 instruction in HMS38112/39112 is format in two fields of op code and operand which consist of eight bits. the following formats are available with different types of operands. *format all eight bits are for op code without operand. *format two bits are for operand and six bits for op code. two bits of operand are used for specifying bits of ram and x-register (bit 1 and bit 7 are fixed at 0 ) *format ? four bits are for operand and the others are op code. four bits of operand are used for specifying a constant loaded in ram or y- register, a comparison value of compare command, or page addressing in rom. *format six bits are for operand and the others are op code. six bits of operand are used for word addressing in the rom.
4-2 instruction table the HMS38112/39112 provides the following 43 basic instructions. category 1 2 3 register to register lay lya laz mnemonic a y function y a a 0 s s s st *1 4 5 6 ram to register lma lmaiy lym m(x,y) a m(x,y) a, y y+1 y m(x,y) s s s 7 8 lam xma a m(x,y) a ? m(x,y) s s 9 10 11 immediate lyi i lmiiy i lxi n y i m(x,y) i, y y+1 x n s s s 12 13 14 ram bit manipulation sem n rem n tm n m(n) 1 m(n) 0 test m(n) = 1 s s e 15 16 17 rom address br a cal a rtn if st = 1 then branch if st = 1 then subroutine call return from subroutine s s s 18 lpbi i pb is 19 20 21 arithmetic am sm im a a + m(x,y) a m(x,y) - a a m(x,y) + 1 c b c 22 23 dm ia a m(x,y) - 1 a a + 1 b s 24 25 iy da y y + 1 a a - 1 c b chapter 4. instruction
4-3 category 26 27 28 arithmetic dy eorm nega mnemonic y y - 1 function a a + m (x,y) a a + 1 b s z st *1 29 30 comparison alem alei i test a ? m(x,y) test a ? i e e 31 32 mnez ynea test m(x,y) 0 test y a n n 33 34 ynei i knez test y i test k 0 n n 35 rnez test r 0n 36 37 input / output lak lar a k a r s s 38 39 so ro output(y) 1 at hms39112, 0 at HMS38112 output(y) 0 at hms39112, 1 at hms39112 s s 40 41 control wdtr stop watch dog timer reset stop operation s s 42 43 lpy nop pmr y no operation s s note) i = 0~f, n = 0~3, a = 6bit pc address *1 column st indicates conditions for changing status. symbols have the following meanings s : on executing an instruction, status is unconditionally set. c : status is only set when carry or borrow has occurred in operation. b : status is only set when borrow has not occurred in operation. e : status is only set when equality is found in comparison. n : status is only set when equality is not found in comparison. z : status is only set when the result is zero. chapter 4. instruction
4-4 chapter 4. instruction port operation value of x-reg value of y-reg 0 or 1 operation 0 or 1 8 remout port repeats "h" and "l" in pulse frequency. (when pmr = 5, it is fixed at "h") so : remout(pmr) 1 at hms39112, 0 at HMS38112 ro : remout(pmr) 0 at hms39112, 1 at HMS38112 0 or 1 9 so : d0 ~ d6 1 (high-z) ro : d0 ~ d6 0 0 or 1 c ~ d so : r(y-ah) 1 ro : r(y-ah) 0 0 or 1 e so : r2 ~ r3 1 ro : r2 ~ r3 0 0 or 1 f so : d0 ~ d6 1(high-z), r2 ~ r3 1 ro : d0 ~ d6 0, r2 ~ r3 0 so : d(y) 1(high-z) ro : d(y) 0 0 ~ 6
4-5 details of instruction system all 43 basic instructions of the HMS38112/39112 are one by one described in detail below. description form each instruction is headlined with its mnemonic symbol according to the instructions table given earlier. then, for quick reference, it is described with basic items as shown below. after that, detailed comment follows. ? items : - naming : full spelling of mnemonic symbol - status : check of status function - format : categorized into to - operand : omitted for format - function chapter 4. instruction
4-6 (1) lay naming : load accumulator from y-register status : set format : i function : a y data of four bits in the y-register is unconditionally transferred to the accumulator. data in the y-register is left unchanged. (2) lya naming : load y-register from accumulator status : set format : i function : y a load y-register from accumulator (3) laz naming : clear accumulator status : set format : i function : a 0 data in the accumulator is unconditionally reset to zero. (4) lma naming : load memory from accumulator status : set format : i function : m(x,y) a data of four bits from the accumulator is stored in the ram location addressed by the x-register and y-register. such data is left unchanged. (5) lmaiy naming : load memory from accumulator and increment y-register status : set format : i function : m(x,y) a, y y+1 data of four bits from the accumulator is stored in the ram location addressed by the x-register and y-register. such data is left unchanged. chapter 4. instruction
4-7 (6) lym naming : load y-register form memory status : set format : i function : y m(x,y) data from the ram location addressed by the x-register and y-register is loaded into the y-register. data in the memory is left unchanged. (7) lam naming : load accumulator from memory status : set format : i function : a m(x,y) data from the ram location addressed by the x-register and y-register is loaded into the y-register. data in the memory is left unchanged. (8) xma naming : exchanged memory and accumulator status : set format : i function : m(x,y) ? a data from the memory addressed by x-register and y-register is exchanged with data from the accumulator. for example, this instruction is useful to fetch a memory word into the accumulator for operation and store current data from the accumulator into the ram. the accumulator can be restored by another xma instruction. (9) lyi i naming : load y-register from immediate status : set format : ? operand : constant 0 ? i ? 15 function : y i to load a constant in y-register. it is typically used to specify y-register in a particular ram word address, to specify the address of a selected output line, to set y-register for specifying a carrier signal outputted from out port, and to initialize y-register for loop control. the accumulator can be restored by another xma instruction. data of four bits from operand of instruction is transferred to the y-register. chapter 4. instruction
4-8 (10) lmiiy i naming : load memory from immediate and increment y-register status : set format : ? operand : constant 0 ? i ? 15 function : m(x,y) i, y y + 1 data of four bits from operand of instruction is stored into the ram location addressed by the x-register and y-register. then data in the y-register is incremented by one. (11) lxi n naming : load x-register from immediate status : set format : operand : x file address 0 ? n ? 3 function : x n a constant is loaded in x-register. it is used to set x-register in an index of desired ram page. operand of 1 bit of command is loaded in x-register. (12) sem n naming : set memory bit status : set format : operand : bit address 0 ? n ? 3 function : m(x,y,n) 1 depending on the selection in operand of operand, one of four bits is set as logic 1 in the ram memory addressed in accordance with the data of the x-register and y-register. (13) rem n naming : reset memory bit status : set format : operand : bit address 0 ? n ? 3 function : m(x,y,n) 0 depending on the selection in operand of operand, one of four bits is set as logic 0 in the ram memory addressed in accordance with the data of the x-register and y-register. chapter 4. instruction
4-9 (14) tm n naming : test memory bit status : comparison results to status format : operand : bit address 0 ? n ? 3 function : m(x,y,n) 1? st 1 when m(x,y,n)=1, st 0 when m(x,y,n)=0 a test is made to find if the selected memory bit is logic. 1 status is set depending on the result. (15) br a naming : branch on status 1 status : conditional depending on the status format : operand : branch address a (addr) function : when st =1 , pa pb, pc a(addr) when st = 0, pc pc + 1, st 1 note : pc indicates the next address in a fixed sequence that is actually pseudo-random count. for some programs, normal sequential program execution can be change. a branch is conditionally implemented depending on the status of results obtained by executing the previous instruction. ? branch instruction is always conditional depending on the status. a. if the status is reset (logic 0), a branch instruction is not rightly executed but the next instruction of the sequence is executed. b. if the status is set (logic 1), a branch instruction is executed as follows. ? branch is available in two types - short and long. the former is for addressing in the current page and the latter for addressing in the other page. which type of branch to exeute is decided according to the pb register. to execute a long branch, data of the pb register should in advance be modified to a desired page address through the lpbi instruction. chapter 4. instruction
4-10 (16) cal a naming : subroutine call on status 1 status : conditional depending on the status format : operand : subroutine code address a(addr) function : when st =1 , pc a(addr) pa pb sr1 pc + 1, psr1 pa sr2 sr1 psr2 psr1 sr3 sr2 psr3 psr2 when st = 0 pc pc + 1 pb ps st 1 note : pc actually has pseudo-random count against the next instruction. ? in a program, control is allowed to be transferred to a mutual subroutine. since a call instruction preserves the return address, it is possible to call the subroutine from different locations in a program, and the subroutine can return control accurately to the address that is preserved by the use of the call return instruction (rtn). such calling is always conditional depending on the status. a. if the status is reset, call is not executed. b. if the status is set, call is rightly executed. the subroutine stack (sr) of three levels enables a subroutine to be manipulated on three levels. besides, a long call (to call another page) can be executed on any level. ? for a long call, an lpbi instruction should be executed before the cal. when lpbi is omitted (and when pa=pb), a short call (calling in the same page) is executed. chapter 4. instruction
4-11 (17) rtn naming : return from subroutine status : set format : function : pc sr1 pa, pb psr1 sr1 sr2 psr1 psr2 sr2 sr3 psr2 psr3 sr3 sr3 psr3 psr2 st 1 control is returned from the called subroutine to the calling program. control is returned to its home routine by transferring to the pc the data of the return address that has been saved in the stack register (sr1). at the same time, data of the page stack register (psr1) is transferred to the pa and pb. (18) lpbi i naming : load page buffer register from immediate status : set format : ? operand : rom page address 0 ? i ? 15 function : pb i a new rom page address is loaded into the page buffer register (pb). this loading is necessary for a long branch or call instruction. the pb register is loaded together with three bits from 4 bit operand. (19) am naming : add accumulator to memory and status 1 on carry status : carry to status format : function : a m(x,y)+a, st 1(when total>15), st 0 (when total ? 15) data in the memory location addressed by the x and y-register is added to data of the accumulator. results are stored in the accumulator. carry data as results is transferred to status. when the total is more than 15, a carry is caused to put 1 in the status. data in the memory is not changed. chapter 4. instruction
4-12 (20) sm naming : subtract accumulator to memory and status 1 not borrow status : carry to status format : function : a m(x,y) - a st 1(when a ? m(x,y)) st 0(when a > m(x,y)) data of the accumulator is, through a 2`s complemental addition, subtracted from the memory word addressed by the y-register. results are stored in the accumulator. if data of the accumulator is less than or equal to the memory word, the status is set to indicate that a borrow is not caused. if more than the memory word, a borrow occurs to reset the status to 0 . (21) im naming : increment memory and status 1 on carry status : carry to status format : function : a m(x,y) + 1 st 1(when m(x,y) ? 15) st 0(when m(x,y) < 15) data of the memory addressed by the x and y-register is fetched. adding 1 to this word, results are stored in the accumulator. carry data as results is transferred to the status. when the total is more than 15, the status is set. the memory is left unchanged. (22) dm naming : decrement memory and status 1 on not borrow status : carry to status format : function : a m(x,y) - 1 st 1(when m(x,y) ? 1) st 0 (when m(x,y) = 0) data of the memory addressed by the x and y-register is fetched, and one is subtracted from this word (addition of fh)> results are stored in the accumulator. carry data as results is transferred to the status. if the data is more than or equal to one, the status is set to indicate that no borrow is caused. the memory is left unchanged. chapter 4. instruction
4-13 (23) ia naming : increment accumulator status : set format : function : a a+1 data of the accumulator is incremented by one. results are returned to the accumulator. a carry is not allowed to have effect upon the status. (24) iy naming : increment y-register and status 1 on carry status : carry to status format : function : y y + 1 st 1 (when y = 15) st 0 (when y < 15) data of the y-register is incremented by one and results are returned to the y-register. carry data as results is transferred to the status. when the total is more than 15, the status is set. (25) da naming : decrement accumulator and status 1 on borrow status : carry to status format : function : a a - 1 st 1(when a ? 1) st 0 (when a = 0) data of the accumulator is decremented by one. as a result (by addition of fh), if a borrow is caused, the status is reset to 0 by logic. if the data is more than one, no borrow occurs and thus the status is set to 1 . chapter 4. instruction
4-14 (26) dy naming : decrement y-register and status 1 on not borrow status : carry to status format : function : y y -1 st 1 (when y ? 1) st 0 (when y = 0) data of the y-register is decremented by one. data of the y-register is decremented by one by addition of minus 1 (fh). carry data as results is transferred to the status. when the results is equal to 15, the status is set to indicate that no borrow has not occurred. (27) eorm naming : exclusive or memory and accumulator status : set format : function : a m(x,y) + a data of the accumulator is, through a exclusive or, subtracted from the memory word addressed by x and y- register. results are stored into the accumulator. (28) nega naming : negate accumulator and status 1 on zero status : carry to status format : function : a a + 1 st 1(when a = 0) st 0 (when a != 0) the 2`s complement of a word in the accumulator is obtained. the 2`s complement in the accumulator is calculated by adding one to the 1`s complement in the accumulator. results are stored into the accumulator. carry data is transferred to the status. when data of the accumulator is zero, a carry is caused to set the status to 1 . chapter 4. instruction
4-15 (29) alem naming : accumulator less equal memory status : carry to status format : function : a ? m(x,y) st 1 (when a ? m(x,y)) st 0 (when a > m(x,y)) data of the accumulator is, through a complemental addition, subtracted from data in the memory location addressed by the x and y-register. carry data obtained is transferred to the status. when the status is 1 , it indicates that the data of the accumulator is less than or equal to the data of the memory word. neither of those data is not changed. (30) alei naming : accumulator less equal immediate status : carry to status format : ? function : a ? ist 1 (when a ? i) st 0 (when a > i) data of the accumulator and the constant are arithmetically compared. data of the accumulator is, through a complemental addition, subtracted from the constant that exists in 4bit operand. carry data obtained is transferred to the status. the status is set when the accumulator value is less than or equal to the constant. data of the accumulator is left unchanged. (31) mnez naming : memory not equal zero status : comparison results to status format : function : m(x,y) 0st 1(when m(x,y) 0) st 0 (when m(x,y) = 0) a memory word is compared with zero. data in the memory addressed by the x and y-register is logically compared with zero. comparison data is thransferred to the status. unless it is zero, the status is set. chapter 4. instruction
4-16 (32) ynea naming : y-register not equal accumulator status : comparison results to status format : function : y ast 1 (when y a) st 0 (when y = a) data of y-register and accumulator are compared to check if they are not equal. data of the y-register and accumulator are logically compared. results are transferred to the status. unless they are equal, the status is set. (33) ynei naming : y-register not equal immediate status : comparison results to status format : ? operand : constant 0 ? i ? 15 function : y ist 1 (when y i) st 0 (when y = i) the constant of the y-register is logically compared with 4bit operand. results are transferred to the status. unless the operand is equal to the constant, the status is set. (34) knez naming : k not equal zero status : the status is set only when not equal format : function : when k 0, st 1 a test is made to check if k is not zero. data on k are compared with zero. results are transferred to the status. for input data not equal to zero, the status is set. (35) rnez naming : r not equal zero status : the status is set only when not equal format : function : when r 0, st 1 a test is made to check if r is not zero. data on r are compared with zero. results are transferred to the status. for input data not equal to zero, the status is set. chapter 4. instruction
4-17 (36) lak naming : load accumulator from k status : set format : function : a k data on k are transferred to the accumulator (37) lar naming : load accumulator from r status : set format : function : a r data on r are transferred to the accumulator (38) so naming : set output register latch status : set format : function : d(y) 10 ? y ? 7 remout 1(pmr=5) y = 8 d0~d9 1 (high-z) y = 9 r(y) 1ah ? y ? dh r 1y = eh d0~d9, r 1y = fh a single d output line is set to logic 1, if data of y-register is between 0 to 7. carrier frequency come out from remout port, if data of y-register is 8. all d output line is set to logic 1, if data of y-register is 9. it is no operation, if data of y-register between 10 to 15. when y is between ah and dh, one of r output lines is set at logic 1. when y is eh, the output of r is set at logic 1. when y is fh, the output d0~d9 and r are set at logic 1. data of y-register is between 0 to 7, selects appropriate d output. data of y-register is 8, selects remout port. data of y-register is 9, selects all d port. data in y-register, when between ah and dh, selects an appropriate r output (r0~r3). data in y-register, when it is eh, selects all of r0~r3. data in y-register, when it is fh, selects all of d0~d9 and r0~r3. chapter 4. instruction
4-18 (39) ro naming : reset output register latch status : set format : function : d(y) 00 ? y ? 7 remout 0 y = 8 d0~d9 0y = 9 r(y) 0ah ? y ? dh r 0y = eh d0~d9, r 0y = fh a single d output line is set to logic 0, if data of y-register is between 0 to 9. remout port is set to logic 0, if data of y-register is 9. all d output line is set to logic 0, if data of y-register is 9. when y is between ah and dh, one of r output lines is set at logic 0. when y is eh, the output of r is set at logic 0 when y is fh, the output d0~d9 and r are set at logic 1. data of y-register is between 0 to 7, selects appropriate d output. data of y-register is 8, selects remout port. data of y-register is 9, selects d port. data in y-register, when between ah and dh, selects an appropriate r output (r0~r3). data in y-register, when it is eh, selects all of r0~r3. data in y-register, when it is fh, selects all of d0~d9 and r0~r3. (40) wdtr naming : watch dog timer reset status : set format : function : reset watch dog timer (wdt) normally, you should reset this counter before overflowed counter for dc watch dog timer. this instruction controls this reset signal. chapter 4. instruction
4-19 (41) stop naming : stop status : set format : function : operate the stop function stopped oscillator, and little current. (see 1-12 page, stop function.) (42) lpy naming : pulse mode set status : set format : function : pmr y selects a pulse signal outputted from remout port. (43) nop naming : no operation status : set format : function : no operation chapter 4. instruction
hms39112 2 architecture 3 instruction 4 HMS38112 1 application 5
5-1 guideline for s/w 1. all rams need to be initialized to zero in reset address for proper design. 2. make the output ports `h` after reset. 3. do not use wdtr instruction in subroutine. 4. before reading the input port the waiting time should be more than 200us. 5. to decrease current consumption, make the output port as high in normal routine except for key scan strobe and stop mode. 6. we recommend you do not use all 64 bytes in a page. you had better write ` br $` in unused area. this will help you prevent unusual operation of mcu. 7. be careful not to use long call or branch (call,bl) with arithmetic manipulation. if you want to use branch right after arithmetic manipulation, the long call or branch will be against your intention. ex) lar ; the value of r ports -> accumulator alei 14 ; a ? 14 : s = 1, a ! 14 : s = 0 bl true ; s is always 1 because bl is composed of lpbi and br. -------------- fail lar ; the value of r ports -> accumulator alei 14 ; a ? 14 : s = 1, a ! 14 : s = 0 br true ; when s is 1 branch will occur. otherwise branch will not occur and lak ; next instruction will be operated. -------------- right chapter 5. application
5-2 k0 k1 k2 k3 r0 r1 r2 r3 d0 d1 d2 d3 d4 d5 4 5 6 7 8 9 10 11 12 13 14 15 16 3 2 19 18 vdd rem out osc1 osc2 HMS38112-rdxxx + 17 HMS38112 circuit diagram 5 6 7 8 1 2 3 4 13 14 15 16 9 10 11 12 21 22 23 24 17 18 19 20 29 30 31 32 25 26 27 28 37 38 39 40 33 34 35 36 = 45 46 47 48 41 42 43 44 gnd 1 pgnd 20 we recommend alkaline battery chapter 5. application
5-3 k0 k1 k2 k3 r0 r1 r2 r3 d0 d1 d2 d3 d4 d5 d6 4 5 6 7 8 9 10 11 12 13 14 15 16 3 2 19 vdd rem out osc1 osc2 hms39112-rexxx + 17 hms39112 circuit diagram 5 6 7 8 1 2 3 4 13 14 15 16 9 10 11 12 21 22 23 24 17 18 19 20 29 30 31 32 25 26 27 28 37 38 39 40 33 34 35 36 = 45 46 47 48 41 42 43 44 gnd 1 20 53 54 55 56 49 50 51 52 18 we recommend alkaline battery chapter 5. application
5-4 truth table for example program vp ? yz y olls st vp ? yz y olls st v[\[[v]d\n v[][\v^[\o v[^[]v^\\p v[_[^v^]\q v[`[_v^^][ v[a[`v^_]\ v[b[av^`]] v[c[bv^a]^ v[d[cv^b]_ v\[[dv^c]` v\\ [l v^d ]a v\] [m v_[ ]b v\^ [n v_\ ]c v\_ [o v_] ]d v\` [p v_^ ]l v\a [q v__ ]m v\b\[v_`]n v\c\\v_a]o v\d\]v_b]p v][\^v_c]q v]\\_v_d^[ v]]\`v`[^\ v]^\av`\^] v]_\bv`]^^ v]`\cv`^^_ v]a\dv`_^` v]b \l v`` ^a v]c \m v`a ^b custom:04h chapter 5. application
5-5 tc t1 carrier frequency f car = 1/tc = f osc /96 duty ratio = t1/tc = 1/3 output waveform of upd6121g a single pulse, modulated with 37.917khz signal at 3.64mhz - configuration of flame 1st flame c0 c1 c2 c3 c4 c5 c6 c7 c0 c1 c2 c3 c4 c5 c6 c7 d0 d1 d2 d3 d4 d5 d6 d7 d0 d1 d2 d3 d4 d5 d5 d7 lead code custom code custom code data code data code 9ms 4.5ms - bit description - flame interval : tf the transmitted waveform as long as a key is depressed 0.56ms 1.125ms 0.56ms 2.25ms bit 0 bit 1 tf=108ms tf=108ms - repeat code 9ms 2.25ms 0.56ms chapter 5. application
5-6 ?????? ????????? ?????????????????????????????????????????????????????????????????????????????? ? ?????? ? ??? ?????? ?? 1??1 ?????? o?? ??????? ?- ?11 ??a |-? ? ?1 o??? ?? ?? o??? ?????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????? ? |?? ????? ? ??? ?? ?? ?? ? ?? ?? ??? ????? ??|? ?? ?? |??? ?? ?? ??? ?? ?? ???- ?? ?? ? ?? ?? ?|?? ?? ?? ???? ?? ?? ???? ?? ?? ???? ?? ?? ???? ?? ?? ???? ?? ?? ???? ?? ?? ??-?? ?? ?? ??-?? ?? ?? ??? ?? ?? ??? ?? ?? ??????????????????????????????????????????????????????????????????????????????? ? ?? ??????????????????????????????????????????????????????????????????????????????? |? ??? ? ?-? ?? ?|?? ????| ??? ????- ? -?? ?? ?| ??? ?-? ?? ?-? ? ? ???? ?|?? | ?? ???|? ? ??? | | ?- ?| | ???? ???? ? ?| ???????? | ? ??? ??? ? ?-? ?? ???? | ???? ?| ???|???? ??||? ???s? ?-? ?? ????- ? ??- ?-? ? ?- ?-? ?? |?? ??|? |?? ? ?? ?-? ??? ????- ?? ??| ????- ? -?? ??-?? ?| ??| ???? ??? ??| ? ?{ ?? ??| ? ??|??? ?-? ???- ??? ?| ??-?? ?-? ?? ? ? ?| |? ?? ? ?| ?? ??-?? ?-? -?? ? ?| ??? bl key12 example program - upd6121g chapter 5. application
5-7 ??? ??? ???|?? ???? ? ?| ???? ?? ???? ???? ?- ??? ???|?? ???? ? ?| ???? ?| || ???? ?-? ? | ???|?? ??? ?- ?- ?|? || | ?| x ? ?? ???|? ??????????????????????????????????????????????????????????????????????????????? ? ?? ??????????????????????????????????????????????????????????????????????????????? ?| x ???| ???|? ??? ?-? ? ?-? | ???? ???? ?????- ?| ??- ?? ??? ???? ?? ??? ??a? ??| ???? ?? ??? |?a? ?-? ?? ?-? ? ?? ??? ???? ? ?| ??? | ??a? ?| ?a? |?a? ?-? ???? ?? ? ?a? ?-? ??? ????- ?? ????- ??? ?-? ?|?? ??? | ?? ?-? ?? ? ??|? ?| ??-?? ?? ??|? ??-?? ?-? ???? ???? ??a? ?-? ? ???? ??-??? ?? ?? ??-?? ?-? ???? ???? ??? -?? ? ?| ??-?? chapter 5. application
5-8 ?-? ??-?? ???? ??? -?? ? ?| ??-?? ??-?? ?-? ??-?? ???? ??a? ?? ??|??? ??-?? ?-? ?? |?? |??? ?| ??-?? ?| x ??????????????????????????????????????????????????????????????????????????????? ? ?? ??????????????????????????????????????????????????????????????????????????????? ?| x ??-?? ?-? ?|?? ? ? ?| ?? ?| ?? ?? ?-? ???? ?? ? ?? ?-? ?|?? ??? ?-? ???? ???? ? ?| ? ???? ? ?| ? ???? ? ?| ? ????- ? ?| ?a? ? ????- ? ???? ???? ?| ?a? ? ????- ? ?| ?a? ? ????- ? ?a? ?-? ??? ??? ?-? ? ???? ? ?| ????- ???? ? ?| ?? ?? ???? ?? ?| ????- ???? ?? ?| ?? ?? ???? ?? ?| ????- ???? ?? ?| ?? ?? ???? ?? ?| ?a ?? ????- ?? ??? ?? ?- ???? ???? ?? ?- ???? ???? chapter 5. application
5-9 ?? ?- ?a ??- ?-? ???? ?? ??? ?? ?? ?| x ????????????????????????????????????????????????????????????????????????????? ? ?? ????????????????????????????????????????????????????????????????????????????? ?| x ??|??? ?-? ???? ????- ? ????- ? ????- ?? ????- ?? ???? ?-? ???? ???? ??| ?-????? ?-? ? ????? ?-? ? ???? ??-??? ???? ???? ?-? ? | ????? | ?-? ? ???? ??-??? ???? ???? ?-? ?? ? |??? ?| ??? ????? ?-? ? ???? ??-??? ???? ???? ?-? ? ????- ???? ?? ? ??? ???? ???? ?-? ?? ??? ??-??? ??? ??-??? ??? ??-??? ??| ??? ??-??? ??? ??-??? ???? ???? ?? ???-? ??-??? ???? ???? ??-???? ?- ?| ??-??? | ?? ????? ??|??? ? ?|?? ? ???? ?|?? ?? ??- ?-? ??? ??? ??? |?? ???? ?| x ??????????????????????????????????????????????????????????????????????????????? ? ?? ??????????????????????????????????????????????????????????????????????????????? chapter 5. application
5-10 ?| x ??? ???? ???? ???? ?-? ? ???? ???? | ?-? ? ?-? ?? ???? ???? ???? ???? ?? ???? ? ??? ???? ? ? ??? ???? ??? ??? ? ? ??? ???? ??? ??? ? ? ??? ???? ??? ??? ? ? ??? ???? ?-? ? ?? ??? ???? ?? ?| ? ??? ??? ???? ??| ?-? ?? ?? |??? ?-? ? ???? ??-??? ???? ???? ???-? ?-? ? ???? ??-??? ???? ??-??? ???? ???? ?? ??- ?? ? ??? ??? ? a1? ???| ?- ?- ??? ?- | ??a? ??? ??a?? ??a?? ??? ?| ???| ?| x ??????????????????????????????????????????????????????????????????????????????? ? ?? ??????????????????????????????????????????????????????????????????????????????? ?| x ???? ???? ???? ???? ???? ???? ???? ???? chapter 5. application
5-11 ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? | chapter 5. application
5-12 HMS38112 test b/d example 1. attach resonator to x1 2. connect base and collector at q1 3. connect pgnd and trgnd with jumper at e 1 2 3 4 k0 k1 k2 k3 r0 r1 r2 r3 9 10 11 12 5 6 7 8 13 14 15 16 17 18 19 20 26 27 28 25 21 22 23 24 30 31 32 29 33 34 35 36 37 38 39 40 41 42 43 44 50 51 52 49 45 46 47 48 54 55 56 53 57 58 59 60 61 62 63 64 d0 d1 d2 d3 d4 d5 d6 pgnd trgnd remout trout osc gnd q1 r3 r2 r1 x1 d4d5d6d8 d5d6d7d9 d6d7d8d9 d6d7d8d9 ds1 ds2 sw57~64 sw49~56 k0k1k2k3r0r1r2r3 k0k1k2k3r0r1r2r3 a b cd e c b e * ds1 is connected to a. if d6 switch is on among ds1 , a becomes d6 port. * ds2 is connected to b. if d7 switch is on among ds2 , b becomes d7 port. * if d6 switch among sw49~sw56 is on at d, the key 49~56 can be used as d6 port. * if d7 switch among sw57~sw64 is on at d, the key 57~64 can be used as d7 port. * note : the position of sw49~56 and sw57~64 in b/d is changed. the reference position is right. * if you want to increase the remote controller valid distance, you try to disconnect r2 resistor and lessen r1 resistor. chapter 5. application
5-13 1 2 3 4 k0 k1 k2 k3 r0 r1 r2 r3 9 10 11 12 5 6 7 8 13 14 15 16 17 18 19 20 26 27 28 25 21 22 23 24 30 31 32 29 33 34 35 36 37 38 39 40 41 42 43 44 50 51 52 49 45 46 47 48 54 55 56 53 57 58 59 60 61 62 63 64 d0 d1 d2 d3 d4 d5 d6 pgnd trgnd remout trout osc gnd q1 r3 r2 r1 x1 d4d5d6d8 d5d6d7d9 d6d7d8d9 d6d7d8d9 ds1 ds2 sw57~64 sw49~56 k0k1k2k3r0r1r2r3 k0k1k2k3r0r1r2r3 a b cd e c b e * ds1 is connected to a. if d6 switch is on among ds1 , a becomes d6 port. * ds2 is connected to b. if d7 switch is on among ds2 , b becomes d7 port. * if d6 switch among sw49~sw56 is on at d, the key 49~56 can be used as d6 port. * if d7 switch among sw57~sw64 is on at d, the key 57~64 can be used as d7 port. * note : the position of sw49~56 and sw57~64 in b/d is changed. the reference position is right. * if you want to increase the remote controller valid distance, you try to disconnect r2 resistor and lessen r1 resistor. hms39112 test b/d example 1. attach resonator to x1 2. attach 2222a transistor to q1 3. connect pgnd and d6 with jumper at e 4. attach about 150 . to r3. chapter 5. application
mask order & verification sheet hms3 112 -r 2. device information package 4. marking specification 6. rom code verification 20 ssop 20 sop 20 dip 3. mask option inclusion of pull-up register port y/n r2 r3 release of stop mode port y/n k0 k1 k2 k3 r0 r1 r2 r3 status of d port while stop mode port a/b d4 d5 d6 5. delivery schedule mask sample risk order date . . quantity pcs pcs confirmation . . magnachip semiconductor ltd . w rite in below cus tomer write in below name & signature verification date : please confirm our verification data. check sum : tel : 82-270-4037 fax : 82-270-4075 approval date : . . i agree with your verification data and confirm you to make mask set. tel : fax : company name : section name : signature : @27c256 3. a: state of ? l? forcibly, b: remain the state just before stop instruction. you must select ?a? option when you use dport as key application. 4. d6 port is available for HMS38112 but not available for hms39112 1. don?t use wdtr instruction in subroutine. 2. use br $ at start (except 0 page ) , end and unused address in every page. standard marking user marking r yww file name check sum mask data e-mail ( ) . dmp @27c256 . rhx user logo magnachip semiconductor ltd . mcu application team 1. customer information company name name & signature tel: fax: order date magnachip r yww


▲Up To Search▲   

 
Price & Availability of HMS38112

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