Part Number Hot Search : 
BC487B 40020 822K00 16000 CLA88 IP112 AN835 2SD1271
Product Description
Full Text Search
 

To Download M37478M4-458FP Datasheet File

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


  Datasheet File OCR Text:
  mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer description the 7477/7478 group is the single-chip microcomputer designed with cmos silicon gate technology. the single-chip microcomputer is useful for business equipment and other consumer applications. in addition to its simple instruction set, the rom, ram, and i/o addresses are placed on the same memory map to enable easy programming. in addition, built-in prom type microcomputers with built-in elec- trically writable prom, and additional functions equivalent to the mask rom version are also available. 7477/7478 group products are shown noted below. the 7477 and the 7478 differ in the number of i/o ports, package outline, and clock generating circuit only. version mask rom version one time prom version (built-in prom type microcomputers) mask rom version one time prom version (built-in prom type microcomputers) prom version (built-in prom type microcomputer) product m37477m4-xxxsp/fp m37477m8-xxxsp/fp m37477e8sp/fp m37477e8-xxxsp/fp m37478m4-xxxsp/fp m37478m8-xxxsp/fp m37478e8sp/fp m37478e8-xxxsp/fp m37478e8ss features l basic machine-language instructions ...................................... 71 l memory size rom .............................. 8192 bytes (m37477m4, m37478m4) ram ................................ 192 bytes (m37477m4, m37478m4) l the minimum instruction execution time ...................................... 0.5 m s (at 8mhz oscillation frequency) l power source voltage .......... 2.7 to 4.5v (at 2.2v cc C 2.0mhz oscillation frequency) ............................. 4.5 to 5.5v (at 8mhz oscillation frequency) l power dissipation in normal mode .................................... 35mw (at 8mhz oscillation frequency) l subroutine nesting ................................. 96 levels max. (m37477m4, m37478m4) l interrupt ................................................... 13 sources, 11 vectors l 8-bit timers ................................................................................. 4 l programmable i/o ports (ports p0, p1, p4) .......................................... 18 (7477 group) 20 (7478 group) l input ports (ports p2, p3) .................................... 8 (7477 group) (ports p2, p3, p5) ............................ 16 (7478 group) l 8-bit serial i/o ........................... 1 (uart or clock-synchronized) l 8-bit a-d converter ................................ 4 channels (7477 group) 8 channels (7478 group) pin configuration (top view) applications audio-visual equipment, vcr, tuner, office automation equipment note : the only differences between the 32p4b package prod- uct and the 32p2w-a package product are package shape and absolute maximum ratings. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 m37477m4-xxxsp m37477m8-xxxsp m37477e8-xxxsp p1 7 /s rdy p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 p2 0 /in 0 v ref x in x out v ss p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p3 0 /int 0 reset v cc outline 32p4b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 m37477m4-xxxfp m37477m8-xxxfp m37477e8-xxxfp p1 7 /s rdy p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 p2 0 /in 0 v ref x in x out v ss p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p3 0 /int 0 reset v cc outline 32p2w-a
2 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer pin configuration (top view) note : the only differences between the 42p4b package product and the 56p6n-a package product are package shape, ab- solute maximum ratings and the fact that the 56p6n-a package product has an av ss pin. p5 2 p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 3 p4 2 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p5 3 p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 7 /in 7 p2 6 /in 6 p2 5 /in 5 p2 4 /in 4 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 p3 0 /int 0 p2 0 /in 0 v ref v ss 17 28 27 26 25 24 23 22 21 20 19 18 56 45 46 47 48 49 50 51 52 53 54 55 44 43 42 29 30 31 32 33 34 35 36 37 38 39 40 41 1 2 3 16 15 14 13 12 11 10 9 8 7 6 5 4 p5 1 /x cout p5 0 /x cin v cc x in x out v ss av ss nc nc nc nc nc nc p1 7 / s rdy reset nc nc nc nc nc nc m37478m4-xxxfp m37478m8-xxxfp m37478e8-xxxfp outline 56p6n-a 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 p5 2 p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 3 p4 2 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p5 3 p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 7 /in 7 p2 6 /in 6 p2 5 /in 5 p2 4 /in 4 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 m37478m4-xxxsp m37478m8-xxxsp m37478e8-xxxsp m37478e8ss 17 18 19 20 21 26 25 24 23 22 p3 0 /int 0 p5 1 /x cout p5 0 /x cin v cc p2 0 /in 0 v ref x in x out v ss p1 7 / s rdy reset outline 42p4b 42s1b-a (window)
3 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer m37477m4-xxxsp/fp block diagram 14 15 18 17 16 v cc 1 3 24 23 22 21 20 19 9 10 11 12 1 2 3 4 5 6 7 8 32 31 30 29 28 27 26 25 p4 (2) p3(4) p1(8) p0(8) cntr 0 cntr 1 int 1 int 0 4 v ss p2 (4) clock generating circuit clock input x in clock output x out reset input reset (p)rom 8192 bytes s i/o(8) pwm control a-d converter program counter pc h (8) program counter pc l (8) ram 192 bytes stack pointer s(8) processor status register ps(8) 8-bit arithmetic and logical unit index register y(8) index register x(8) accumu- lator a(8) instruction register(8) instruction decoder control signal timer 1 (8) timer 2(8) timer 3 (8) timer 4 (8) i/o port p4 input port p3 v ref reference voltage input input port p2 i/o port p1 i/o port p0 (note 1) (note 2) data bus notes 1 : 16384 bytes for m37477m8/e8-xxxsp/fp 2 : 384 bytes for m37477m8/e8-xxxsp/fp
4 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer m37478m4-xxxsp block diagram 19 20 x cin sub-clock input x cout sub-clock output 25 22 21 v cc 18 1 42 24 23 33 32 31 30 29 28 27 26 10 11 12 13 14 15 16 17 2 3 4 5 6 7 8 9 41 40 39 38 37 36 35 34 p5(4) p4(4) p3(4) p1(8) p0(8) cntr 0 cntr 1 x cin x cout int 1 int 0 8 v ss p2(8) clock generating circuit main clock input x in main clock output x out reset input reset (p)rom 8192 bytes s i/o(8) pwm control a-d converter program counter pc h (8) program counter pc l (8) ram 192 bytes stack pointer s(8) processor status register ps(8) 8-bit arithmetic and logical unit index register y(8) index register x(8) accumu- lator a(8) instruction register(8) instruction decoder control signal timer 1(8) timer 2(8) timer 3(8) timer 4(8) i/o port p4 input port p3 v ref reference voltage input input port p2 i/o port p1 i/o port p0 (note 1) (note 2) notes 1 : 16384 bytes for m37478m8/e8-xxxsp, m37478e8ss 2 : 384 bytes for m37478m8/e8-xxxsp, m37478e8ss input port p5 data bus
5 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer 18 19 28 23 22 v cc 15 52 49 26 25 38 37 36 35 33 32 31 30 7 8 9 10 11 12 13 14 53 54 55 2 3 4 5 6 48 47 46 43 42 41 40 39 p5(4) p4(4) p3(4) p1(8) p0(8) cntr 0 cntr 1 x cin x cout int 1 int 0 8 51 21 v ss av ss p2(8) clock generating circuit reset input reset (p)rom 8192 bytes s i/o(8) pwm control a-d converter program counter pc h (8) program counter pc l (8) ram 192 bytes stack pointer s(8) processor status register ps(8) 8-bit arithmetic and logical unit index register y(8) index register x(8) accumu- lator a(8) instruction register(8) instruction decoder control signal timer 1(8) timer 2(8) timer 3(8) timer 4(8) i/o port p4 input port p3 v ref reference voltage input input port p2 i/o port p1 i/o port p0 (note 1) (note 2) notes 1 : 16384 bytes for m37478m8/e8-xxxfp 2 : 384 bytes for m37478m8/e8-xxxfp input port p5 data bus x cin sub-clock input x cout sub-clock output main clock input x in main clock output x out m37478m4-xxxfp block diagram
6 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer basic machine-language instructions instruction execution time clock input oscillation frequency memory size input/output port serial i/o timers a-d converter subroutine nesting interrupt clock generating circuit power source circuit power dissipation input/output characters operating temperature range device structure package m37477m4 m37478m4 m37477m8/e8 m37478m8/e8 p0, p1 p2 p3, p5 p4 rom ram (p)rom ram i/o input input i/o functions of 7477/7478 group functions 71 0.5 m s (the minimum instructions, at 8 mhz oscillation frequency) 8 mhz (max.) 8192 bytes 192 bytes 16384 bytes 384 bytes 8-bit 5 2 8-bit 5 1 (4-bit 5 1 for the 7477 group) 4-bit 5 2 (port p5 is not included in the 7477 group) 4-bit 5 1 (2-bit 5 1 for the 7477 group) 8-bit 5 1 8-bit timer 5 4 8-bit 5 1 (8 channels) (8-bit 5 1 (4 channels) for the 7477 group) 96 (max.) 192 (max.) 5 external interrupts, 7 internal interrupts, 1 software interrupt built-in circuit with internal feedback resistor (a ceramic or a quartz- crystal oscillator) 2.7 to 4.5v (at 2.2v cc C2.0mhz oscillation frequency), 4.5 to 5.5v (at 8mhz oscillation frequency) 35mw (at 8mhz oscillation frequency) 5v C5 to 10ma (p0, p1, p4 : cmos tri-states) C20 to 85c cmos silicon gate 32-pin shrink plastic molded dip 32-pin plastic molded sop 42-pin shrink plastic molded dip 56-pin plastic molded qfp 42-pin ceramic dip parameter m37477m4, m37478m4 m37477m8/e8, m37478m8/e8 input/output voltage output current m37477m4/m8/e8-xxxsp m37477m4/m8/e8-xxxfp m37478m4/m8/e8-xxxsp m37478m4/m8/e8-xxxfp m37478e8ss
7 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer input/ output pin description pin name functions power source analog power source reset input clock input clock output reference voltage input i/o port p0 i/o port p1 input port p2 input port p3 i/o port p4 input port p5 input input output input i/o i/o input input i/o input notes 1 : av ss for m37478m4/m8/e8-xxxfp. 2 : only p2 0 Cp2 3 (in 0 Cin 3 ) 4-bit for the 7477 group. 3 : only p4 0 and p4 1 2-bit for the 7477 group. 4 : this port is not included in the 7477 group. apply voltage of 2.7 to 5.5v to v cc , and 0v to v ss . ground level input pin for a-d converter. same voltage as v ss is applied. to enter the reset state, the reset input pin must be kept at l for 2 m s or more (under normal v cc conditions). these are i/o pins of internal clock generating circuit for main clock. to control generating frequency, an external ceramic or a quartz crystal oscillator is connected between the x in and x out pins. if an external clock is used, the clock source should be connected the x in pin and the x out pin should be left open. feedback resistor is connected between x in and x out . reference voltage input pin for a-d converter. port p0 is an 8-bit i/o port. the output structure is cmos output. when this port is selected for input, pull-up transistor can be connected in units of 1-bit and a key on wake up function is provided. port p1 is an 8-bit i/o port. the output structure is cmos output. when this port is selected for input, pull-up transistor can be connected in units of 4-bit. p1 2 and p1 3 are in common with timer output pins t 0 and t 1 . p1 4 , p1 5 , p1 6 and p1 7 are in common with serial i/o pins r x d, t x d, s clk ____ and s rdy , respectively. port p2 is an 8-bit input port. this port is in common with analog input pins in 0 to in 7 . port p3 is a 4-bit input port. p3 0 , p3 1 are in common with external interrupt input pins int 0 , int 1 , and p3 2 , p3 3 are in common with timer input pins cntr 0 , cntr 1 . port p4 is a 4-bit i/o port. the output structure is cmos output, when this port is selected for input, pull-up transistor can be connected in units of 4-bit. port p5 is a 4-bit input port and pull-up transistor can be connected in units of 4-bit. p5 0 , p5 1 are in common with input/output pins of clock for clock function x cin , x cout . when p5 0 , p5 1 are used as x cin , x cout , connect a ceramic or a quartz crystal oscillator between x cin and x cout . if an external clock input is used, connect the clock input to the x cin pin and open the x cout pin. feedback resistor is connected between x cin and x cout pins. v cc , v ss av ss (note 1) reset x in x out v ref p0 0 C p0 7 p1 0 C p1 7 p2 0 C p2 7 (note 2) p3 0 C p3 3 p4 0 C p4 3 (note 3) p5 0 C p5 3 (note 4)
8 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer cpu mode register the cpu mode register is allocated at address 00fb 16 . this register contains the stack page selection bit. functional description central processing unit (cpu) the 7477/7478 group uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine in- structions or the series 740 users manual for details on the instruction set. machine-resident 740 family instructions are as follows: the fst and slw instruction cannot be used. the mul, div, wit, and stp instruction can be used. fig. 1 structure of cpu mode register cpu mode register (address 00fb 16 ) b7 b0 stack page selection bit (note 1) 0 : in page 0 area 1 : in page 1 area these bits must always be set to ?? p5 0 , p5 1 /x cin , x cout selection bit (note 2) 0 : p5 0 , p5 1 1 : x cin , x cout notes 1 : in the m37477m4-xxxsp/fp, m37478m4-xxxsp/fp, set this bit to ?? 2 : in the 7477 group, set this bit to ?? x cout drive capacity selection bit (note 2) 0 : low 1 : high clock (x in -x out ) stop bit (note 2) 0 : oscillates 1 : stops internal system clock selection bit (note 2) 0 : x in -x out selected (normal mode) 1 : x cin -x cout selected (low-speed mode)
9 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer memory ? special function register (sfr) area the special function register (sfr) area contains the registers relating to functions such as i/o ports and timers. ? ram ram is used for data storage as well as a stack area. ? rom rom is used for storing user programs as well as the interrupt vector area. fig. 2 memory map ? interrupt vector area the interrupt vector area is for storing jump destination ad- dresses used at reset or when an interrupt is generated. ? zero page zero page addressing mode is useful because it enables access to this area with fewer instruction cycles. ? special page special page addressing mode is useful because it enables ac- cess to this area with fewer instruction cycles. ram (192 bytes) for m37477m8/e8 m37478m8/e8 sfr area not used interrupt vector area 0000 16 00ff 16 01bf 16 c000 16 e000 16 ff00 16 ffe8 16 ffff 16 zero page special page rom (16k bytes) for m37477m8/e8 m37478m8/e8 rom (8k bytes) for m37477m4 m37478m4 ram (192 bytes) for m37477m4 m37477m8/e8 m37478m4 m37478m8/e8 00bf 16 0100 16
10 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 3 sfr (special function register) memory map 00c0 16 00c1 16 00c2 16 00c3 16 00c4 16 00c5 16 00c6 16 00c7 16 00c8 16 00c9 16 00ca 16 00cb 16 00cc 16 00cd 16 00ce 16 00cf 16 00d0 16 00d1 16 00d2 16 00d3 16 00d4 16 00d5 16 00d6 16 00d7 16 00d8 16 00d9 16 00da 16 00db 16 00dc 16 00dd 16 00de 16 00df 16 00e0 16 00e1 16 00e2 16 00e3 16 00e4 16 00e5 16 00e6 16 00e7 16 00e8 16 00e9 16 00ea 16 00eb 16 00ec 16 00ed 16 00ee 16 00ef 16 00f0 16 00f1 16 00f2 16 00f3 16 00f4 16 00f5 16 00f6 16 00f7 16 00f8 16 00f9 16 00fa 16 00fb 16 00fc 16 00fd 16 00fe 16 00ff 16 port p0 port p0 direction register port p1 port p1 direction register port p2 port p3 port p4 port p4 direction register port p5 (note 1) edge polarity selection register input latch register a-d control register a-d conversion register p0 pull-up control register p1?5 pull-up control register (note 2) transmit/receive buffer register serial i/o status register serial i/o control register uart control register baud rate generator timer 1 timer 2 timer 3 timer 4 timer ff register timer 12 mode register timer 34 mode register timer mode register 2 cpu mode register interrupt request register 1 interrupt request register 2 interrupt control register 1 interrupt control register 2 notes 1 : this address is not used in the 7477 group. 2 : this address is allocated p1?4 pull-up control register for the 7477 group.
11 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer when the device is put into power-down state by the stp instruc- tion or the wit instruction, if bit 5 in the edge polarity selection register is 1, the int 1 interrupt becomes a key on wake up inter- rupt. when a key on wake up interrupt is valid, an interrupt request is generated by applying the l level to any pin in port p0. in this case , the port used for interrupt must have been set for the input mode. if bit 5 in the edge polarity selection register is 0 when the device is in power-down state, the int 1 interrupt is selected. also, if bit 5 in the edge polarity selection register is set to 1 when the device is not in a power-down state, neither key on wake up interrupt re- quest nor int 1 interrupt request is generated. the cntr 0 /cntr 1 interrupts function in the same as int 0 and int 1 . the interrupt input pin can be specified for either cntr 0 or cntr 1 pin by setting bit 4 in the edge polarity selection register. figure 4 shows the structure of the edge polarity selection regis- ter, interrupt request registers 1 and 2, and interrupt control registers 1 and 2. interrupts other than the brk instruction interrupt and reset are accepted when the interrupt enable bit is 1, interrupt request bit is 1, and the interrupt disable flag is 0. the interrupt request bit can be reset with a program, but not set. the interrupt enable bit can be set and reset with a program. reset is treated as a non-maskable interrupt with the highest pri- ority. figure 5 shows interrupts control. interrupt source ______ reset int 0 interrupt int 1 interrupt or key on wake up interrupt cntr 0 interrupt or cntr 1 interrupt timer 1 interrupt timer 2 interrupt timer 3 interrupt timer 4 interrupt serial i/o receive interrupt serial i/o transmit interrupt a-d conversion completion interrupt brk instruction interrupt priority 1 2 3 4 5 6 7 8 9 10 11 12 vector addresses ffff 16 , fffe 16 fffd 16 , fffc 16 fffb 16 , fffa 16 fff9 16 , fff8 16 fff7 16 , fff6 16 fff5 16 , fff4 16 fff3 16 , fff2 16 fff1 16 , fff0 16 ffef 16 , ffee 16 ffed 16 , ffec 16 ffeb 16 , ffea 16 ffe9 16 , ffe8 16 remarks non-maskable external interrupt (polarity programmable) external interrupt (int 1 is polarity programmable) external interrupt (polarity programmable) non-maskable software interrupt table 1. interrupt vector address and priority. interrupts interrupts can be caused by 13 different sources consisting of five external, seven internal, and one software sources. interrupts are vectored interrupts with priorities shown in table 1. reset is also included in the table because its operation is similar to an interrupt. when an interrupt is accepted, the registers are pushed, interrupt disable flag i is set, and the program jumps to the address speci- fied in the vector table. the interrupt request bit is cleared automatically. the reset and brk instruction interrupt can never be disabled. other interrupts are disabled when the interrupt dis- able flag is set. all interrupts except the brk instruction interrupt have an interrupt request bit and an interrupt enable bit. the interrupt request bits are in interrupt request registers 1 and 2 and the interrupt enable bits are in interrupt control registers 1 and 2. external interrupts int 0 and int 1 can be asserted on either the falling or rising edge as set in the edge polarity selection register. when 0 is set to this register, the interrupt is activated on the falling edge; when 1 is set to the register, the interrupt is activated on the rising edge.
12 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 5 interrupt control fig. 4 structure of registers related to interrupt interrupt request bit interrupt enable bit interrupt disable flag i brk instruction reset interrupt request b7 b0 edge polarity selection register (eg) (address 00d4 16 ) int 0 edge selection bit int 1 edge selection bit cntr 0 edge selection bit cntr 1 edge selection bit 0 : falling edge 1 : rising edge cntr 0 /cntr 1 interrupt selection bit 0 : cntr 0 1 : cntr 1 int 1 source selection bit (at power-down state) 0 : p3 1 /int 1 1 : p0 0 ?p0 7 ??level (for key-on wake-up) nothing is allocated (the value is undefined at reading) b7 b0 interrupt request register 1 (address 00fc 16 ) timer 1 interrupt request bit timer 2 interrupt request bit timer 3 interrupt request bit timer 4 interrupt request bit nothing is allocated (the value is undefined at reading) serial i/o receive interrupt request bit serial i/o transmit interrupt request bit a-d conversion completion interrupt request bit b7 b0 interrupt control register 1 (address 00fe 16 ) timer 1 interrupt enable bit timer 2 interrupt enable bit timer 3 interrupt enable bit timer 4 interrupt enable bit nothing is allocated (the value is undefined at reading) serial i/o receive interrupt enable bit serial i/o transmit interrupt enable bit a-d conversion completion interrupt enable bit b7 b0 interrupt request register 2 (address 00fd 16 ) int 0 interrupt request bit int 1 interrupt request bit nothing is allocated (the value is undefined at reading) cntr 0 or cntr 1 interrupt request bit 0 : no interrupt request 1 : interrupt requested b7 b0 interrupt control register 2 (address 00ff 16 ) int 0 interrupt enable bit int 1 interrupt enable bit nothing is allocated (the value is undefined at reading) cntr 0 or cntr 1 interrupt enable bit 0 : interrupt disable 1 : interrupt enabled
13 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer timer the 7477/7478 group has four timers; timer 1, timer 2, timer 3, and timer 4. a block diagram of timer 1 through 4 is shown in figure 6. timer 1 can be operated in the timer mode, event count mode, or pulse output mode. timer 1 starts counting when bit 0 in the timer 12 mode register (address 00f8 16 ) is set to 0. the count source can be selected from the f(x in ) divided by 16, f(x cin ) divided by 16, f(x cin ), or event input from p3 2 /cntr 0 pin. do not select f(x cin ) as the count source in the 7477 group. when bit 1 and bit 2 in the timer 12 mode register are 0, f(x in ) divided by 16 or f(x cin ) divided by 16 is selected. selection between f(x in ) and f(x cin ) is done by bit 7 in the cpu mode register (ad- dress 00fb 16 ). when bit 1 in the timer 12 mode register is 0 and bit 2 is 1, f(x cin ) is selected. and, when bit 1 in the timer 12 mode register is 1, an event input from the cntr 0 pin is se- lected. event inputs are selected depending on bit 2 in the edge polarity selection register (address 00d4 16 ). when this bit is 0, the inverted value of cntr 0 input is selected; when the bit is 1, cntr 0 input is selected. when bit 3 in the timer 12 mode register is set to 1, the p1 2 pin becomes timer output t 0 . when the direction register of p1 2 is set for the output mode at this time, the timer 1 overflow divided by 2 is output from t 0 . please set the initial output value in the following procedure. set 1 to bit 0 of the timer 12 mode register. (timer 1 count stop.) set 1 to bit 0 of the timer mode register 2. a set the output value to bit 0 of the timer ff register. ? set the count value to the timer 1. ? set 0 to bit 0 of the timer 12 mode register. (timer 1 count start.) timer 2 can only be operated in the timer mode. timer 2 starts counting when bit 4 in the timer 12 mode register is set to 0. the count source can be selected from the divide by 16, divide by 64, divide by 128, or divide by 256 frequency of f(x in ) or f(x cin ), and timer 1 overflow. do not select f(x cin ) as the count source in the 7477 group. when bit 5 in the timer 12 mode register is 0, any of the divide by 16, divide by 64, divide by 128, or divide by 256 frequency of f(x in ) or f(x cin ) is selected. the divide ratio is selected according to bit 6 and bit 7 in the timer 12 mode register, and selection between f(x in ) and f(x cin ) is made according to bit 7 in the cpu mode register. when bit 5 in the timer 12 mode reg- ister is 1, timer 1 overflow is selected as the count source. timer 3 can be operated in the timer mode, event count mode, or pwm mode. timer 3 starts counting when bit 0 in the timer 34 mode register (address 00f9 16 ) is set to 0. the count source can be selected from the f(x in ) divided by 16, f(x cin ) divided by 16, f(x cin ), timer 1 or timer 2 overflow, or an event input from p3 3 /cntr 1 pins according to the statuses of bit 1 and bit 2 in the timer 34 mode register, bit 6 in the timer mode reg- ister 2 (address 00fa 16 ) and bit 7 in the cpu mode register. do not select f(x cin ) as the count source in the 7477 group. note, however, that if timer 1 overflow or timer 2 overflow is selected for the count source of timer 3 when timer 1 overflow is selected for the count source of timer 2, timer 1 overflow is always selected re- gardless of the status of bit 6 in the timer mode register 2. event inputs are selected depending on bit 3 in the edge polarity selec- tion register. when this bit is 0, the inverted value of cntr 1 input is selected; when the bit is 1, cntr 1 input is selected. timer 4 can be operated in the timer mode, event count mode, pulse output mode, pulse width measuring mode, or pwm mode. timer 4 starts counting when bit 3 in the timer 34 mode register is set to 0 when bit 6 in this register is 0. when bit 6 is 1, the pulse width measuring mode is selected. the count source can be selected from timer 3 overflow, f(x in ) divided by 16, f(x cin ) divided by 16, f(x cin ), timer 1 or timer 2 overflow, or an event input from p3 3 /cntr 1 pin according to the statuses of bit 4 and bit 5 in the timer 34 mode register, bit 6 in the timer mode register 2, and bit 7 in the cpu mode register. do not select f(x cin ) as the count source in the 7477 group. note, however, that if timer 1 overflow or timer 2 overflow is selected for the count source of timer 4 when timer 1 overflow is selected for the count source of timer 2, timer 1 overflow is always selected regardless of the status of bit 6 in the timer mode register 2. event inputs are selected depending on bit 3 in the edge polarity selection register. when this bit is 0, the inverted value of cntr 1 input is selected; when the bit is 1, cntr 1 input is selected. when bit 7 in the timer 34 mode register is set to 1, the p1 3 pin becomes timer output t 1 . when the direction register of p1 3 is set for the output mode at this time, the timer 4 overflow divided by 2 is output from t 1 when bit 7 in the timer mode register 2 is 0. please set the initial output value in the following procedure. set 1 to bit 3 of the timer 34 mode register. (timer 4 count stop.) set 1 to bit 1 of the timer mode register 2. a set the output value to bit 1 of the timer ff register. ? set the count value to the timer 4. ? set 0 to bit 3 of the timer 34 mode register. (timer 4 count start.) (1) timer mode timer performs down count operations with the dividing ratio being 1/(n+1). writing a value to the timer latch sets a value to the timer. when the value to be set to the timer latch is nn 16 , the value to be set to a timer is nn 16 , which is down counted at the falling edge of the count source from nn 16 to (nn 16 -1) to (nn 16 -2) to ...01 16 to 00 16 to ff 16 . at the falling edge of the count source immediately after timer value has reached ff 16 , value (nn 16 -1) obtained by subtract- ing one from the timer latch value is set (reloaded) to the timer to continue counting. at the rising edge of the count source immedi- ately after the timer value has reached ff 16 , an overflow occurs and an interrupt request is generated. (2) event count mode timer operates in the same way as in the timer mode except that it counts input from the cntr 0 or cntr 1 pin. (3) pulse output mode in this mode, duty 50% pulses are output from the t 0 or t 1 pin. when the timer overflows, the polarity of the t 0 or t 1 pin output level is inverted. (4) pulse width measuring mode the 7477/7478 group can measure the h or l width of the cntr 0 or cntr 1 input waveform by using the pulse width mea- suring mode of timer 4. the pulse width measuring mode is selected by writing 1 to bit 6 in the timer 34 mode register. in the pulse width measuring mode, the timer counts the count source while the cntr 0 or cntr 1 input is h or l. whether the cntr 0 input or cntr 1 input to be measured can be specified by the sta- tus of bit 4 in the edge polarity selection register; whether the h
14 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer width or l width to be measured can be specified by the status of bit 2 (cntr 0 ) and bit 3 (cntr 1 ) in the edge polarity selection reg- ister. (5) pwm mode the pwm mode can be entered for timer 3 and timer 4 by setting bit 7 in the timer mode register 2 to 1. in the pwm mode, the p1 3 pin is set for timer output t 1 to output pwm waveforms by setting bit 7 in the timer 34 mode register to 1. the direction register of p1 3 must be set for the output mode before this can be done. in the pwm mode, timer 3 is counting and timer 4 is idle while the pwm waveform is l. when timer 3 overflows, the pwm wave- form goes h. at this time, timer 3 stops counting simultaneously and timer 4 starts counting. when timer 4 overflows, the pwm waveform goes l, and timer 4 stops and timer 3 starts counting again. consequently, the l duration of the pwm waveform is de- termined by the value of timer 3; the h duration of the pwm waveform is determined by the value of timer 4. when a value is written to the timer in operation during the pwm mode, the value is only written to the timer latch, and not written to the timer. in this case, if the timer overflows, a value one less the value in the timer latch is written to the timer. when any value is written to an idle timer, the value is written to both the timer latch and the timer. in this mode, do not select timer 3 overflow as the count source for timer 4. input latch function the 7477/7478 group can latch the p3 0 /int 0 , p3 1 /int 1 , p3 2 / cntr 0 , and p3 3 /cntr 1 pin level into the input latch register (ad- dress 00d6 16 ) when timer 4 overflows. the polarity of each pin latched to the input latch register can be selected by using the edge polarity selection register. when bit 0 in the edge polarity selection register is 0, the in- verted value of the p3 0 /int 0 pin level is latched; when the bit is 1, the p3 0 /int 0 pin level is latched as it is. when bit 1 in the edge polarity selection register is 0, the in- verted value of the p3 1 /int 1 pin level is latched; when the bit is 1, the p3 1 /int 1 pin level is latched as it is. when bit 2 in the edge polarity selection register is 0, the inverted value of the p3 2 /cntr 0 pin level is latched; when the bit is 1, the p3 2 /cntr 0 pin level is latched as it is. when bit 3 in the edge polarity selec- tion register is 0, the inverted value of the p3 3 /cntr 1 pin level is latched; when the bit is 1, the p3 3 /cntr 1 pin level is latched as it is.
15 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 6 block diagram of timer 1 through 4 timer 1 latch (8) timer 1 (8) timer 2 latch (8) timer 2 (8) 1/4 1/8 1/16 timer 3 latch (8) timer 3 (8) timer 4 latch (8) timer 4 (8) data bus t12m 2 t12m 0 t12m 1 tm2 0 1/2 1/2 1/2 1/8 eg 2 port latch t12m 3 t12m 6 t12m 7 t12m 5 t12m 4 tm2 6 t34m 1 t34m 2 t34m 0 t34m 4 t34m 5 f/f 1/2 tm2 1 tm2 7 eg 3 eg 2 t34m 3 t34m 6 eg 4 port latch x cin (note) x in p3 2 /cntr 0 p1 2 /t 0 p3 2 /cntr 1 p1 3 /t 1 t34m 7 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p3 0 /int 0 eg 1 eg 0 ( select gate : at reset, shaded side is connected.) note : the 7477 group does not have x cin input. timer 1 interrupt request timer 2 interrupt request timer 3 interrupt request timer 4 interrupt request c d3 q3 d2 q2 d1 q1 d0 q0 eg 3 cm 7
16 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 7 structure of timer mode registers timer 12 mode register (t12m) (address 00f8 16 ) timer 1 count stop bit 0 : count start 1 : count stop timer 1 count source selection bit 0 : internal clock (note 1) 1 : p3 2 /cntr 0 external clock timer 1 internal clock source selection bit (note 2) 0 : f(x in ) divided by 16 or f(x cin ) divided by 16 1 : f(x cin ) p1 2 /t 0 port output selection bit 0 : p1 2 port output 1 : timer 1 overflow divided by 2 timer 2 count stop bit 0 : count start 1 : count stop timer 2 count source selection bit 0 : internal clock 1 : timer 1 overflow timer 2 internal clock source selection bits (note 3) 00 : f(x in ) divided by 16 or f(x cin ) divided by 16 01 : f(x in ) divided by 64 or f(x cin ) divided by 64 10 : f(x in ) divided by 128 or f(x cin ) divided by 128 11 : f(x in ) divided by 256 or f(x cin ) divided by 256 b7 b0 timer mode register 2 (tm2) (address 00fa 16 ) timer 1 overflow ff set enable bit 0 : set disable 1 : set enable timer 4 overflow ff set enable bit 0 : set disable 1 : set enable nothing is allocated (the value is undefined at reading) timer 3, timer 4 count overflow signal selection bit 0 : timer 1 overflow 1 : timer 2 overflow timer 3, timer 4 function selection bit 0 : normal mode 1 : pwm mode b7 b0 timer 34 mode register (t34m) (address 00f9 16 ) timer 3 count stop bit 0 : count start 1 : count stop timer 3 count source selection bits (note 3) 00 : f(x in ) divided by 16 or f(x cin ) divided by 16 01 : f(x cin ) 10 : timer 1 overflow or timer 2 overflow 11 : p3 3 /cntr 1 external clock timer 4 count stop bit 0 : count start 1 : count stop timer 4 count source selection bits (note 3) 00 : timer 3 overflow 01 : f(x in ) divided by 16 or f(x cin ) divided by 16 10 : timer 1 overflow or timer 2 overflow 11 : p3 3 /cntr 1 external clock timer 4 pulse width measuring mode selection bit 0 : timer mode 1 : pulse width measuring mode p1 3 /t 1 port output selection bit 0 : p1 3 port output 1 : timer 4 overflow divided by 2 or pwm output b7 b0 notes 1 : f(x in ) divided by 16 in the 7477 group. 2 : the 7477 group does not use this bit (bit 2). set this bit to 0. 3 : do not select f(x cin ) as the count source in the 7477 group.
17 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer serial i/o serial i/o can be used as either clock synchronous or asynchro- nous (uart) serial i/o. a dedicated timer (baud rate generator) is also provided for baud rate generation. clock synchronous serial i/o mode clock synchronous serial i/o mode can be selected by setting the mode selection bit of the serial i/o control register to 1. for clock synchronous serial i/o, the transmitter and the receiver must use the same clock. if an internal clock is used, transfer is started by a write signal to the transmit or receive buffer. fig. 8 clock synchronous serial i/o block diagram fig. 9 operation of clock synchronous serial i/o function transfer shift clock (1/8 to 1/8192 of the internal clock, or an external clock) serial output txd serial input rxd receive enable signal s rdy write signal to receive/transmit buffer d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 7 tbe = 0 tbe = 1 tsc = 0 rbf = 1 tsc = 1 overrun error (oe) detection notes 1 : the transmit interrupt request (ti) can be selected to occur either when the transmit buffer has emptied (tbe = 1) or after the transmit shift operation has ended (tsc = 1), by setting the transmit interrupt source selection bit (tic) of the serial i/o co ntrol register. 2 : if data is written to the transmit buffer when tsc = 0, the transmit clock is generated continuously and serial data is outp ut continuously from the txd pin. 3 : the receive interrupt request (ri) is set when the receive buffer full flag (rbf) becomes 1. data bus data bus receive buffer register clock control circuit serial i/o control register fall detect serial i/o status register f/f 1/4 1/4 1/4 transmit shift completion flag (tsc) transmit interrupt request (ti) transmit buffer empty flag (tbe) receive buffer full flag (rbf) receive interrupt request (ri) serial i/o synchronous clock selection bit (scs) frequency dividing ratio 1/(n+1) p1 6 p1 4 shift clock p1 5 p1 7 clock control circuit receive shift register transmit shift register transmit buffer register t x d s rdy s clk r x d f(x in ) srdy address 00e0 16 address 00e2 16 address 00e0 16 address 00e1 16 address 00e4 16 css te re sioe baud rate generator tic shift clock
18 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer buffers have the same address in memory. since the shift register cannot be written to or read from directly, transmit data is written to the transmit buffer, and receive data is read from the receive buffer. the transmit buffer can also hold the next data to be trans- mitted, and the receive buffer can hold a character while the next character is being received. asynchronous serial i/o (uart) mode clock asynchronous serial i/o mode (uart) can be selected by clearing the serial i/o mode selection bit of the serial i/o control register to 0. eight serial data transfer formats can be selected, and the transfer formats used by a transmitter and receiver must be identical. the transmit and receive shift registers each have a buffer, but the two fig. 10 uart serial i/o block diagram fig. 11 operation of uart serial i/o function receive buffer register clock control circuit serial i/o control register baud rate generator serial i/o status register 1/4 1/4 transmit shift completion flag (tsc) transmit interrupt request (ti) transmit buffer empty flag (tbe) receive buffer full flag (rbf) receive interrupt request (ri) frequency dividing ratio 1/(n+1) p1 4 p1 5 p1 6 receive shift register transmit shift register transmit buffer register t x d s clk r x d f(x in ) address 00e0 16 address 00e2 16 address 00e0 16 address 00e1 16 7-bit 1/16 1/16 uart control register st/sp/pa generation serial i/o synchronous clock selection bit oe sp detection 8-bit pe fe st detection address 00e3 16 character length selection bit data bus data bus re te tic st d 0 d 1 sp st d 0 d 1 sp transmit or receive clock transmit buffer write signal serial output txd receive buffer read signal serial input rxd tbe=0 tsc=0 tbe=0 tbe=1 rbf=0 rbf=1 rbf=1 tsc=1 1 start bit 7 or 8 data bits 1 or 0 parity bit 1 or 2 stop bit(s) st d 0 d 1 sp st d 1 sp ] ] generated at 2nd bit in 2 - stop - bit mode notes 1 : error flag detection occurs at the same time that the rbf flag becomes ??(at 1st stop bit during reception). 2 : the transmit interrupt (ti) can be selected to occur when either the tbe or tsc flag becomes ?,?depending on the setting of the transmit interrupt source selection bit (tic) of the serial i/o control register. 3 : the receive interrupt (ri) is set when the rbf flag becomes ?? tbe=1 d 0
19 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer serial i/o control register siocon the serial i/o control register consists of eight control bits for the serial i/o function. uart control register uartcon the uart control register consists of four control bits (bits 0 to 3) which are valid when asynchronous serial i/o is selected and set the data format of a data transfer. serial i/o status register siosts the read-only serial i/o status register consists of seven flags (bits 0 to 6) which indicate the operating status of the serial i/o function and various errors. three of the flags (bits 4 to 6) are valid only in selected uart. the receive buffer full flag (bit 1) is cleared to 0 when the receive buffer is read. if there is an error, it is detected at the same time that data is transferred from the receive shift register to the receive buffer, and the receive buffer full flag is set. writing to the serial i/o status register clears all the error flags oe, pe, fe, and se(bit 3 to bit 6, respectively). writing 0 to the serial i/o enable bit sioe (bit 7 of the serial i/o control register) also clears all the status flags, in- cluding the error flags. all bits of the serial i/o status register are initialized to 0 at reset, but if the transmit enable bit (bit 4) of the serial i/o control register has been set to 1, the transmit shift completion flag (bit 2) and the transmit buffer empty flag (bit 0) become 1. transmit buffer/receive buffer tb/rb the transmit buffer and the receive buffer are located at the same address. the transmit buffer is write-only and the receive buffer is read-only. if a character bit length is 7 bits, the msb of data stored in the receive buffer is 0. baud rate generator brg the baud rate generator determines the baud rate for serial trans- fer. the baud rate generator divides the frequency of the count source by 1/(n+1), where n is the value written to the baud rate generator.
20 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 12 structure of serial i/o control registers b7 b0 transmit buffer empty flag (tbe) 0 : buffer full 1 : buffer empty receive buffer full flag (rbf) 0 : buffer empty 1 : buffer full transmit shift completion flag (tsc) 0 : transmit shift in progress 1 : transmit shift completed overrun error flag (oe) 0 : no error 1 : overrun error parity error flag (pe) 0 : no error 1 : parity error framing error flag (fe) 0 : no error 1 : framing error summing error flag (se) 0 : (oe)u(pe)u(fe)=0 1 : (oe)u(pe)u(fe)=1 not used (returns 1 when read) serial i/o status register (siosts: address 00e1 16 ) serial i/o synchronous clock selection bit (scs) 0 : brg output divided by 4 (when clock synchronous serial i/o is selected) brg output divided by 16 (when uart is selected) 1 : external clock input (when clock synchronous serial i/o is selected ) external clock input divided by16 (when uart is selected ) b7 b0 serial i/o control register (siocon: address 00e2 16 ) brg count source selection bit (css) 0 : f(x in )divided by 4 1 : f(x in )divided by16 s rdy output enable bit (srdy) 0 : p1 7 pin operates as ordinary i/o pin 1 : p1 7 pin operates as s rdy output pin transmit interrupt source selection bit (tic) 0 : interrupt when transmit buffer has emptied. 1 : interrupt when transmit shift operation is completed. transmit enable bit (te) 0 : transmit disabled 1 : transmit enabled receive enable bit (re) 0 : receive disabled 1 : receive enabled serial i/o mode selection bit (siom) 0 : asynchronous serial i/o (uart) 1 : clock synchronous serial i/o serial i/o enable bit (sioe) 0 : serial i/o disabled (pins p1 4 to p1 7 operate as ordinary i/o pins) 1 : serial i/o enabled (pins p1 4 to p1 7 operate as serial i/o pins) b7 b0 uart control register (uartcon: address 00e3 16 ) character length selection bit (chas) 0 : 8 bits 1 : 7 bits not used (returns 1 when read) parity enable bit (pare) 0 : parity checking disabled 1 : parity checking enabled parity selection bit (pars) 0 : even parity 1 : odd parity stop bit length selection bit (stps) 0 : 1 stop bit 1 : 2 stop bits
21 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer a-d converter the a-d conversion uses an 8-bit successive comparison method. figure 13 shows a block diagram of the a-d conversion circuit. conversion is automatically carried out once started by the pro- gram. there are eight analog input pins which are shared with p2 0 to p2 7 of port p2 (only p2 0 to p2 3 4-bit for 7477 group). which analog inputs are to be a-d converted is specified by using bit 2 to bit 0 in the a-d control register (address 00d9 16 ). pins for inputs to be a-d converted must be set for input by setting the di- rection register bit to 0. bit 3 in the a-d control register is an a-d conversion end bit. this is 0 during a-d conversion; it is set to 1 when the conversion is terminated. therefore, it is possible to know whether a-d conversion is terminated by checking this bit. figure 14 shows the relationship between the contents of a-d control register and the selected input pins. fig. 13 a-d converter circuit the a-d conversion register (address 00da 16 ) contains informa- tion on the results of conversion, so that it is possible to know the results of conversion by reading the contents of this register. the following explains the procedure to execute a-d conversion. first, set values to bit 2 to bit 0 in the a-d control register to select the pins that you want to execute a-d conversion. next, clear the a-d conversion end bit to 0. when the above is done, a-d con- version is initiated. the a-d conversion is completed after an elapse of 50 machine cycles (12.5 m s when f(x in ) = 8mhz), the a- d conversion end bit is set to 1, and the interrupt request bit is set to 1. the results of conversion are contained in the a-d con- version register. comparator a-d control circuit switch tree ladder resistor a-d conversion completion interrupt request v ss (note 1) v ref 1 : av ss for m37478m4/m8/e8-xxxfp. 2 : the 7477 group does not have p2 4 /in 4 to p2 7 /in 7 pins. p2 0 /in 0 p2 1 /in 1 p2 2 /in 2 p2 3 /in 3 p2 4 /in 4 p2 5 /in 5 p2 6 /in 6 p2 7 /in 7 data bus a-d control register (address 00d9 16 ) bit 3 channel selector notes bit 0 a-d conversion register (address 00da 16 )
22 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 14 structure of a-d control register a-d control register (address 00d9 16 ) analog input selection bit s 000 : in 0 001 : in 1 010 : in 2 011 : in 3 100 : in 4 101 : in 5 110 : in 6 111 : in 7 b7 b0 note : do not select in 4 to in 7 in the 7477 group. (note) this bit must be set to ?? nothing is allocated (the value is undefined at reading) a-d conversion end bit 0 : under conversion 1 : end conversion
23 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer the key on wake up interrupt is common with the int 1 interrupt. when eg 5 is set to 1, the key on wake up function is selected. however, key on wake up cannot be used in the normal operating state. when the microcomputer is in the normal operating state, both key on wake up and int 1 are invalid. key on wake up key on wake up is one way of returning from a power down state caused by the stp or wit instruction. if any terminal of port p0 has l level applied, after bit 5 of the edge polarity selection reg- ister (eg 5 ) is set to 1, an interrupt is generated and the microcomputer is returned to the normal operating state. a key matrix can be connected to port p0 and the microcomputer can be returned to a normal state by pushing any key. fig. 15 block diagram of interrupt input and key on wake up circuit p3 3 /cntr 1 p3 2 /cntr 0 p3 0 /int 0 p3 1 /int 1 p0 7 p0 1 eg 3 port p3 3 data read circuit cntr interrupt request signal port p3 2 data read circuit eg 0 port p3 0 data read circuit int 0 interrupt request signal port p3 1 data read circuit int 1 interrupt request signal cpu halt state signal port p0 data read circuit eg 1 eg 5 p0 0 pull-up control register direction register pull-up control register direction register pull-up control register direction register eg 2 noise eliminating circuit 1/2 1/2 x cin (p5 0 ) x in cm 7 ( select gate: at reset, shaded side is connected.). note: the 7477 group does not have x cin input. eg 4 noise eliminating circuit
24 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 18 timing diagram at reset fig. 16 example of reset circuit fig. 17 internal state of microcomputer at reset (1) port p0 direction register (c1 16 ) (2) port p1 direction register (c3 16 ) (3) port p4 direction register (c9 16 ) (4) p0 pull-up control register (d0 16 ) (5) p1?5 pull-up control register (note 1) (d1 16 ) (6) edge selection register (eg) (d4 16 ) (7) a-d control register (d9 16 ) (8) serial i/o status register (e1 16 ) (9) serial i/o control register (e2 16 ) (10) uart control register (e3 16 ) (11) timer 12 mode register (t12m) (f8 16 ) (12) timer 34 mode register (t34m) (f9 16 ) (13) timer mode register 2 (tm2) (fa 16 ) (14) cpu mode register (cm) (fb 16 ) (15) interrupt request register 1 (fc 16 ) (16) interrupt request register 2 (fd 16 ) (17) interrupt control register 1 (fe 16 ) (18) interrupt control register 2 (ff 16 ) (19) program counter (pc h ) (pc l ) (20) processor status register (ps) 00 16 00 16 0000 00 00 000000 01000 00 00 000 0000 00 00 000 0 000 00 0 000 000 00 0 000 000 1 00 16 00 16 00 16 00 16 contents of address ffff 16 contents of address fffe 16 notes 1 : this address is allocated p1?4 pull-up control register for the 7477 group. bit 6 is not used. 2 : since the contents of both registers other than those listed above (including timers and the transmit/receive buffer register) are undefined at reset, it is necessary to set initial values. address reset circuit the 7477/7478 group is reset according to the sequence shown in figure 18. it starts the program from the address formed by using the content of address ffff 16 as the high order address and the content of the address fffe 16 as the low order address, when the reset pin is held at l level for no less than 2 m s while the power voltage is in the recommended operating condition and then re- turned to h level. the internal initializations following reset are shown in figure 17. example of reset circuit is figure 16. immediately after reset, timer 3 and timer 4 are connected, and counts the f(x in ) divided by 16. at this time, ff 16 is set to timer 3, and 07 16 is set to timer 4. the reset is cleared when timer 4 overflows. reset v cc 7477/7478 group 00, s 00, s-1 00, s-2 fffe 16 ffff 16 ad h,l pc h pc l ps ad l ad h x in f reset internal address data sync 32768 counts of f(x in ) reset address from the vector table notes 1 : frequency relation of x in and f is f(x in )=2 f . 2 : the mark ??means that the address is changeable depending upon the previous state. reset ? ? ? ?
25 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer i/o ports (1) port p0 port p0 is an 8-bit i/o port with cmos outputs. as shown in figure 2, p0 can be accessed as memory through zero page address 00c0 16 . port p0s direction register allows each bit to be programmed individually as input or output. the direction register (zero page address 00c1 16 ) can be programmed as input with 0, or as output with 1. when in the output mode, the data to be output is latched to the port latch and output. when data is read from the output port, the output pin level is not read, only the latched data of the port latch is read. therefore, a previously output value can be read correctly even though the output voltage level has been shifted up or down. port pins set as input are in the high impedance state so the signal level can be read. when data is written into the input port, the data is latched only to the output latch and the pin still remains in the high impedance state. following the execution of stp or wit instruction, key matrix with port p0 can be used to generate the interrupt to bring the microcom- puter back in its normal state. when this port is selected for input, pull-up transistor can be connected in units of 1-bit. (2) port p1 port p1 has the same function as port p0. p1 2 C p1 7 serve dual functions, and the desired function can be selected by the program. when this port is selected for input, pull-up tran- sistor can be connected in units of 4-bit. (3) port p2 port p2 is an 8-bit input port. in the 7477 group, this port is p2 0 C p2 3 , a 4-bit input port. this port can also be used as the analog voltage input pins. (4) port p3 port p3 is a 4-bit input port. (5) port p4 port p4 is a 4-bit i/o port and has basically the same func- tions as port p0. in the 7477 group, this port is p4 0 and p4 1 , a 2-bit i/o port. when this port is selected for input, pull-up transistor can be connected in units of 4-bit . (6) port p5 port p5 is a 4-bit input port and pull-up transistor can be con- nected in units of 4-bit. p5 0 and p5 1 are shared with clock generating circuit input/output pins. the 7477 group does not have this port. (7) int 0 pin (p3 0 /int 0 pin) this is an interrupt input pin, and is shared with port p3 0 . when h to l or l to h transition input is applied to this pin, the int 0 interrupt request bit (bit 0 of address 00fd 16 ) is set to 1. (8) int 1 pin (p3 1 /int 1 pin) this is an interrupt input pin, and is shared with port p3 1 . when h to l or l to h transition input is applied to this pin, the int 1 interrupt request bit (bit 1 of address 00fd 16 ) is set to 1. (9) counter input cntr 0 pin (p3 2 /cntr 0 pin) this is a timer input pin, and is shared with port p3 2 . when this pin is selected to cntr 0 or cntr 1 interrupt input pin and h to l or l to h transition input is applied to this pin, the cntr 0 or cntr 1 interrupt request bit (bit 2 of ad- dress 00fd 16 ) is set to 1. (10) counter input cntr 1 pin (p3 3 /cntr 1 pin) this is a timer input pin, and is shared with port p3 3 . when this pin is selected to cntr 0 or cntr 1 interrupt input pin and h to l or l to h transition input is applied to this pin, the cntr 0 or cntr 1 interrupt request bit (bit 2 of ad- dress 00fd 16 ) is set to 1.
26 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 19 block diagram of ports p0, p1 0 Cp1 3 direction register port latch interrupt control circuit tr1 port p0 data bus port p0 tr2 port p1 3 data bus t34m 7 t 1 data bus tr3 port p1 2 data bus t12m 3 t 0 port p1 1 tr4 data bus tr5 data bus port p1 0 ports p1 0 ?p1 3 tr1 to tr5 are pull-up transistors. pull-up control register port latch pull-up control register port latch port latch port latch direction register direction register direction register direction register
27 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 20 block diagram of ports p1 4 C p1 7 direction register port latch tr6 port p1 7 data bus sioe siom srdy s rdy tr7 port p1 6 data bus siom sioe clk output scs sioe tr8 port p1 5 data bus sioe t x d te tr9 port p1 4 data bus sioe re r x d data bus tr6 to tr9 are pull-up transistors. ports p1 4 ?p1 7 clk input direction register port latch direction register port latch direction register port latch pull-up control register
28 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 21 block diagram of ports p2 C p4 data bus multi- plexer port p2 a-d conversion circuit port p2 port p3 int 0 , int 1 cntr 0 , cntr 1 data bus port p3 pull-up control register* direction register port latch * : control in units of 4-bit (control in units of 2-bit for the 7477 group) tr10 port p4 tr10 is pull-up transistor port p4 data bus data bus
29 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 22 block diagram of port p5 port p5 pull-up control register data bus data bus tr11 port p5 3 tr12 port p5 2 tr13 port p5 1 data bus cm 4 data bus cm 4 cm 4 x cin tr14 port p5 0 cm 4 data bus tr11 to tr14 are pull-up transistors note : the 7477 group does not have this port.
30 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 23 example of ceramic resonator circuit (7477 group) fig. 24 example of ceramic resonator circuit (7478 group) fig. 25 external clock input circuit (7477 group) fig. 26 external clock input circuit (7478 group) clock generating circuit the 7477 group has one internal clock generating circuit and 7478 group has two internal clock generating circuits. figure 27 shows a block diagram of the clock generating circuit. normally, the frequency applied to the clock input pin x in divided by two is used as the internal clock f . bit 7 of cpu mode register can be used to switch the internal clock f to 1/2 the frequency ap- plied to the clock input pin x cin in the 7478 group. figure 23, 24 show a circuit example using a ceramic resonator (or quartz crystal oscillator). use the manufacturers recom- mended values for constants such as capacitance which will differ depending on each oscillator. when using an external clock sig- nal, input from the x in (x cin ) pin and leave the x out (x cout ) pin open. a circuit example is shown in figure 25, 26. the 7477/7478 group has two low power dissipation modes; stop and wait. the microcomputer enters a stop mode when the stp instruction is executed. the oscillator (both x in clock and x cin clock) stops with the internal clock f held at h level. in this case timer 3 and timer 4 are forcibly connected and ff 16 is automati- cally set in timer 3 and 07 16 in timer 4. although oscillation is restarted when an external interrupt is ac- cepted, the internal clock f remains in the h state until timer 4 overflows. in other words, the internal clock f is not supplied until timer 4 overflows. this is because when a ceramic or similar other oscillator is used, a finite time is required until stable oscillation is obtained after restart. the microcomputer enters an wait mode when the wit instruction is executed. the internal clock f stops at h level, but the oscilla- tor does not stop. f is re-supplied (wait mode release) when the microcomputer receives an interrupt. instructions can be executed immediately because the oscillator is not stopped. the interrupt enable bit of the interrupt used to reset the wait mode or the stop mode must be set to 1 before execut- ing the wit or the stp instruction. low power dissipation operation is also achieved when the x in clock is stopped and the internal clock f is generated from the x cin clock (30 m a typ. at f(x cin ) = 32khz). this operation is only 7478 group. x in clock oscillation is stopped when the bit 6 of cpu mode register is set and restarted when it is cleared. however, the wait time until the oscillation stabilizes must be generated with a program when restarting. figure 29 shows the transition of states for the system clock. x in x out c out c in r d m37477m4-xxxsp/fp x in x out c cout c cin r d m37478m4-xxxsp/fp x cin x cout c out c in r d x in x out m37477m4-xxxsp/fp external oscillation circuit open v cc v ss x in x out m37478m4-xxxsp/fp x cin x cout open external oscillation circuit external oscillation circuit or external pulse open v cc v ss v cc v ss
31 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 27 block diagram of clock generating circuit fig. 28 structure of cpu mode register q r s q r s q r s q r s q r s x in x out 1/2 1/8 reset stp instruction reset interrupt disable flag i interrupt request stp instruction wit instruction internal clock f x cin 1/2 timer 4 timer 3 t34m 0 t34m 1 t34m 2 x cout cm 6 cm 7 cm 7 note : the 7477 group does not have x cin input and x cout output. select gate : at reset, shaded side is connected. b7 b0 cpu mode register (address 00fb 16 ) these bits must always be set to ?? stack page selection bit (note 1) 0 : in page 0 area 1 : in page 1 area p5 0 , p5 1 /x cin , x cout selection bit (note 2) 0 : p5 0 , p5 1 1 : x cin , x cout x cout drive capacity selection bit (note 2) 0 : low 1 : high clock (x in -x out ) stop bit (note 2) 0 : oscillates 1 : stops internal system clock selection bit (note 2) 0 : x in -x out selected (normal mode) 1 : x cin -x cout selected (low-speed mode) notes 1 : in the m37477m4, m37478m4, set this bit to ?? 2 : in the 7477 group, set this bit to ??
32 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer notes 1 : latency time is automatically generated upon release from the stp instruction due to the connections of timer 3 and 4. 2 : when the system clock is switched over by restarting clock oscillation, a certain wait time required for oscillation to stabilize must be inserted by the program. f(x in ) oscillation f(x cin ) stop f stop timer operation stp instruction interrupt (note 1) cm 4 = 0 cm 5 = 0 cm 6 = 0 cm 7 = 0 reset wit instruction interrupt f(x in ) oscillation f(x cin ) stop p5 0 , p5 1 input f = f(x in )/2 f(x in ) stop f(x cin ) stop f stop f(x in ) oscillation f(x cin ) oscillation f stop timer operation stp instruction interrupt (note 1) wit instruction interrupt f(x in ) oscillation f(x cin ) oscillation f = f(x in )/2 f(x in ) stop f(x cin ) stop f stop cm 4 = 0 cm 5 = 1 cm 4 = 1 (note 2) f(x in ) oscillation f(x cin ) oscillation f stop timer operation stp instruction interrupt (note 1) wit instruction interrupt f(x in ) oscillation f(x cin ) oscillation f = f(x cin )/2 f(x in ) stop f(x cin ) stop f stop cm 7 = 0 (cm 5 = 0) cm 7 = 1 f(x in ) stop f(x cin ) oscillation f stop timer operation stp instruction interrupt (note 1) wit instruction interrupt f(x in ) stop f(x cin ) oscillation f = f(x cin )/2 f(x in ) stop f(x cin ) stop f stop cm 6 = 0 (note 2) cm 6 = 1 cm 5 = 1 cm 5 = 1 fig. 29 transition of states for the system clock.
33 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer ? ? ? ? y ? ? ? ? t ? ? ? ? ? ? ? ? y ? ? ? ? ? ? ? ? t normal operation operation on the clock function only ? ? ? ? ? ? ? y ? ? ? ? ? ? ? t return from clock function power on reset clock x oscillation internal system clock start (x ? 1/2 ? f ) program start from reset vector normal program operating at f(x in ) clock for clock function x c oscillation start (cm 4 = 1, cm 5 = 1) latency time for oscillation to stabilize (by program) ? operating at f(x in ) x c clock power down (cm 5 : 1 ? 0) internal clock f source switching x ? x c (cm 7 : 0 ? 1) clock x halt (x c in operation) (cm 6 = 1) internal clock halt (wit instruction) timer 4 (clock count) overflow internal clock operation start (wit instruction released) clock processing routine ? operating at f(x cin ) internal clock halt (wit instruction) interrupts from int 0 , int 1 , cntr 0 /cntr 1 , timer 1, timer 2, timer 3, timer 4, serial i/o, key on wake up internal clock operation start (wit instruction released) program start from interrupt vector clock x oscillation start (cm 6 = 0) latency time for oscillation to stabilize (by program) ? operating at f(x cin ) internal clock f source switching (x c ? x) (cm 7 : 1 ? 0) normal program ? operating at f(x in )
34 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer stp instruction preparation (pushing registers) timer 3, timer 4 interrupt disable x/16 or x c /16 selected for timer 3 count source; timer 3 overflow selected for timer 4 count source timer 3, timer 4 start counting values set to timer 3, timer 4 that do not cause timer 4 to overflow until stp instruction is executed interrupt for return from stp enabled timer 4 interrupt request bit cleared clock x and clock for clock function x c halt (stp instruction) ram backup status interrupts from int 0 , int 1 , cntr 0 /cntr 1 , timer 1, timer 2, serial i/o, key on wake up clock x and clock for clock function x c oscillation start timer 4 overflow (x/16 or x c /16 ? timer 3 ? timer 4) internal system clock start program start from interrupt vector normal program ram backup function ? ? ? ? ? ? ? ? y ? ? ? ? ? ? ? ? t ? ? ? ? ? ? ? y ? ? ? ? ? ? ? t return from ram backup function
35 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer power source analog power source reset input reset input clock input clock output reference voltage input select mode i/o port p0 data i/o d 0 Cd 7 i/o port p1 address input a 4 Ca 10 input port p2 address input a 0 Ca 3 input port p3 address input a 11 , a 12 select mode v pp input i/o port p4 address input a 13 , a 14 input port p5 v cc ,v ss av ss (note 1) reset x in x out v ref p0 0 C p0 7 p1 0 C p1 7 p2 0 C p2 7 (note 2) p3 0 C p3 3 p4 0 C p4 3 (note 3) p5 0 C p5 3 (note 4) single-chip /eprom single-chip /eprom single-chip eprom single-chip /eprom single-chip /eprom single-chip eprom single-chip eprom single-chip eprom single-chip eprom single-chip eprom single-chip eprom single-chip eprom input input input output input input i/o i/o i/o input input input input input i/o input input built-in prom type microcomputers pin description pin functions mode name input/ output apply voltage of 2.7 to 5.5 v to v cc and 0 v to v ss . ground level input pin for a-d converter. same voltage as v ss is applied. to enter the reset state, the reset input pin must be kept at a l for 2 m s or more (under normal v cc conditions). connect to v ss . these are i/o pins of internal clock generating circuit for main clock. to control generating frequency, an external ceramic or a quartz crystal oscillator is con- nected between the x in and x out pins. if an external clock is used, the clock source should be connected the x in pin and the x out pin should be left open. feedback resistor is connected between x in and x out . reference voltage input pin for the a-d converter. v ref works as ce input. port p0 is an 8-bit i/o port. the output structure is cmos output. when this port is selected for input, pull-up transistor can be connected in units of 1-bit and a key on wake up function is provided. port p0 works as an 8-bit data bus (d 0 to d 7 ). port p1 is an 8-bit i/o port. the output structure is cmos output. when this port is selected for input, pull-up transistor can be connected in units of 4-bit. p1 2 and p1 3 are in common with timer output pins t 0 , t 1 . p1 4 , p1 5 , p1 6 and p1 7 are in common with serial i/o pins rxd, txd, s clk , s rdy , respectively. p1 1 to p1 7 works as the 7-bit address input (a 4 to a 10 ). p1 0 must be opened. port p2 is an 8-bit input port. this port is in common with analog input pins in 0 to in 7. p2 0 to p2 3 works as the lower 4-bit address input (a 0 to a 3 ). p2 4 to p2 7 must be opened. port p3 is a 4-bit input port. p3 0 and p3 1 are in common with external interrupt in- put pins int 0 , int 1 and p3 2 , p3 3 are in common with timer input pins cntr 0 , cntr 1 . p3 0 , p3 1 works as the 2-bit address input (a 11 , a 12 ). p3 2 works as oe input. connect to p3 3 to v pp when programming or verifying. port p4 is a 4-bit i/o port. the output structure is cmos output. when this port is selected for input, pull-up transistor can be connected in units of 4-bit. p4 0 and p4 1 works as the higher 2-bit address input (a 13 , a 14 ). p4 2 and p4 3 must be opened. port p5 is a 4-bit input port and pull-up transistor can be connected in units of 4- bit. p5 0 , p5 1 are in common with input/output pins of clock for clock function x cin , x cout . when p5 0 , p5 1 are used as x cin , x cout , connect a ceramic or a quartz crystal oscillator between x cin and x cout . if an external clock input is used, con- nect the clock input to the x cin pin and open the x cout pin. feedback resistor is connected between x cin and x cout pins. open. notes 1 : av ss for m37478m4/m8/e8-xxxfp. 2 : only p2 0 Cp2 3 (in 0 Cin 3 ) 4-bit for the 7477 group. 3 : only p4 0 and p4 1 2-bit for the 7477group. 4 : this port is not included in the 7477 group.
36 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer table 2. pin function in eprom mode m37477e8, m37478e8 v cc p3 3 v ss ports p1 1 C p1 7 , p2 0 C p2 3 , p3 0 , p3 1 , p4 0 , p4 1 port p0 v ref p3 2 v cc v pp v ss address input data i/o ce oe m5l27c256k v cc v pp v ss a 0 C a 14 d 0 C d 7 ce oe fig. 30 pin connection in eprom mode a 10 a 9 a 8 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 v ss ce d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 a 14 a 13 v pp a 12 a 11 v cc oe v ss 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 28 29 30 31 32 m37478e8ss m37478e8-xxxsp p1 7 /s rdy p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 p2 0 /in 0 v ref x in x out v ss p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p3 0 /int 0 reset v cc 17 26 25 24 23 22 18 19 20 21 27 33 35 36 37 38 39 40 41 42 34 p5 3 p2 7 /in 7 p2 6 /in 6 p2 5 /in 5 p2 4 /in 4 p5 2 p5 1 /x cout p5 0 /x cin p4 3 p4 2 oscillation circuit : same functions as m5l27c256 eprom mode the m37477e8, m37478e8 feature an eprom mode in addition to its normal modes. when the reset signal level is low (l), the chip automatically enters the eprom mode. table 2 lists the cor- respondence between pins and figure 30 to 32 give the pin connection in the eprom mode. when in the eprom mode, ports p0, p1 1 to p1 7 , p2 0 to p2 3 , p3, p4 0 , p4 1 and v ref are used for the prom (equivalent to the m5l27c256). when in this mode, the built-in prom can be written to or read from using these pins in the same way as with the m5l27c256k. the oscillator should be connected to the x in and x out pins, or external clock should be connected to the x in pin.
37 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer fig. 31 pin connection in eprom mode fig. 32 pin connection in eprom mode a 10 a 9 a 8 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 v ss ce d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 a 14 a 13 v pp a 12 a 11 v cc oe v ss : same functions as m5l27c256 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 m37477e8-xxxsp/fp p1 7 /s rdy p1 6 /s clk p1 5 /t x d p1 4 /r x d p1 3 /t 1 p1 2 /t 0 p1 1 p1 0 p2 3 /in 3 p2 2 /in 2 p2 1 /in 1 p2 0 /in 0 v ref x in x out v ss p0 7 p0 6 p0 5 p0 4 p0 3 p0 2 p0 1 p0 0 p4 1 p4 0 p3 3 /cntr 1 p3 2 /cntr 0 p3 1 /int 1 p3 0 /int 0 reset v cc oscillation circuit p5 2 p0 7 /d 7 p0 6 /d 6 p0 5 /d 5 p0 4 /d 4 p0 3 /d 3 p0 2 /d 2 p0 1 /d 1 p0 0 /d 0 p4 3 p4 2 p4 1 /a 14 p4 0 /a 13 p3 3 /cntr 1 /v pp p3 2 /cntr 0 / oe p3 1 /int 1 /a 12 p5 3 p1 6 /s clk /a 9 p1 5 /t x d/a 8 p1 4 /r x d/a 7 p1 3 /t 1 /a 6 p1 2 /t 0 /a 5 p1 1 /a 4 p1 0 p2 7 /in 7 p2 6 /in 6 p2 5 /in 5 p2 4 /in 4 p2 3 /in 3 /a 3 p2 2 /in 2 /a 2 p2 1 /in 1 /a 1 p3 0 /int 0 /a 11 p2 0 /in 0 /a 0 v ref / ce v ss 17 28 27 26 25 24 23 22 21 20 19 18 56 45 46 47 48 49 50 51 52 53 54 55 44 43 42 29 30 31 32 33 34 35 36 37 38 39 40 41 1 2 3 16 15 14 13 12 11 10 9 8 7 6 5 4 p5 1 /x cout p5 0 /x cin v cc x in x out v ss av ss nc nc nc nc nc nc p1 7 / s rdy /a 10 reset nc nc nc nc nc nc m37478e8-xxxfp v cc v ss v ss a 8 a 9 a 10 v ss d 7 d 6 d 5 a 5 a 6 a 7 a 4 a 0 a 1 a 2 ce a 3 d 2 d 3 d 4 d 1 d 0 a 13 a 14 v pp a 12 a 11 oe oscillation circuit : same functions as m5l27c256
38 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer prom reading and writing reading to read the prom, set the ce and oe pins to l level. input the address of the data (a 0 to a 14 ) to be read and the data will be out- put to the i/o pins (d 0 to d 7) . the data i/o pins will be floating when either the ce or oe pin is in the h state. writing to write to the prom, set the oe pin to h level. the cpu will en- ter the program mode when v pp is applied to the v pp pin. the address to be written to is selected with pins a 0 to a 14 , and the data to be written is input to pins d 0 to d 7 . set the ce pin to l level to begin writing. note on writing when using a prom programmer, the address range should be between 4000 16 and 7fff 16 . when data is written between ad- dresses 0000 16 and 7fff 16 , fill addresses 0000 16 to 3fff 16 with ff 16 . erasing data can only erased on the m37478e8ss ceramic package, which includes a window. to erase data on this chip, use an ultra- violet light source with a 2537 angstrom wave length. the minimum radiation power necessary for erasing is 15w s/cm 2 . writing with prom programmer verify test with prom programmer function check in target device screening (caution) (leave at 150 c for 40 hours.) caution : since the screening temperature is higher than storage temperature, never expose to 150c exceeding 100 hours. read-out output disable programming programming verify program disable output floating input output floating v il v ih v ih v il v ih v cc v cc v pp v pp v pp v cc v cc v cc v cc v cc v il v il v il v ih v ih pin mode __ ce __ oe v pp v cc data i/o note : v il and v ih indicate an l and an h input voltage, respectively. table 3. i/o signal in each mode notes on handling (1) sunlight and fluorescent light contain wave lengths capable of erasing data. for ceramic package types, cover the transpar- ent window with a seal (provided) when this chip is in use. however, this seal must not contact the lead pins. (2) before erasing, the glass should be cleaned and stains such as finger prints should be removed thoroughly. if these stains are not removed, complete erasure of the data could be pre- vented. (3) since a high voltage (12.5v) is used to write data, care should be taken when turning on the prom programmers power. (4) for the programmable microcomputer (shipped in one time prom version), mitsubishi does not perform prom write test and screening in the assembly process and following pro- cesses. to improve reliability after write, performing write and test according to the flow below before use is recommended.
39 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer programming notes (1) the frequency ratio of the timer is 1/(n+1). (2) the contents of the interrupt request bits are not modified im- mediately after they have been written. after writing to an interrupt request register, execute at least one instruction be- fore executing a bbc or bbs instruction. (3) to calculate in decimal notation, set the decimal mode flag (d) to 1, then execute an adc or sbc instruction. only the adc and sbc instruction yield proper decimal results. after execut- ing an adc or sbc instruction, execute at least one instruction before executing a sec, clc, or cld instruction. (4) an nop instruction must be used after the execution of a plp instruction. (5) do not execute the stp instruction during a-d conversion. (6) in the 7477 group, set bit 0, bit 1, and bit 3 C bit 7 to 0 of the cpu mode register. (7) multiply/divide instructions the index x mode (t) and the decimal mode (d) flag do not affect the mul and div instruction. the execution of these instructions does not modify the con- tents of the processor status register. data required for mask ordering please send the following data for mask orders. (1) mask rom confirmation form (2) mark specification form (3) rom data ......................................................... eprom 3 sets
40 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer m37477m4/m8/e8-xxxsp/fp absolute maximum ratings power source voltage input voltage x in input voltage p0 0 C p0 7 , p1 0 C p1 7 , p2 0 C p2 3 , p3 0 C p3 3 , p4 0 , p4 1 , v ref , reset output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 , x out power dissipation operating temperature storage temperature v cc v i v i v o p d t opr t stg v v v v mw c c C0.3 to 7 C0.3 to v cc +0.3 C0.3 to v cc +0.3 C0.3 to v cc +0.3 1000 (note) C20 to 85 C40 to 150 unit symbol parameter ratings conditions t a = 25c all voltages are based on v ss . output transistors are cut off note : 500mw for m37477m4/m8/e8-xxxfp recommended operating conditions (v cc = 2.7 to 5.5 v, v ss = 0 v, t a = C20 to 85c unless otherwise noted) power source voltage power source voltage h input voltage p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 3 , reset, x in h input voltage p2 0 C p2 3 , p4 0 , p4 1 l input voltage p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 3 l input voltage p2 0 C p2 3 , p4 0 , p4 1 l input voltage reset l input voltage x in h sum output current p0 0 C p0 7 , p4 0 , p4 1 h sum output current p1 0 C p1 7 l sum output current p0 0 C p0 7 , p4 0 , p4 1 l sum output current p1 0 C p1 7 h peak output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 l peak output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 h average output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 (note 1) l average output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 (note1) 2.7 4.5 0.8 v cc 0.7 v cc 0 0 0 0 v v v v v v v v ma ma ma ma ma ma ma ma 4.5 5.5 v cc v cc 0.2 v cc 0.25 v cc 0.12 v cc 0.16 v cc C30 C30 60 60 C10 20 C5 10 1 2 250 500 1 2 2.2v cc C2 8 5 0 symbol parameter limits min. typ. max. unit f( cntr ) f(s clk ) f(x in ) f(x in ) = 4 mhz f(x in ) = 8 mhz f(x in ) = 4 mhz f(x in ) = 8 mhz f(x in ) = 4 mhz f(x in ) = 8 mhz v cc = 2.7 to 4.5 v v cc = 4.5 to 5.5 v mhz khz mhz mhz v cc v ss v ih v ih v il v il v il v il i oh(sum) i oh(sum) i ol(sum) i ol(sum) i oh(peak) i ol(peak) i oh(avg) i ol(avg) timer input frequency cntr 0 (p3 2 ), cntr 1 (p3 3 ) (note 2) use as clock synchronous serial i/o mode use as uart mode clock input oscillation frequency (note 2) serial i/o clock input frequency s clk (p1 6 ) (note 2) f(x in ) = 2.2v cc C 2.0 mhz f(x in ) = 8 mhz notes 1 : the average output current i oh (avg) and i ol (avg) are the average value during a 100ms. 2 : oscillation frequency is at 50% duty cycle.
41 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer hysteresis reset hysteresis p 16 /s clk h input current p0 0 -p0 7 , p1 0 -p1 7 p3 0 -p3 2 , p4 0 -p4 1 l input current p3 3 l input current p2 0 C p2 3 m37477m4/m8/e8-xxxsp/fp electrical characteristics (v cc = 2.7 to 5.5 v, v ss = 0 v, t a = C20 to 85c, unless otherwise noted) 2 1 C5 C3 C1.0 C0.35 C5 C3 C5 C3 C5 C3 5 3 5 3 5 3 5 3 14 7 3.6 15 8 4 4 2 1 1 10 0.5 0.3 0.5 0.3 0.5 0.3 C0.5 C0.18 7 3.5 1.8 7.5 4 2 2 1 0.5 0.1 1 3 2 C0.25 C0.08 2 v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v t a = 25c t a = 85c v v v v v m a ma m a m a m a m a m a m a m a max. limits symbol parameter min. typ. unit test conditions ma ma ma m a v v ram ram retention voltage stop all oscillation f(x in )=8mhz f(x in )=4mhz f(x in )=8mhz f(x in )=4mhz f(x in )=8mhz f(x in )=4mhz at normal mode, a-d conversion is not executed. at normal mode, a-d conversion is executed. at wait mode. at stop mode, f(x in )=0, v cc =5v i cc power source current v cc = 5 v, i oh = C5 ma v cc = 3 v, i oh = C1.5 ma v cc = 5 v, i ol = 10 ma v cc = 3 v, i ol = 3 ma v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v use as s clk input v i = 0 v, not use pull-up transistor v i = 0 v, use pull-up transistor v i = 0 v v i = 0 v, not use as analog input v i = 0 v (x in is at stop mode) v i = v cc , not use pull-up transistor v i = v cc v i = v cc , not use as analog input v i = v cc , (x in is at stop mode) v oh v ol v t+ C v tC v t+ Cv tC v t+ Cv tC i il i il i il i il i ih i ih i ih i ih h output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 l output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 , p4 1 hysteresis p0 0 C p0 7 , p3 0 C p3 3 h input current p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 2 , p4 0 , p4 1 h input current, p3 3 h input current p2 0 C p2 3 h input current reset x in , l input current reset, x in
42 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer m37477m4/m8/e8-xxxsp/fp a-d conversion characteristics (v cc = 2.7 to 5.5 v, v ss = 0 v, t a = C20 to 85c, unless otherwise noted) unit symbol parameter test conditions limits 8 3 25 12.5 v cc 10 v ref resolution absolute accuracy conversion time reference input voltage ladder resistance value analog input voltage v cc = 2.7 to 5.5 v, f(x in ) = 4 mhz v cc = 4.5 to 5.5 v, f(x in ) = 8 mhz 5 max. typ. min. t conv v ref r ladder v ia bits lsb m s v k w v 0.5 v cc 2 0
43 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer m37478m4/m8/e8-xxxsp/fp, m37478e8ss absolute maximum ratings power source voltage input voltage x in input voltage p0 0 C p0 7 , p1 0 C p1 7 , p2 0 C p2 7 , _____ p3 0 C p3 3 , p4 0 C p4 3 , p5 0 C p5 3 , v ref , reset output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 , x out power dissipation operating temperature storage temperature v cc v i v i v o p d t opr t stg v v v v mw c c C0.3 to 7 C0.3 to v cc +0.3 C0.3 to v cc +0.3 C0.3 to v cc +0.3 1000 (note) C20 to 85 C40 to 150 unit symbol parameter ratings conditions t a = 25c note : 500mw for m37478m4/m8/e8-xxxfp all voltages are based on v ss . output transistors are cut off 4.5 5.5 v cc v cc 0.2 v cc 0.25 v cc 0.12 v cc 0.16 v cc C 30 C 30 60 60 C 10 20 C 5 10 1 2 250 500 1 2 2.2v cc C2 8 50 f( cntr ) f(s clk ) f(x in ) f(x cin ) recommended operating conditions (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, t a = C20 to 85c unless otherwise noted) 2.7 4.5 0.8 v cc 0.7 v cc 0 0 0 0 v v v v v v v v v ma ma ma ma ma ma ma ma 5 0 0 32 symbol parameter limits min. typ. max. unit f(x in ) = 4 mhz f(x in ) = 8 mhz f(x in ) = 4 mhz f(x in ) = 8 mhz f(x in ) = 4 mhz f(x in ) = 8 mhz v cc = 2.7 to 4.5 v v cc = 4.5 to 5.5 v mhz khz mhz mhz khz v cc v ss av ss v ih v ih v il v il v il v il i oh(sum) i oh(sum) i ol(sum) i ol(sum) i oh(peak) i ol(peak) i oh(avg) i ol(avg) timer input frequency cntr 0 (p3 2 ), cntr 1 (p3 3 ) (note 3) use as clock synchronous serial i/o mode use as uart mode main clock input oscillation frequency (note 3) serial i/o clock input frequency s clk (p1 6 ) (note 2) f(x in ) = 2.2v cc C 2.0 mhz f(x in ) = 8 mhz sub-clock input oscillation frequency for clock function (note 3,4) notes 1 : it is except to use p5 0 as x cin . 2 : the average output current i oh (avg) and i ol (avg) are the average value during a 100ms. 3 : oscillation frequency is at 50% duty cycle. 4 : when used in the low-speed mode, the clock oscillation frequency for clock function should be f(x cin ) < f(x in ) / 3. power source voltage power source voltage analog power source voltage h input voltage p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 3 , reset, x in h input voltage p2 0 C p2 7 , p4 0 C p4 3 , p5 0 C p5 3 (note 1) l input voltage p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 3 l input voltage p2 0 C p2 7 , p4 0 C p4 3 , p5 0 Cp5 3 (note 1) l input voltage reset l input voltage x in h sum output current p0 0 C p0 7 , p4 0 C p4 3 h sum output current p1 0 C p1 7 l sum output current p0 0 C p0 7 , p4 0 C p4 3 l sum output current p1 0 C p1 7 h peak output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 l peak output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 h average output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 (note 2) l average output current p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 (note 2)
44 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer f(x in )=8mhz f(x in )=4mhz f(x in )=8mhz f(x in )=4mhz f(x in )=8mhz f(x in )=4mhz m37478m4/m8/e8-xxxsp/fp, m37478e8ss electrical characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, t a = C20 to 85c, unless otherwise noted) 2 1 C5 C3 C1.0 C0.35 C5 C3 C5 C3 C5 C3 5 3 5 3 5 3 5 3 14 7 3.6 15 8 4 80 40 4 2 1 12 8 1 10 0.5 0.3 0.5 0.3 0.5 0.3 C0.5 C0.18 7 3.5 1.8 7.5 4 2 30 15 2 1 0.5 3 2 0.1 1 v cc = 5 v, i oh = C5 ma v cc = 3 v, i oh = C1.5 ma v cc = 5 v, i ol = 10 ma v cc = 3 v, i ol = 3 ma v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v used as s clk input v i = 0 v, not use pull-up transistor v i = 0 v, use pull-up transistor v i = 0 v v i = 0 v, not use as analog input v i = 0 v (x in is at stop mode) v i = v cc , not use pull-up transistor v i = v cc v i = v cc , not use as analog input v i = v cc , (x in is at stop mode) max. limits symbol parameter min. typ. unit test conditions at normal mode, a-d conversion is not executed. 3 2 C0.25 C0.08 2 v v v v v m a ma m a m a m a m a m a m a m a v oh v ol v t+ C v tC v t+ Cv tC v t+ Cv tC i il i il i il i il i ih i ih i ih i ih v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v v cc = 5 v v cc = 3 v t a = 25c t a = 85c stop all oscillation v ram ram retention voltage at stop mode, f(x in )=0, f(x cin )=0, v cc =5v at wait mode. at normal mode, a-d conversion is executed. i cc power source current at wait mode, t a =25c, f(x in )=0, f(x cin )=32khz, low- power mode at low-speed mode, t a =25c, f(x in )=0, f(x cin )=32khz, low-power mode, a-d conversion is not executed. h output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 l output voltage p0 0 C p0 7 , p1 0 C p1 7 , p4 0 C p4 3 hysteresis p0 0 C p0 7 , p3 0 C p3 3 hysteresis reset hysteresis p1 6 /s clk l input current p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 2 , p4 0 C p4 3 , p5 0 C p5 3 l input current p3 3 l input current p2 0 C p2 7 l input current reset, x in h input current p0 0 C p0 7 , p1 0 C p1 7 , p3 0 C p3 2 , p4 0 C p4 3 , p5 0 C p5 3 h input current p3 3 h input current p2 0 C p2 7 h input current reset, x in ma ma m a ma m a m a v
45 mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer unit symbol parameter test conditions limits 8 3 25 12.5 v cc 10 v ref resolution absolute accuracy conversion time reference input voltage ladder resistance value analog input voltage v cc = 2.7 to 5.5 v, f(x in ) = 4 mhz v cc = 4.5 to 5.5 v, f(x in ) = 8 mhz 5 max. typ. min. t conv v ref r ladder v ia bits lsb m s v k w v m37478m4/m8/e8-xxxsp/fp, m37478e8ss a-d converter characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, t a = C20 to 85c, unless otherwise noted) 0.5 v cc 2 0
? 1997 mitsubishi electric corp. new publication, effective dec. 1997. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap. mitsubishi microcomputers 7477/7478 group single-chip 8-bit cmos microcomputer
rev. rev. no. date 1.0 first edition 971226 revision description list 7477/7478 group data sheet (1/1) revision description


▲Up To Search▲   

 
Price & Availability of M37478M4-458FP

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