HMCS402 HITACHI

Document overview

  • Manufacturer or author: Provided By www.digicamel.com(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 117

Technical content

Features

+ 2048-word x 10-bit ROM (HMCS402) Neme___Name_ Model Name_Package_ 4096-word x 10-bit ROM (HMCS404) Hucs402 HMCS402C — HD614023S_DP-64S_ 8192-word x 10-bit ROM (HMCS408) HO614023F _FP.64 + 160-digit x 4-bit RAM (HMCS402) HMCS402CL_ — HD614026S__——DP-64S__ 256-digit x 4-bit RAM (HMCS404) HD614026F __-FP-64 512-digit x 4-bit RAM (HMCS408) HMCS402AC -HD614029S__DP-64S + 58 1/0 pins, including 26 high-voltage I/O pins HD614029F FP-64 (Vec-40 V max.) HMCS404 HMCS404C—-HD614043S__OP-64S * Two timer/counters ; ‘HD614043F —s=FP-64 — Bit free-running timer HMCS404CL HOB14046S __OP64S_ —8-bit auto-reload timer/event counter peg ea + Clock-synchronous 8-bit serial interface —__H0614046F_FP-64_ + Five interrupt sources HMCS404AC — HD6140498_DP-645_ — Two by external sources _ - ___HO614049F_FP-64_ —Two by timer/counters HMCS40B HMCS408C = HD614081S_DP-64S_ —One by serial interface HO614081F —_FP-64 * Subroutine stack up to 16 levels, including inter- _ HD614081H__FP-64A Tupts HMCS408CL HD614086S DP-64S + Low-power dissipation modes HO614086F —_—FP-64 — Standby mode ‘HD614086H _FP-64A, — Stop mode HMCS408AC HD614089S __DP-64S + On-chip oscillator = ‘HDG14089F__—FP-64 —Crystal or ceramic oscillator (an external D614089H FP-64A clock also possible) ——. + — Resistor (HMCS402C/HMCS404C) + C-type: 5-V operation version CLétype: 3-V operation version AC-type: high-speed operation version mm 4456204 0047020 2T0 ml 89 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series

7 Pin Arrangement

Ducho 1 Dio £Sd8SdSaabasS Dale BEI De DODO OOOOnonnn Die eh De PRISSISERHTAS DwCls 61( Dy ro, (1 ° * si [ Jo, Dis Cs 60[-) Dg ‘ 1s RO Lis 59] Ds R02 C2 s0[_] D2 Ro, C17 ssf] Ds Ros [_|s a9[ Jy Ro, Es 575) Ds Rio Lj4 48[_] Do Ro; Cle s6[] De Rt; Cs «7 ]6No Rip C10 35[7) Dy Ri,[ 6 46{_] OSC, Ri 54[7] Do R13 L]7 as[_] OSC, Rip C12 53-1 GND R2o [_|e as("] TEST ree £5 eee R2; Clo as{_] RESET Re iis or Test R2z [_]10 FP-64 42{_] R95 R2,E]16 OP-64S «9 RESET Ras [1 41] R9e R23C]17 D0C-64S «| R95 RAo [_j12 4o[} RQ; RAg L118 47[) Oe RAW/Veigp L_] 19 30[_] RQp RAV Vdsp C19 467) RS, R8q L_]14 38 |] R83 FR3p }z0 45[ RO a3; Cis 37] R8p roi An “Bee R3,/INTp (_|16 96[_] RB;

4 ANTo

ROQ/INTy E20 2) RB, rein ES ° u = ae So fe 41/5) Ro ABC} af] Ave FS; Chas #5 R75 [ER SRRERRR RRR TS ° RS, C26 fF R7z Reet =Rn UU REGSIE RRBOELE rele cBre eeeed $Heo2eE R62 (130 35) R4/SO c R63 31 as R4,/SI Veo (ise 337) R4g/SCK f@eccdéddéacasacs anoonnannnnAnnnnnn nog {PS FESESESSRSTTSS | Rio Liz “BD, Ri 3 “OD, Rip G4 4s GND Ris is «45 osc, Ge «35 ose, eels eb test R2, 8 41[2 RESET Rs Ce FP-64A 4077) RQ: Ri Cj 10 30[7 Rp RA\\Ngiep C11 38[] Ry Fp C12 375) R&S AS, E13 385) R83 ROe/NTs CI 14 35 Rant G's “Bs, R5p C16 3D oC. segsananesaaaaa | COOUUOOU Uo = = noeecee ahead eg seEcE | tt Top view ME 4496204 0047021 137 90 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Pin Functions GND, Vcc» Vaisp (Power): These are the power Rp to R03, Rig to R15, R2y to R23, R3p to R33, supply pins for the MCU. Connect GND to ground Ry to R43, RSq to R53, R6y to R63, R79 to R73, (0 V) and apply the Voc power supply voltage to By to R83, R9p to R93, RAg, RA; (R Ports): RO the Voc pin. The Vgisp pin (multiplexed with RA;) to R9 are 4-bit I/O ports. RA is a 2-bit port. RO, R6, is a power supply for high-voltage 1/O pins with a__R7, and R8 are output ports, R9 and RA are input maximum voltage of 40 V (Vcc - 40 V). For — ports, and RI to RS are I/O ports. RO, Rl, R2, and details, see the Input/Output section. RA are high-voltage ports, and R3 to R9 are standard ports, Each pin has a mask option which TEST (Test): TEST is for test purposes only. selects its citcuit type. The pins R3>, R33, R4y, Connect it to Voc. R4), and R4, are multiplexed with INTo, INT), SCK, SI, and SO, respectively. For details, see the RESET (Reset): RESET resets the MCU. For — tnpuyOutput section. details, see the Reset section. . INT , INT, (Interrupts): INTo and INT, are OSC, OSC; (Oscillator Connections): OSC and external interrupts for the MCU. INT, can be used OSC) are input pins for the internal oscillator cir- as an external event input pin for timer B. INTo and cuit. They can be connected to a crystal, ceramic, INT, are multiplexed with R3, and R33, respec- or external oscillator circuits. For details, see the tively, For details, see Intertupt section, Internal Oscillator Circuit section. oo, SCK, SI, SO (Serial Interface): The transmit Dp to Djs (D Port): The D port is an input/output clock 1/0 pin (SCK), serial data input pin (SI), and port addressed by its bits. These 16 pins are all serial data output pin (SO) are used for serial inpuV/output pins. Do to D3 are standard, and Dg t© interface. SCK, SI, and SO are multiplexed with ‘Djs are high-voltage pins. The circuit type for each R4o, R4;, and R49, respectively. For details, see the pin can be selected using a mask option. For Serial Interface section. details, see the Input/Output section. @@ 4456204 OO470ee 073 91 Hitachi Neen cceneeennee

= HMCS402 Series/HMCS404 Series/HMCS408 Series HMCS402 Series/HMCS404 SeriesHMCS@8 Seres Block Diagram Be S2ds9 1 838935 +22 3353s8 ° Sr Pe. Sgeges « - Let | x RXR XS toy | g28228 i 1 2822s | Broto | ESEeE | Ds | | ott : GND —~ : De Veco ——~, Hi ‘ loc. ~ -= . Bt H osc; e 28 [<_-——; : Di a : 1 AEF | R3yiNT; 3 B88 | 7 = Fits | 3 2! i 1] G49 Ir, Se Ra, | 8 gg FerUaE cf Res! g| EEE % ina! te | <f515 5 hy PINT RaySO og 885 i ROOINT Ray/S! Bag = s | Ra/SCK R4y/SCK x KN R4y/SI ‘at RéasO — = Ray deb 1 = dg d@e@ died GHEE Pee? eee u | mm 4496204 0047023 TOT ml ae Hitachi

The MCU includes the following ROM size shown routines. figure 1. CL/AC); $0000 to $0FFF (HMCS404C/CL/AC, locations can be used for program code.

8191 S1FFF sf SSS*«S'SOOF

Special Function Registers Area ($004 to $00B): ing stack in which one level requires 4 digits. and read/write, as shown in figure 2. These stack, is available as a data area.

48 Data $030 5 $005

128 Data $080 7 $007

224 Data {$0E0 9 {$009

358 S30 Not used

Note: * Two registers are mapped on the same address. Figure 2. RAM Memory Map

HMCS402 Series/HMCS404 Series/HMCS408 Series Bits Bit2 Bit 1 Bito

0 IMO | IFO RSP | IE $000

(IM of INT) (IF of INTo) (Reset SP bit) _ | (Interrupt enable flag)

1 IMTA IFTA | M1 _ Fy $001

(IM of timer A) (IF oftimer A) | (IMof INT;) (IF of INT;) MTB IFTB

2 Not used Not used (IM of timer 8) (IF of timer By | $002

3 Not used (IMotserial) | (IF ofserialy | $003

IF: Interrupt request flag IM: Interrupt mask IE: Interrupt enable flag SP: Stack pointer Note: Each bit ofthe interrupt control bits area is set by the SEM/SEMD instruction, reset by the REM/REMD instruction, and tested by the TM/TMD instruction. Itis not affected by other instructions. Furthermore, the interrupt request flag is not affected by the SEM/SEMD instruction. ‘The value ofthe status flag becomes invalid when unusable bits are tested and the RSP bit is tested by the TM or TMD instruction Figure 3 Configuration of Interrupt Control Bits Area Memory registers Stack area 32[MR(0) $020 960[Level 16]$3c0 33 $021 34[ MR (2) | $022 35[ MR (3) [$023 Level 13 36[ MR (4) |$024 37[ MR (5) | $025 38[ MR (6) |$026 39] MR (7) |$027 Bits Bit2—-Bit1 _—_—Bito 40] MA (8) |$028 a ee 41 [MR (9) |soz9 1020] ST | PCy PCy PC, | sarc 42[ MR (10) |$024 ro mm | Be 43[ MR (11) [$028 1021} PCio PCy PCs PC; | $3FD 45[ MR (19) |s020 ‘02 We Pos | PCs _| sare 46{ MR (14) |1$02E = as! lS a7{MR(15) |$00F 1023 sarr_—*1028) - PCa PC, PC; PCy | S3FF P13 to PCy: Program counter ST: Status flag CA: Carry fiag Notes: 1. Since HMCS402C/CLIAC have 2-k ROM, PC;;, PC; and PC;3 are not used, 2. Since HMCS404C/CLIAC have 4-k ROM, PC12 and PC19 are not used. 3. Since HMCS408C/CLAC have 8-k ROM, PC,9 is not used, Figure 4 Configuration of Memory Registers, Stack Area, and Stack Position M@ 4496204 004702b 719 a 95 Hitachi ee

reac _—a—— en ] HMCS402 Series/HMCS404 Series/HMCS408 Series Functional Description Registers and Flags operation. It is also affected by the SEC, REC, ROTL, and ROTR instructions. ‘The MCU has nine registers and two flags for the CPU operations (figure 5). During an interrupt, the carry is pushed onto the stack. It is restored by the RTNI instruction, but not Accumulator (A), B Register (B): The 4-bit by the RTN instruction. accumulator and B register hold the results of the arithmetic logic unit (ALU), and transfer data Status Flag (ST): The status flag (ST) holds the to/from memory, I/O, and other registers. ALU overflow, non-zero, and the results of a bit - test instruction for the arithmetic or compare W Register (W), X Register (X), Y Register (Y): instruction. It is a branch condition of the BR, The W register is a 2-bit write-only register, and BRL, CAL, or CALL instruction, The value of the the X and Y registers are 4-bit registers used for status flag remains unchanged until the next arith- indirect addressing of RAM. The Y register is also metic, compare, or bit test instruction is executed. used for D-port addressing. The status flag becomes a 1 after the BR, BRL, . . CAL, or CALL instruction is either executed or SPX Register (SPX), SPY Register (SPY): The skipped. During an interrupt, the status flag is 4-bit registers SPX and sPY are used to assist the pushed onto the stack and restored back from the X and Y registers, respectively. stack by the RTNI instruction, but not by the RTN Carry Flag (CA): The carry flag (CA) stores the “™SUCHO™ overflow from the ALU generated by an arithmetic a 3 ) 3 9 W register X register 3 ° 3 0 3 ° Cany fag Status flag 413 o 9 5 o PLT [a] se _| staan Figure 5 Registers and Flags mm 4496204 0047027 b55 96 Hitachi a

se ———— HMCS402 Series/HMCS404 Series/HMCS408 Series Program Coumter(PC): The pogamcounerisa tnerps~=SOtsté“‘é~é™*~*~*~*éwMGAO Program Counter (PC): The program counter is a Interrupts 14-bit binary counter which controls the sequence in which the instructions stored in ROM are — Five interrupt sources are available on the MCU: executed, external requests (INTo, INT|), timer/counters (timers A and B), and the serial interface. For each Stack Pointer (SP): The stack pointer (SP) is used source, an interrupt request flag (IF), interrupt to point to the address of the next stacking area (up mask (IM), and interrupt vector addresses are to 16 levels). Provided to control and maintain the interrupt Tequest. The interrupt enable flag (IE) is also used The stack pointer is initialized to RAM address to control interrupt operations, $3FF. It is decremented by 4 when data is pushed onto the stack, and incremented by 4 when data is Interrupt Control Bits and Interrupt Processing: Testored from it. The stack can only be used up to. The interrupt control bits are mapped on $000 16 levels deep because the upper 4 bits of the stack through $003 of the RAM space. They are accessi- pointer are fixed at 1111. ble by RAM bit manipulation instructions. The . . . interrupt request flag (IF) cannot be set by The stack pointer is initialized to $3FF either by software. The interrupt enable flag (IE) and IF are MCU reset or by the RSP bit reset from the cleared to 0, and the interrupt mask (IM) is set to 1 REM/REMD instruction. by MCU reset, Figure 6 is a block diagram of the interrupt control circuit. Table 3 shows the interrupt priority and vector addresses, and table 4 shows the interrupt conditions corresponding to each interrupt source. eS Table 3 Vector Addresses and Interrupt Priority Reset/interrupt Priority Vector Addresses ——— ton meresses RESET = $0000 INT) 1 $0002 INT, 2 $0004 Timer A 3 $0006 ad Timer B 4 $0008 OOS Serial 5 $000C Sco, Table 4 Interrupt Conditions interrupt Source = SS TO Interrupt Control Bit INT) INT, Timer A Timer B Serial IE 1 1 1 1 1 a IFO - IMO 1 0 ) 0 0 a 1F1 - IMT * 1 0 ) 0 a a IFT: IMTA * * 1 0 0 ao IFTB - IMTB bd bd - 1 0 IFS - IMS * * * * 1 Se a Note: * Don't care @™ 4496204 0047028 59] ml 97 Hitachi

—. SSS HMCS402 Series/HMCS404 Series/HMCS408 Series eee ees trstucten 1 2 3 4 5 6 ‘execution Stacking; (on the vector address Instruction execution at of the interrupt routine Figure7 Interrupt Processing Sequence Me 4496204 0047030 147 99 Hitachi Cenc nnn nnn nene

= HMCS402 Series/HMCS404 Series/HMCS408 Series = ~ Yes aa, Yes ‘Stack — (PC) Stack «- (CA) Stack < (ST) No Timer B i No {serial interrupt) Figure 8 Interrupt Processing Flowchart M@™ 4496204 0047031 086 400 Hitachi

-ss HMCS402 Series/HMCS404 Series/HMCS408 Series nterrupt Enable Fig (E: $000, Bt 0: The aptmask (MI) tas w be ew tat de empe Interrupt Enable Flag (IE: $000, Bit 0): The Tupt mask (IM1) has to be set so that the interrupt interrupt enable flag enables/disables interrupt request by INT, will not be accepted. (Refer to Tequests as shown in table 5. It is reset by an inter- table 7.) Tupt and set by the RTNI instruction. External Interrupt Request Flags (IF0: $000, Bit External Interrupts (INT, INT): The external 2; IF1: $001, Bit 0): The external interrupt request interrupt request inputs (INTy, INT;) can be flags (IFO, IF1) are set at the falling edge of the selected by the port mode register (PMR: $004). INTo and INT; inputs, respectively. Setting bit 3 and bit 2 of PMR causes the R3,/INT, and R32/INTg pins to be used as INT, and INT, External Interrupt Masks (IMO: $000, Bit 3; respectively. IMI: $001, Bit 1): The external interrupt masks mask the external interrupt requests. The external interrupt request flags (IFO, IF1) are set at the falling edge of INTo and INT; inputs, | Port Mode Register (PMR: $004): The port mode (Refer to table 6.) register is a 4-bit write-only register which controls the R32/INTo, R3y/INT}, R4,/SI, and R4,/SO pins ‘The INT, input can be used as a clock signal input _as shown in table 8. The Pport mode register will be to timer B, in which timer B counts up at each __ initialized to $0 by MCU reset. These pins are falling edge of the INT, input. When using INT; as __ therefore initially used as ports. the timer B external event input, the external inter- eee eee Table 5 Interrupt Enable Flag Table 8 Port Mode Register IE Interrupt Enabled/Disabled PMR3 R3,/INT, Pin ON Pi

0 Disabled 0 Used as A33 port input/output pin

1 Enabled 1 Used as INT; input pin

.) sd as INT) input pin Table 6 External Interrupt Request Flags PMR2 R3Q/NTo Pin 2 on IFO, IF 1 Interrupt Requests 0 ____Used as R32 port inputoutput pin —_——— Used as INTs input pin

0 No ee

tee oy R4,/SI Pin Sn

0 Used as R4; port input/output

Table7 External Interrupt Masks Be ER A Por impuvouiput pin 1 Used as S! input pin IMO, IM1 Interrupt Requests - — ~ — — —— ee ote oO Enabled PMRO R4,/SO Pin a nated

1 Disabled (masked) te) Used as R42 port input/output pin

1 Used as SO output pin

M@@ 4496204 0047032 Tle a 101 Hitachi rr

—_— | HMCS402 Series/HMCS404 Series/HMCS408 Series Serial Interface The serial interface is used to transmit/receive 8-bit the prescaler divide ratio, and the transmit clock data serially. This consists of the serial data source as shown in table 9. register, the serial mode register, the octal counter, . . and the multiplexer as illustrated in figure 9. Pin The write signal to the serial mode register controls R4g/SCK and the transmit clock signal are con- the operating state of the serial interface. trolled by the serial mode register. The contents of . . . the serial data register can be written into or read The write signal to the serial mode register stops out by software. The data in the serial data register the serial data register and octal counter from can be shifted synchronously with the transmit PPlying the transmit clock, and it also resets the clock signal. octal counter to $0 simultaneously. Therefore, when the serial interface is in the transfer state, the The STS instruction is used to initiate serial inter- _ WTite signal causes the serial mode register to cease face operations and to reset the octal counter to $0. the data transfer and to set the serial interrupt ‘The counter starts to count at the falling edge of the request flag. transmit clock signal (SCK) and increments by one . | . at the rising edge of SCK. When the octal counter The contents of the serial mode register will be is reset to $0 after eight transmit clock signals, or Hanged on the second instruction cycle after writ- when a transmitfreceive operation is discontinued ing into the serial mode register. Therefore, it will by resetting the octal counter, the serial interrupt be necessary to execute the STS instruction after request flag will be set. the data in the serial mode register has been changed completely. The serial mode register will Serial Mode Register (SMR: $005): The 4-bit be reset to $0 by MCU reset. write-only serial mode register controls R4g/SCK, System| ; OC (bits) |SROF pbionh ol Prascaler (11 bits) Oot ot es es ae a Interrupt «| request flag al8isis of serial ou} eo] 8] 5] & interface Paes Ws ed |! | sck SR (8 bits) Serial data register SMR (4 bits) PMA (4 bits) | a [Serial mode register} Port mode register [intemal bus line ($2) |] Internal bus line (S2)|__| mee |_| R4,/SI | R4/SO port port port Gx Os Ore Figure 9 Serial Interface Block Diagram mm 4456204 0047033 959 102 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Ieee er tes Serial Data Register (SDR: $006, SRU: $007): the SI pin to the serial data register, to MSB first, ‘The 8-bit read/write serial data register consists of synchronously with the rising edge of the transmit a low-order digit (SRL: $006) and a high-order clock. Figure 10 shows the I/O timing chart for the digit (SRU: $007), transmit clock signal and the data, The data in the serial data register will be output The read/write operations of the serial data register from the SO pin, from LSB to MSB, synchronously —_ should be performed after the completion of data ) with the falling edge of the transmit clock signal. _transmit/receive. Otherwise the data may not be At the same time, external data will be input from guaranteed. SS Table 9 Serial Mode Register ‘SMR3 Ray/SCK

0 Used as R4p port input/output pin

1 Used as SCK input/output pin

2 Orr emeemee

SMR2_ SMR1_ SMRO_—-R4g/SCK Port — Clock Source _—Divide Ratio _Divide Ratio = Oyo “Clock Source __Divide Ratio Divide Ratio O o 0 SCK output Prescaler + 2048 + 4096 Erosion 2048408 tC} t) 1 SCK output Prescaler +512 +1024 0 1 ) SCK output Prescaler +128 +256 0 1 1 SCK output Prescaler +32 +64 er scion 1 0 0 SCK output Prescaler +8 +16 i Se scolor 1 tC) 1 SCK output Prescaler 72 +4 1 1 0 SCK output System clock — +1 1 1 1 ‘SCK input External clock - - fT EEO Transmit clock 1 2 543 4 5 6 7 38 arial o a ° AWA A AA A AA Serial input data latch timing Figure 10 Serial Interface 1/O Timing 34 895 @ 4496204 00470 108 Hitachi Ne

HMCS402 Series/HMCS404 Series/HMCS408 Series | Serial Interrupt Request Flag (IFS: $003, Bit 0): In this state the falling edge of the first transmit The serial interrupt request flag will be set when _clock causes the serial interface to shift to transfer the octal counter counts eight transmit clock state, initializing the octal counter to count up and signals, or when data transfer is discontinued by the serial data register to shift simultaneously. As resetting the octal counter. Refer to table 10. an exception, if the clock continuous output mode is selected, the serial interface stays in transmit Serial Interrupt Mask (IMS: $003, Bit 1): The clock wait state while the transmit clock outputs serial interrupt mask masks the interrupt request. —_ continuously. Refer to table 11. The octal counter becomes 000 again after 8 trans- Selection and Change of the Operation Mode: mit clocks or by the execution of the STS instruc- Table 12 shows the serial interface operation tion, so that the serial interface returns to transmit modes which are determined by a combination of clock wait state, and the serial interrupt request flag the value in the port mode register and that in the _js set simultaneously. serial mode register. Initialize the serial interface by the write signal to the serial mode register, when When the internal transmit clock is selected, the the operation mode is changed. transmit clock output is triggered by the execution of the STS instruction, and stops after 8 clocks. Operating State of Serial Interface: The serial interface has three operating states: the STS Example of Transmit Clock Error Detection: waiting state, transmit clock wait state, and transfer The serial interface functions abnormally when the state, as shown in figure 11. transmit clock is disturbed by external noise. In this case, transmit clock error can be detected by the The STS waiting state is the initialization state of procedure shown in figure 12. the serial interface internal state. The serial inter- face enters this state in one of two ways: either by —_If more than 8 transmit clocks are applied in the changing the operation mode through a data change _ transmit clock wait state, the state of the serial in the port mode register, or by writing data into the __ interface shifts in the following sequence: transfer serial mode register. In this state, the serial inter- state, transmit clock wait state, and transfer state. face does not operate even if the transmit clock is The serial interrupt flag should be reset before applied. If the STS instruction is executed, the seri- _ entering into the STS state by writing data to SMR. al interface shifts to transmit clock wait state. This procedure causes the serial interface request flag to be set again. Table 10 Serial Interrupt Request Flag Table 12. Serial Interface Operation Mode IFS Interrupt Request Serial Interface 0. No... SMR3 PMR1 PMR2 Operating Mode 7. Ye ©. 1 0 0 Clock continuous output | Table 11 Serial Interrupt Mask 10 _}_Transmit mode 1 1 t) Receive mode IMS Interrupt Request 1 1 1 Transmit/receive mode C) Enabled

1 Disabled (masked)

wm 4496204 0047035 72) Mm

104 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series STS waiting state ( Octal counter = ee) transmit clock disable * Change PMR’ ‘ Write to Change PMR SMR Write to SMR STs (FS <1) instruction Transmit clock ———srrr Transmit clock wait state Transfer state {octal counter = 000) 8 transmit clocks, (octal counter # 000) STS instruction (IFS — 1) Note: * Change PMR means the change of operation mode as shown below. Clock + Transmit mode continuous + Receive mode output mode + Transmit/receive mode Figure 11 Serial Interface Mode Transition Transmit/receive (FS 1) Interrupt disable Yes Transmit clock error processing No Table 12 Transmit Clock Error Detection MB 4496204 0047036 LLB mm 105 Hitachi a

Prescaler: The input to the prescaler is a system signal input. clock signal as soon as RESET input goes to logic _timer mode register A (TMA: $008).

  1. The prescaler keeps counting up except at MCU . . .

$00 by MCU reset, it counts up at every clock input occurring.

3 Interrupt

Figure 13. Timer/Counter Block Diagram

HMCS402 Series/HMCS404 Series/HMCS408 Series Tine B isin asordng oh da writen second weucioncyee ater note epiaers ll ‘Timer B is initialized according to the data written _second instruction cycle after timer mode register B into timer load register B by software. Timer B is written to. The initialization of timer B by counts up at every clock input signal. When the writing data into timer load register B should be next clock signal is applied to timer B after it is set__ performed after the contents of TMB are changed. to $FF, it will generate an overflow output. In this The configuration and function of timer mode case, if the auto-reload function is selected, timer B___ register B is shown in figure 14. is initialized according to the value of timer load register B. If itis not selected, timer B goes to $00. Timer B (TCBL: $00A, TCBU: $00B, TLRL: ‘The timer B interrupt request flag (IFTB: $002, bit $00A, TLRU: $00B): Timer B consists of an 8-bit 0) will be set as this overflow is output. write-only timer load register, and an 8-bit read- only timer counter. Each of them has a low-order Timer Mode Register A (TMA: $008): Timer digit (TCBL: $00A, TLRL: $00A) and a high-order mode register A is a 3-bit write-only register. The digit (TCBU: $00B, TLRU: $00B). (Refer to TMA controls the prescaler divide ratio of the figure 2.) timer A clock input as shown in table 13. Timer counter B can be initialized by writing data Timer mode register A is initialized to $0 by MCU _into timer load register B. In this case, write the reset. low-order digit first, and then the high-order digit. . The timer counter is initialized when the high-order Timer Mode Register B (TMB: $009): Timer digit is written. The timer load register is initialized mode register B (TMB) is a 4-bit write-only — ¢9 $00 by MCU reset. register which selects the auto-reload function, the prescaler divide ratio, and the source of the clock The counter value of timer B can be obtained by input signal, as shown in table 14. Timer mode reading timer counter B. In this case, read the high- register B is initialized to $0 by MCU reset. order digit first, and then the low-order digit. The count value of the low-order digit is latched at the The operation mode of timer B changes at the timer when the high-order digit is read. SSSSSSSSSSSSSSSSsSSSSSSSSSSSSsSsSSSSSSSSSS Table 13 Timer Mode Register A Table 14 Timer Mode Register B TMA2 TMA1 TMAO Prescaler Divide Ratio TMB3 Auto-Reload Function ——— —rvr—OON A o“Relond Function 0 0 0 + 2048 o No _ 0 0 1 +1024 1 Yes Qt os Prescaler Divide Ratio, ° 1 1 +128 TMB2 TMB1 TMBO Clock Input Source 1 0 0 +32 0 0 0 +2048 1 0 1 +8 oo 1 +512 1 1 0 +4 t) 1 0 +128 1 1 1 +2 t) 1 1 +32 1 0 0 +8 1 0 1 +4 1 1 0 +2 1 1 1 INT, (external event input) 430 = Me 4456204 0047038 407 Hitachi Ne

HMCS402 Series/HMCS404 Series/HMCS408 Series PMR: $004 SMR: $005 t transmit clock selection R40/SCK pin mode selection — R42/SO pin mode selection R4,/SI pin mode selection TMA: $008 TMB: $009 Pq —— —_ t___timer B input clock selection ~ Auto-reload function selection Timer A input clock selection Figure 14 Mode Register Configuration and Function M™ 4496204 0047039 377 Mf

108 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series rn ceoF—rr—r—err Ce eeeevwes Timer A Interrupt Request Flag (IFTA: $001, Timer B Interrupt Request Flag (IFTB: $002, Bit 2): The timer A interrupt request flag is set by _ Bit 0): The timer B interrupt request flag is set by the overflow output of timer A (table 15), the overflow output of timer B (table 17). Timer A Interrupt Mask (IFTA: $001, Bit 3): Timer B Interrupt Mask (IMTB: $002, Bit 1): ‘The timer A interrupt mask prevents an interrupt The timer B interrupt mask prevents an interrupt request from being generated by the timer A inter- request from being generated by the timer B inter- rupt request flag (table 16), rupt request flag (table 18). eee Table 15 Timer A Interrupt Request Flag Table 17. Timer B Interrupt Request Flag | IFTA Interrupt Request IFTB Interrupt Request

0 No _ 0 No_ a

1 Yes 1 Yes

Table 16 Timer A Interrupt Mask Table 18 Timer B Interrupt Mask IMTA Interrupt Request IMTB Interrupt Request

0 Enabled 0 Enabled

1 Disabled (masked) 1 Disabled (masked)

MB 4456204 0047040 095 100 Hitach! I

HMCS402 Series/HMCS404 Series/HMCS408 Series

7 Input/Output

‘The MCU has 58 I/O pins, 32 standard and 26 high _—_R Ports: The eleven R ports in the HMCS408 are voltage. One of three circuit types can be selected composed of 20 I/O pins, 16 output-only pins, and by mask option for each standard pin: CMOS, with 6 input-only pins. Data is input through the LAR pull-up MOS, and without pull-up MOS (NMOS __ and LBR instructions and output through the LRA open drain); and one of two circuit types can be and LRB instructions. The MCU will not be selected for each high-voltage pin: with pull-down —_ affected by writing into the input-only and/or non- MOS and without pull-down MOS (PMOS open existing ports, While invalid data will be read by drain). Since the pull-down MOS is connected to _ reading from the output-only and/or non-existing the internal Vgisp line, the RAy/Vgisp Pin must be ports. selected as Vgigp via the mask option when at least one high-voltage pin is selected as with pull-down The R3z, R33, R4p, R4y, and R4> pins are multi- MOS. See table 19 for I/O pin circuit types. plexed with the INTo, INT, SCK, SI, and SO pins, Tespectively. See table 19 as for the classification When every input/output pin is used as an input of standard pins, high-voltage pins, and selectable pin, the mask option and output data must be circuit types of these I/O pins. selected in the manner specified in table 20. Unused I/O Pins: If any unused I/O pins are left Output Circuit Operation of With Pull-Up MOS _ floating, the LSI may malfunction due to noise. Standard Pins: In the standard pin option with —_The I/O pins should be fixed as follows to prevent pull-up MOS, the circuit shown in figure 15 is used _ malfunction. to shorten the rise time of output. High-voltage pins: Select as without pull-down When the MCU executes an output instruction, it | MOS (PMOS open drain) via the mask option and generates a write pulse to the R port addressed by connect to Voc on the printed circuit board. this instruction. This pulse will switch the PMOS (B) on and shorten the rise time. The write pulse Standard pins: Select as without pull-up MOS keeps PMOS in the on state for one-eighth of the © (NMOS open drain) via the mask option and instruction cycle time. While the write pulse is 0,a connect to GND on the printed circuit board. Wan a. level is maintained by the pull-up 24 SCK and R4y/SO should be used as Rdg and R4, by the serial mode register and port mode ‘When the HLT signal becomes 0 in the stop mode, _Tegister, respectively. MOS (A), (B), and (C) turn off. Reset D Port: The D Portis an I/O port which has 16 dis- a . crete W/O pins, each of which can be addressed Bringing the RESET pin high resets the MCU. At independently. It can be setfreset through the Power-on or when cancelling the stop mode, the SED/RED and SEDD/REDD instructions, and can eset must satisfy tac for the oscillator to stabilize. be tested through the TD and TDD instructions. In all other cases, at least two instruction cycles are See table 19 as for the classification of standard Tequired for the MCU to be reset. pin, high-voltage pin, and the I/O pin circuit types. ratje 21 shows the components initializes by MCU reset, and the status of each. mm 4496204 0047041 TeS me

110 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Tube) VOPmCnuh tyes ~ = Table 19 1/0 Pin Circuit Types Standard Pins eee ‘Without Pull-Up MOS. With Pull-Up MOS (NMOS Open Drain) (A) (B) CMOS (C) Pins ror. SSP ir) = Do to Dg, common ALT {nput HOT oa! HUT tea R3p to R3,, pins \\Vee[ Vee Wve Voc Rp to R43, pulse _ ee pa” Rp to R5g HOC { Ouput Output 2 2 oe Output : Ry to FG, pins Vee] Vee Write Vee 7p to R73, aT poe FIT —FA@) to RB, Output data Qutput Input - - Rp to R9g pins Vee oD et = polar oy. Int SSS mm 4496204 0047042 9b] a 111 tech cen nnnneeenee

HMCS402 Series/HMCS404 Series/HMCS408 Series | Table 19 1/O Pin Circuit Types (cont) High Voltage Pins Without Pull-Down MOS (PMOS Open Drain) (D) With Pull-Down MOS (E) Pins vO Voc Veo Fy to Pe Is common a aT }9 to R13, it HiT pins t= Botput to put Rap to R23, data data Vcd Vis Rp to Ri Outer Vee 0p to R03 Voc OY g To stput et ot data data Vee Veiap Input _ RAg pins RCT. Input ALT Input data o—— 1 data Voc Veiep mot RA pins FIT. Input o—-l» data aTs mM 4496204 0047043 +12 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Table 19 I/O Pin Circuit Types (cont) ‘Standard Pins ee Without Pull-Up MOS (NMOS. Open Drain) or CMOS (A or C) With Pull-Up MOS (B) Pins TT ee eee vo sck scx SCK* common HLT (output pins HLT — mode) Voge FLT + mode salect Voe | Nec ode slack Intrnal SCK Internal SCK a pins Veo _ Vee | Veo eel . “ so so eee Input INTo, pins Veo INT;, Si, HLT aaa put (input HUT a mode) FONE ORES reer een Note: In the stop mode, HLT is 0, HLT is 1, and the /O pins are in high impedance. * Ifthe MCU is interrupted by the serial interface in the external clock input mode, the SCK terminal becomes input only. Table 20 Data Input from Common Input/Output Pins VO Pin Circuit Type Input Possible Input Pin State ———— si nput Pin Stato Standard pins CMOS No = Without pull-up MOS Yes 1 (NMOS open drain) __ __ With pull-up MOS Yes 1 rrp OS High voltage pins Without pull-down MOS Yes 0 (PMOS open drain) ee With pull-down MOS. Yes 0 Tea 34 | Me 4456204 OO47044 7 113 Hitachi | a

HMCS402 Series/HMCS404 Series/HMCS408 Series Voc v7 Write pulse Pull-up MOS (C) FH PMOS (8) J (output. instruction) ALT NMOS (A) Data On-Resistance Value HMCS402C, HMCS402AC MOS Butter __ HMCS404C, HMCS404AC_HMCS402CL,HMCS404CL_ A Approx. 25000 Apo TK B Approx. 1 kQ. Approx. 5 kQ. c ‘Approx. 40 kQ to 160 kQ ‘Approx. 75 kO. to 1 MQ (Voc = 3 V) eo) AO 40 KA t0 160 KS (Woo = SV) —__OmResistance Value MOSButter___ HMCS408C, HMCS40GAC_HMCS408CL A Approx 2500 AO TK Bo Appr Ar NT c Approx. 30 k@ to 160 kQ. Approx. 60 kK to 1 MQ (Veg = 3 V), Mec) aprox. 30 KE to 160 KO (Voo = SV) 1 instruction cycle Write pulse ee Figure 15 Output Circuit Operation of With Pull-Up MOS Standard Pins £70 M@™ 4496204 0047045 114 Hitachi tn

HMCS402 Series/HMCS404 Series/HMCS408 Series EE Berrie HII CS04 Series/HMCS408 Series Table 21 Initial Values After MCU Reset tem Initial Value Contents Program counter (PC) $0000 Execute the program from the top of ROM address Status flag (ST) 1 Enable to branch with conditional branch instructions Stack pointer (SP) $3FF Stack level is 0 | VO pins, Standard (A) Without pull-up ~ Enable to input i | output register pins MOS: (8) With pultup 4 "Enable to input MOS High voltage (0) Without pul- 0 | ~—-‘Enablotoimput. =~=S*~S pins down MOS (E) With pult- 0 Enable to input down MOS Interrupt flags/ Interrupt enable flag (IE) 0 Inhibit all interrupts mask Interrupt request flag (IF) 0 No interrupt request Interrupt mask (IM) 1 Mask interrupt request Mode registers Port mode register (PMR) 0000 See Port Mode Register section _ ‘Serial mode register (SMR) 0000 See Serial Mode Register section Timer mode register A(TMA) 000 See Timer Mode Register A section Timer mode register B (TMB) 0000 See Timer Mode Register B section Timer/countersPrescaler $000 = Timer counter A (TCA) _ $00 _ Timer counter B (TCB) so 000 _ Timer load register (TLR) $00 = Octal counter 000 = Note: MCU reset affects the other registers as shown on the next page. Me 4496204 004704 SO? 44 Hitachi re

HMCS402 Series/HMCS404 Series/HMCS408 Series __| Table 21 Initial Values After MCU Reset After MCU Reset to Recover After MCU Reset to Recover ttem from Stop Mode from Other Modes Carry flag (CA) The contents of the items before — The contents of the items before ‘Accumulator A) MCU reset are not retained. MCU reset are not retained. ———__—_———— _ltis necessary to initialize them It is necessary to initialize them B register (B) by software. by software, W register (Ww) X/SPX registers. (X/SPX) YISPY registers (V/SPY) Serial data register (SR) RAM The contents of RAM before Same as above for RAM. MCU reset (just before STOP instruction) are retained. ME 4496204 0047047 443 Me 116 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series | Table 23. Examples of Oscillator Circuits HMCS402C HMCS402CL HMCS402AC ___Ciroult Configuration _HMCSA04C_HMICS404CL_CHMCSAOAAC External Oscitator clock jose, operation Oren osc, Resistor Ry=20k222% 9 — _ oscillator 7 jose. Ceramic oy Ceramic oscillator Ceramic oscillator Ceramic oscillator oscillator qd jose, CSA 4.00MG CSA 2.000MK CSA 6.00MG Cora ly £ (Murata) (Murata) (Murata) Re 1MQ42% Ry: 1 MQ42% Re 1 MQ 42% is JOSCe Cy: 30 pF +20% Cy: 30 pF 420% Cy: 30 pF 20% & Co: 30 pF 420% Cy: 30pF+20% Ca: 30 pF 420% ee Crystal on Re 1MQ 42% - Re 1MQ42% oscillator 7 Cy: 10 pF to 22 pF Cy: 10 pF to 22 pF eyssith 4 420% 420% Co: 10 pF to 22 pF Cp: 10 pF to 22 pF {fr 420% 420% & Crystal: Equivalent Crystal: Equivalent ‘AT-cut paralol to bottom circuit to bottom circuit ‘eeonance yet Co: 7 pF max. Co: 7 pF max. 086, & osc, Rg! 60 2 max. Rg: 100 2 max ALTER ft: 2.0 MHz to f: 2.0 MHz to 4.5 MHz 6.2 MHz - Ry 2MQ42% - “ osc, C,: 10 pF to 22 pF 420% jorves Vi Co: 10 pF to 22 pF josce 420% Re Crystal: Equivalent ON eeu pura to bottom circuit revonance crystal Cy: 7 pF max. Rg: 100 2 max. raf bs 5 ose {TER pom f) 20MHzto

2.25 MHz

Notes: 1. The circuit parameters written above are recommended by the crystal or ceramic oscillator manufacture. The circuit parameters are affected by the crystal, ceramic resonator, and the floating capacitance when designing the board. When using the resonator, consult with the crystal or ceramic oscillator manufacture to determine the circuit parameters. 2. Wiring among OSC,, OSC2, and other elements should be as short as possible, and avoid crossing other wires. Refer to the recommended layout of the crystal and ceramic oscillator (figure 17). wm 4yu5b204 0047049 2bb a 148 Hitachi Oe .... ee

HMCS402 Series/HMCS404 Series/HMCS408 Series : : = Table 23 Examples of Oscillator Circuits (cont) Circuit Constants Circuit Configuration HMCS408C. HMCS408CL HMCS408AC SSO mn esc CHMCS408AC External Osaitar clock lose, operation Open —t osc, ee Ceramic ¢, Ceramic oscillator Ceramic oscillator Ceramic oscillator oscillator i lose, CSA 4.00MG CSA 2.000MK CSA 8.00MT Ceramic yy CSA 2.000MK (Murata) CSA 4.00MG ator (Murata) Re 1MQ.+20% (Murata) th loses Re 1MQ420% — Cy: 30 pF 420% = Re 1 MOQ-+20% oo Cy: 30 pF +20% Cy 30 pF 420% Cy: 30 pF 420% Co: 30 pF +20% C2: 30 pF +20% $$ OR BO PF #20% Crystal 6 Re 1MQ420% = — Ry 1MQ 420% oscillator i . C,: 10 pF to 22 pF Cy: 10 pF to 22 pF 420% £20% [orsane Fe Co! 10 pF to 22 pF Cp: 10 pF to 22 pF it 420% 420% oo ° Crystal: Equivalent Crystal: Equivalent ‘T-cut parallel to bottom circuit to bottom circuit resonance crystal Co: 7 pF max. Co: 7 pF max. Rs: 100 2 max. Rg: 100 2 max. Osc,, L Cg Rs OSC, 's’ 's: Baxi f 1.0 MHz to f 1.0 MHz to 4.5 MHz _9.0 MHz = Rye 1MQ420% = — $i . Cy: 10 pF to 22 pF 420% [Crt & Co: 10 pF to 22 pF 120% cia am Crystal: Equivalent Tut paratol to bottom circuit resonance crystal Cy: 7 pF max. Rg: 100 2 max. oseinf TEA Jose, {1.0 MHz to °° 2.25 MHz a Notes: 1. The circuit parameters above are recommended by the crystal or ceramic oscillator manufacture. The circuit parameters are affected by the crystal, ceramic resonator, and the floating capaci- tance when designing the board. When using the resonator, consult with the crystal or ceramic oscillator manufacture to determine the circuit parameters. 2. Wiring among OSC,, OSC», and other elements should be as short as possible, and avoid crossing other wires. Refer to the recommended layout of the crystal and ceramic oscillator (figure 17). Me 4456204 0047050 T38 119 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series | Operating Modes The MCU has two low-power dissipation modes, __ the oscillator circuit is active, and interrupts and the standby mode and stop mode (table 24). Figure 18 timer/counters remain working. On the other hand, is a mode transition diagram for these modes. the CPU stops since the clock related to the instruc- tion execution stops. Registers, RAM, and 1/O pins Standby Mode: Executing the SBY instruction retain the states they were in just before the MCU puts the MCU into standby mode. In standby mode, went into standby mode. Table 24 Low-Power Dissipation Modes Function Condition Timer! Low-Power Input/ Counters, Dissipation Oscillator instruction Registers, Interrupts Output Serial Cancellation Mode Instruction Circuit Execution Flags Function RAM Pins Interface Method Standby SBY ‘Active Stop Retained Active ‘Retained Retained’? Active RESET mode instruction input, interrupt request Stopmode STOP Stop Stop Reset"! Stop Retained High Stop RESET instruction impedance*2 ‘input Notes: 1. The MCU cancels the stop mode by RESET input. Refer to table 21 for the contents of the flags and registers. 2. A high-voltage pin with pull-down MOS is tied to the Vgie, Power Supply through the pull-down MOS. As the pull-down MOS stays on, a pull-down current flows when a difference between the pin voltage and the Visp voltage exists. This is the additional current to the current dissipation in the stop mode (IsroP): 3. When an VO circuit is active, an VO current may flow, depending on the state of the /O pin in standby mode. This is the ‘additional current for current dissipation in standby mode. Active mode SBY STOP instruction instruction Interrupt request Standby Stop mode RESET =1 mode RESET =1 RESET =1 Figure 18 MCU Operation Mode Transition mm yyab204 oo4705) F4 120 Hitachi i444.

SSSSSSSSSSSSSSSSSSSSsSSsSSSSSS HMCS402 Series/HMCS404 Series/HMCS408 Series The standby mode may be cancelled by inputting case, the MCU becomes active and executes the RESET or by asserting an interrupt request. In the next instruction following the SBY instruction. former case the MCU is reset. If the interrupt . enable flag is 1 at this time, the interrupt is execut- Figure 19 shows the flowchart of the standby ed; if it is 0, the interrupt request is put on hold and mode. normal instruction execution continues. In the latter SSS Oscillator: Active Peripheral clocks: Active All other clocks: Stop SS ~ | Yes o> No | Yes > No <to-3> Yes Kay No Yes <-> Yes | No No } Yes | No Sa Yes | No Yes <e-D Yes Restart Restart next instruction Yes Execute Figure 19 MCU Operating Flowchart in Standby Mode ME 4496204 0047052 800 a 121 Hitachi rr

HMCS402 Series/HMCS404 Series/HMCS408 Series | Stop Mode: Executing the STOP instruction brings _the oscillation to stabilize. (Refer to the AC the MCU into the stop mode, in which the oscilla- Characteristics table.) After stop mode is cancelled, tor circuit and every function of the MCU stop. RAM retains the state it was in just before the MCU went into the stop mode, but the accumula- The stop mode may be cancelled by resetting the tor, B register, W register, Y/SPY registers, and MCU. At this time, as shown in figure 20, the carry flag will not retain their contents. RESET input must be applied for at least tac for Stop mode ovate TM __, Bec AAA Internal clock RESET STOP instruction tres 2 tac (stabilization time) execution Figure 20 Timing of Stop Mode Cancellation ME 449,204 0047053 747 422 Hitachi ee

$$ SSSSSSSSSSSSSSSSSsSSSSSSSS HMCS402 Series/HMCS404 Series/HMCS408 Series Addressing Modes RAM Addressing Modes When the BR instruction is on a page boundary . (256n + 255) (figure 23), executing it transfers the As shown in Figure 21, the MCU has three RAM PC contents to the next page according to the hard- addressing modes: register indirect addressing, ware architecture. Consequently, the program direct addressing, and memory register addressing. branches to the next page when the BR instruction . , . is used on a page boundary. The HMCS400 series Register Indirect Addressing Mode: The W cross macroassembler has an automatic paging register, X register, and Y register contents (10 bits facility for ROM pages. total) are used as the RAM address. . . . . Zero-Page Addressing Mode: By executing the Direct Addressing Mode: A direct addressing CAL instruction, the program can branch to the instruction consists of two words, with the word zero-page subroutine area, which is located at (10 bits) following the opcode used as the RAM $0909 t SO03E. When the CAL instruction is address. executed, 6 bits of immediate data are placed in the ‘ low-order six bits of the program counter (PC; to Memory Register Addressing Mode: The ° sh, Pebcd memory registers (16 digits from $020 to $02R) are ney andes ” Placed in the high-order eight bits accessed by executing the LAMR and XMRA 13 dl instructions, Table Data Addressing Mode: By executing the . 5 TBL instruction, the program can branch to an ROM Addressing Modes and the P Instruction i. determined by the contents of the 4-bit The MCU has four ROM addressing modes as immediate data, accumulator, and B register. shown in figure 22, P Instruction: ROM data addressed by table data Direct Addressing Mode: The ram cal addressing can be referred to by the P instruction branch to any addiess in ROM memory space by (Figure 24). When bit 8 in the referenced ROM data executing the JMPL, BRL, or CALL instruction, #8 1, 8 bits of ROM data are written into the These instructions replace the 14 program counter accumulator and B register. ‘When bit 9 is 1, 8 bits bits (PC,3 to PCo) with 14-bit immediate data, of ROM data are written into the RI and R2 port output registers. When both bits 8 and 9 are 1, Current Page Addressing Mode: The MCU has ROM data are written into the accumulator and B eight pages of ROM with 256 words per page. By _Tegister, and also to the R1 and R2 port output executing the BR instruction, the program can — Tegisters at the same time. branch to an address on the current page. This . instruction replaces the low-order eight bits of the The P instruction has no effect on the program Program counter (PC; to PCy) with 8-bit immediate Counter. data. M™@ 4496204 0047054 ba3 123 Hitachi Nance nneneeeeee ee

"| HMCS402 Series/HMCS404 Series/HMCS408 Series Wregister _X register Y register Thitttttt na asi fran ease poorer Register Indirect Addressing Instruction 1st word Instruction 2nd word (Se ee ee eet nua [are ososjodaeJprspesbe] Direct Addressing Instruction L_ creed | ma] me | [mo] 0 0 0 0 1 0 ag Raw across [ar|are|APs|aPe[arslaralarolars[ar ars Memory Register Addressing Figure 21 RAM Addressing Modes M@™ 4496204 Go47OSS Sit a 4124 Hitachi i

HMCS402 Series/HMCS404 Series/HMCS408 Series [UMPL] {BRL (CALL) Instruction 1st word Instruction 2nd word _ A, Opcode Ps Pz Py Po] do dg d, dg dy dy dg dy d, dy Program counter |PC,3 PC,2 PC;;PC;9PCg PCg PC, PCs PCs PC, PC PC PC, PCy Direct Addressing Instruction a [BR] |Opcode |b; be bs by bs by by bo Program counter |PC,4 PC, PC,;PCyq PCy PCy PC, PC, PCs PC, PC, PC» PC, PCy Current Page Addressing Instruction Program counter |PC,. PC, PC, ,PCjoPCy PC, PC, PC, PCs PC, PCy PCy PC, PCy Zero Page Addressing Instruction (TBR) Opcode {Ps P2 Pi Po B register Accumulator if pit dT Program counter |PC,4PC,2PC,;PC; PCg PCg PC; PC, PC; PC, PC3 PC, PC, PCo| Table Data Addressing Figure 22 ROM Addressing Modes Me 4456204 0047056 4Sb me 125 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series so ii Absolute Maximum Ratings tem Symbol Value Unit Notes OE Notes Supply voltage Veco 0.3 to +7.0 Vv re Pin voltage Vy 0.3 to Veg + 0.3 Vv 1 Voc — 45 to Voc + 0.3 v 2 ee Mec 03 VO Total permissible input current Lip 50 mA 3 — oer MA Total permissible output current Llp 150 mA 4 —eeo tm’ Al SOA Maximum input current In 15 _ mA 5,6 Maximum output current ly 4 mA 6,7 6 mA 7,8 30 mA 7,9 MA Operating temperature T, 20 to +75 °C EE Storage temperature Tog 55 to +125 °C Notes: Permanent damage may occur if these absolute maximum ratings are exceeded. Normal operation should be under the conditions of the electrical characteristics tables. If these conditions are exceeded, the LSI may malfunction or its reliability may be affected. All voltages are with respect to GND. 1. Applied to standard pins. 2. Applied to high voltage pins. 3. Total permissible input current is the total sum of input currents which flow in from all VO pins to GND simuttaneously. 4. Total permissible output current is the total sum of the output currents which flow out from Voc to all /O pins simultaneously. 5. Maximum input current is the maximum amount of input current from each /O pin to GND. 6. Applied to Dg to Dg and R3 to RB. 7. Maximum output current is the maximum amount of output current from Voc to each /O pin, 8. Applied to RO to R2. 9. Applied to D, to Dys. MH 4496204 0047058 229 ml 127 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series = HMCS402C Electrical Characteristics DC Characteristics (Vcc = 4 V to 6 V, GND = 0 V, Vgisp = Voc ~ 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) tem ‘Symbol Pin Min Typ Max Unit Test Condition Notes Input high Vig RESET, SCK 0.7Vcc — Voc+03 V voltage INTo, INT; si O7Vcc — Voc+03 V osc, Vec-05 — Voc +03 V Input low Vit RESET, SCK, -0.3 — 0.22Veg V voltage INT, INT; si ~03 = 022Ve¢_ osc, ~03 — 05 Vv Output high Voy, SCK, SO Veo-1.0 — — Vv lon = 1.0 mA voltage Veo-03 — — Vo toy = 0.01 mA Output low Vo. SCK, SO = — 04 v lo, = 1.6mA voltage Inputoutput {lit RESET, SCK, — - 1 HA Vin = 0 Vt0 Voc, 1 feakage INTs, INT, current SI, SO, OSC, Current lee Voc = — 20 mA Voc =5V Crystal or 2.6 dissipation ceramic in active oscillator mode fosc = 4 MHz = = 24 mA Resistor 2.6 oscillator fosc = 4 MHz Current lsavi Veo _ — 12 mA Maximum Crystal or 3,6 dissipation logic ceramic in standby operation oscillator mode Vec=5V foe = 4 MHz = = 16 mA Resistor 3,6 oscillator fosc = 4 MHz lseve Veo = — 09 mA Minimum Crystal or 4,6 logic ceramic operation oscillator Vec=5V — fogc = 4 MHz - - 13 mA Resistor 4,6 oscillator fosc = 4 MHz Current Istop Voc = — 10 WA Vin(TEST) = Voc ~ 0.3 V to Voc, 5 issipation in ViResen = 0 Vto0.3V ‘stop mode Stopmode Vstop Voc 2 - = Vv retaining voltage Refer to notes on the following page.

128 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. Pull up MOS current and output buffer current are excluded. 2. The MCU is in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Voc + Do to Dg, R3 to RY: Vog + Dgto Djs, RO to R2, RA, RA;: Veisp 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state * Standby mode + Inpuvoutput: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc * Do to Dg, R3 to R9: Veg * Dg to Dys, RO to R2, RAg, RA}: Vaisp 4. The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Inputoutput: Reset state + Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio * Serial interface: Stop Pin state + RESET: GND + TEST: Voo * Do to Ds, 3 to RO: Veg + Dg to Djs, RO to R2, RAg, RA}: Vaisp 5. Pull-down MOS current is excluded. 6. When foge = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: Maximum vaiue (fogc = x MHz) = 4 x max. value (fogc = 4 MHz) MB 4456204 OO470b0 987 129 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series SSS | Input/Output Characteristics for Standard Pins (Vcc = 4 V to 6 V, GND = 0 V, Vaisp = Voc - 40 V to Voc: T, = -20°C to +75°C, unless otherwise specified) ttem Symbol Pin Min Typ Max Unit TestCondition Note —oO~aa—y> ST) Ost boncltion _ Note Input high Vy DptoDs, O7Vog — Voc+03 V voltage R3 to RS, Ro Input low Viv DotoDs, -0.3 — 0.22, Vv voltage R3 to R5, Ro Output high Voy DotoD3, Veg-10 — — Vio l= .0mA st voltage R3 to R8& DotoD3, Voo-03 — — Vi Al = 0.01mA 1 R3 to RB Output low = Voy DotoD3, — - 04 Vv lou = 1.6 mA voltage R3 to RB Inpuoutput — | ly | DytoDs, — -_ 1 HA Vinge OVtOVog 2 leakage R3 to RO current Pullup MOS = ~ipy DotoDs, 30 60 120 vA Veg = 5 V, 3 current R3 to R9 Vin = OV in EN Notes: 1. Applied to I/O pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to /O pins selected as with pull-up MOS by mask option. M@™@ 44596204 0047061 613 130 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Input/Output Characteristics for High Voltage Pins (Vcc = 4 V to 6 V, GND = 0 V, Vaigp = Voc—

40 V to Vcc, T, = -20°C to +75°C, unless otherwise specified)

tem Symbol Pin Min Typ Max Unit Test Condition Note ————— ews ex Unit Test Condition Note. Input high Vy DgtoDys, O07Ve¢¢ — Voc+03 V voltage Rt, R2, Input low Vy. DgtoDys, Vog-40 — 0.22Vgg V voltage R1, R2, Output high Voy DytoDys Voo-30 — — Vo Alo = 15 mA, voltage ee - Voc = 5 V 410% Voo-20 — = Vo =lon = 9mA EE ton MA ROtOR2 Vog-30 — — Vo =loy = 3mA, Voc = 5 V 410% Voo-20 — — Vo -loy = 1.8 mA HEM Output low Voy DgtoDys, — — Voc-37 Vi Vgisp=Voo-40V 1 voltage RO to R2 wee DytoDys, — — Voece-37 VV 150kQ at 2 RO to R2 Voc - 40 V ON {nputoutput —|Iy,| DytoDis, — — 2 pA Vin= Veg -40V 3 leakage RO to R2, to Veg current RAo, RA; pk al Pulldown —Ipp DytoDys, 125 250. © 500 HA Vgsp=Voo-35V, 1 MOS current RO to R2, Vin = Voc Ag, RA, ec Notes: 1. Applied to /O pins selected as with pull-down MOS by mask option. 2. Applied to VO pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pull-down MOS current and output buffer current are excluded. M™ 4496204 00470b2 7ST Ml 131 Hitachi Cenc c ncn nnccnccccc

HMCS402 Series/HMCS404 Series/HMCS408 Series _| AC Characteristics (Vcc = 4 V to 6 V, GND = 0 V, Vaisp = Vcc - 40 V to Vcc, Ty = -20°C to +75°C, unless otherwise specified) tem Symbol Pin Min Typ Max Unit ‘Test Condition Note Crystal or Oscillation fog OSC, 04 4 45 MHz ceramic frequency OSC2 oscillator Instruction tye 178 2 20. us cycle time Oscillator tag osc, — _ 20 ms 1 stabilization Osc, time Resistor Oscillation fog. OSC, 18 30 42 MHz Ry=20k242% oscillator frequency OSC, Instruction — teye 19 266 4.44 ps Ry = 20K 42% cycle time Oscillator tac osc;,, — - 0.5 ms Ry=20kQ42% 1 stabilization osc, time External External {op osc, 04 — 4.5 MHz 2 clock clock frequency External top, osc; 100 — — ons 2 clock high width External top osc, 100 — — ons 2 clock low width External topr osc; — - 20 ns 2 clock rise time External torr osc; — - 20 ns 2 clock fall time Instruction — tee 1780 — 20° ps 2 cycle time INT high width ti INTo 862 - - tye 3 INTy low width te INTg 2 - — tye 3 INT, high width tia INT; 2 - =- tye 3 INT, low width the INT; 2 - - toe 4 RESET high width tastH RESET 2 - = tye 4 Input capacitance Cin Allpins — - 15 pF f=1 MHz, Vin = OV RESET fall time tastt _ = 20 ms 4 Refer to notes on the following page. M™ 4456204 0047063 696 132 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. The oscillator stabilization time is the period from when Vcc reaches 4.0 V at power-on until = when the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary time for oscillator stabilization. When using a crystal or ceramic oscillator, consult with the crystal and caramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator Resistor oscillator Cy cy ose. osc osc. tha : ct , : sr, Ceramic SER, Ry z KH OSC, bh -L OSC OSC2 Ce Ce GND GND Crystal: 4.194306MHz NC-18C Ceramic: CSA4.00MG Rr: 20MQ22% (Nihon Denpa Kogyo) (Murata) Re 1 MQ $2% Re 1MQ22% Cy: 22 pF 220% Cy: 30 pF #20% Ca: 22 pF 220% Cz: 30 pF #20% Atop ser osv tf + = torr tert OTM INT, INT, fo Oa a te 0.22Vec o7Vec RESET 9 ove -f| \\ tas M™ 4456204 0047064 See 133 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series rm | Serial Interface Timing Characteristics (Vcc = 4 V to 6 V, GND = 0 V, Vaisp = Vcc - 40 V to Voc, T, = -20°C to +75°C, unless otherwise specified) During Transmit Clock Output item Symbol Pin Min Typ Max Unit TestCondition Notes. Transmit clock cycle time tscye SCK 1 - = tye _ See note 2 1,2 Transmit clock high width tscxu —— SCK_— 0.5 — — —_—tacye See not? 1,2 Transmit clock low width ts. SCK_ 05 — — — _—tegye Seo note 2 1,2 Transmit clock rise time tscKr SCK — — 100 ns Seenote2 1,2 Transmit clock fall time tsox SCK — — 100 ns Seencte2 1,2 Serial output data delay time tpgo SO — — 300 ns Seenote2 1,2 Serial input data setup time _ ts) sl 500 — — ns 1 Serial input data hold time ts) sl 150 — — ns 1 Refer to notes on the following page. During Transmit Clock Input ttem Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tscye SCK 1 - = tye 1 Transmit clock high width tscky_ = « SCK 05 tscye 1 Transmit clock low width tscxe SK 05 — — tecye 1 Transmit clock rise time tsoxr SCK — — 100 ns 1 Transmit clock fall time tscxt SOK — — 100 nos 1 Serial output data delay time tpso so - = 300 ons See note 2 1,2 Serial input data setup time ts) S!_~=S«i00 Ss SiC Ss — 1 Serial input data hold time tus) SI 10 —- — nm 1 Refer to notes on the following page.

4496204 CO470bS 469 Me 134 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. Timing of serial intertace = SSeye {scx sore Voc - 2.0 V(0.7Vec)* SscK., SCK Ssckt 08V(022Vcq)" toso Voo-20V * Co XI) tssi | tsi 07Vec ° (>t) Note: * Voc ~ 2.0 V and 0.8 V are the threshold voltages for transmit clock output. 0.7Vce and 0.22Vc¢ are the threshold voltages for transmit clock input. 2. Timing load circuit Voc RL=2.6kQ Test point c R 182074) or equivalent 12kQ 30 pF M™ 4496204 00470bb 3TS 135 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Characteristics Curves (Reference Data) a a LITT tT ti Ta =-20°C to +75°C Ta= 20°C to +75°C Veo =5V fosc = 4MHz Li TT z; i wl | | TT | = 2 Ey Z| ay | ert tA TT Ee Let Ty LETT TT ° + 2 8 4 5 o 1 2 89 4 5 6 fosc (MHz) Veco (V) ioc VS. fose characteristics cc v8. Voc characteristics {crystal and ceramic oscillator option) {crystal and ceramic oscillator option) oT TT To Lt 1] Tt tt) glVoo=S¥ Max! 3 lose = 4 MHz 7, [| ii 1) Ty £2 ee <t = 2 | 4 ce Le TTT Pr 0 1 2 3 4 «68 o 1 2 3 4 5 6 fose (MHz) Veo (V) oc v8. fosc characteristics loc V8. Voc characteristics (resistor oscillator option) (resistor oscillator option) 20FF = BOC to 175°C 20 P= 20°C to +75°C ‘ey Veo = 5V fosc = 4 MHz mx. wt : z 71/7 | YI Ey. rt E12 DZ 4, ft | |e me j, Lert oa TT ‘CATT “Cero 0 1 2 3 4 #«S o 4 2 8 4 5 6 fosc (MHz) Vee (V) ‘spy v8. fosc characteristics Igay vs. Voc characteristics (crystal and ceramic oscillator option) {crystal and ceramic oscillator option) MB 4496204 CON7Ob? 23) a 196 Hitachi

a HMCS402 Series/HMCS404 Series/HMCS408 Series Characteristics Curves (Reference Data) (cont) = Veo = 5 V max. foso = 4 MHz fos: 16) 28 ~ max gi, || ee of, |] tee g go [7 By | ee a Ee = 08 IG = 08 | | i ee a SO CET 0 1 2 3 4 5 0 1 2 3 4 6 6 fosc (MHz) Veo (V) Igpy VS. foge characteristics Ispy VS. Vcc characteristics (resistor oscillator option) (resistor oscillator option) rr aocwree | | [| soo| parc 76.0 | TT ae Cer rr tee et

400 L{[ATT TT

ery Peer sof |] } ty yy

3 Coeereeeeeeh s Yee

F Fol | AT... i = 20t 4 CCCCELC LY | YT TTT tty 400 < ] Min, CLL CET em. 00] Ja Seeee———ae yt tt TTT o a ry a AEEEEEEEEE Voc (V) 0 10 20 «302«=40S—«S —Ipy (pull-up MOS current) vs. Voc — Vdisp (V) Voc characteristics Ipp (pull-down MOS current) vs. 15 (Voc ~ Véisp) Characteristics eens TT re Ps a ll faaS Zee : r ra = -20°C to +75°C | a 7 A ees ee | Veo=6v oe i Fs CE a esy TAT a Zo Mer = GAT TT Be ies i Aa 5) LAT A ee Z| ° 1 2 3 oO 1 2 3 Vo (V) Vee ~ Vou (V) (standard pin) (standard pin CMOS) @™ 4496204 00470b8 178 137 Hitachi nee OOO

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Characteristics Curves (Reference Data) (cont) PTT TIT TT v= [e-mroeseo] [7° seeierce SEE ene REPRE Dy @ coohtygae TOA 2 ce - A ¢ HE ye 53 W, pas Veo = 4.5V BE ooryA e | Apes enn SA é | WATT Coy 311i Ver [TVA TTT TT ' Zann CAC Lf AL fF ° 1 2 3 4 5 0 1 2 3 4 5 Vee - Vou (V) Veo - Vou (V) lon min. vs. (Voc — Vox) characteristics —lox min. vs. (Voc — Vox) characteristics (D4 to Dis pins) (RO to R2 ports) mm 4496204 0047069 oo4 138 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series DC Characteristics (Vcc = 2.7 V to 6 V, GND = 0 V, Vaisy = Vcc — 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) tem Symbol Pin Min Typ Max Unit Test Condition Notes Input high Vy RESET, SCK 0.85Vcg — Vec+03 V voltage INTo, INT, sl 0.85Veg — Voc +03 V Osc, Veo-0.3 — — Voo + 0.3 -V Input low Vy RESET, SCK, -0.3 — 018Veg voltage INTo, INT; sl 0.3 —___0.18Veg Osc, 0.3 — 03 v Output high Voy, SCK, SO Voo-0.5 -— — Vio Ag = 0.1 mA voltage Output ow Vo, SCK,SO - — 04 Vi gp =0.4mA voltage Inputoutput |Ii,| RESET, SCK, — - 1 HA Vin = OV t0 Veg 1 leakage INTo, INT;, current SI, SO, OSC, Current Ie. Vee _ — 06 mA Voc =3V, 2,6 dissipation fosc = 2 MHz in active mode Current —Igayi Vcc - — 05 mA — Maximum logic 3,6 dissipation operation in standby Voc =3V, mode _ fosc = 2 MHz 'gpy2 Voc = — 04 mA Minimum logic 4,6 operation Veo =3V, fosc = 2 MHz Current —Igtop_~—- Vee - - 10 WA Vinh EST) = 5 dissipation Voc - 0.2 V to Veg, in stop Vin(RESET) = mode OVI00.2V Stop mode Vgtop Voc 2 - = v retaining voltage Refer to notes on the following page. MH 44596204 0047070 ach 139 Hitachi Neeeeeneeeeee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1, Pullup MOS current and output buffer are excluded. 2. The MCU is in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Vg + Do to D3, R3 to R9: Veg + Dg to Djg, RO to R2, Ag, RA: Vas 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state + Standby mode * Input/output: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaler divide ratio * Serial interface: Stop Pin stato + RESET: GND + TEST: Voc + Do to Dg, R3 to R9: Veg * Dg to Dyg, RO to R2, RAg, RAY: Veaisp 4. The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state * Standby mode + Input/output: Reset state + Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio + Serial interface: Stop Pin state * RESET: GND + TEST: Voc * Do to Dg, R3 to R9: Veg. + Dg to Djs, RO to R2, RAg, RAs: Vaisp 5. Pull-down MOS current is excluded. 6. When fosc = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: (For divide-by-8 (D-8) option) Maximum value (foge = x MHz) = Xx max. value (logo = 2 MHz) Hitachi mM 4496204 0047071 762 ml 140 Hleehi

HMCS402 Series/HMCS404 Series/HMCS408 Series rr). Tee Oeee—eeeeEeEeeeesescee’s Input/Output Characteristics for Standard Pins (Voc = 2.7 V to 6 V, GND = 0 V, Vaisy = Voc - 40 V | to Voc, Ty = -20°C to +75°C, unless otherwise specified) ttem Symbol Pin Min Typ Max Unit Test Condition Note ——— OO Nest Goncition Note Input high Vi, DotoDs, 0.85Vg¢g — Voc+03 V voltage R3 to R5, $a eesSsSsSsSsSsSSssSSSSsSSSSsSSSSSSSSSSSSSsSeFee input low Vie DotoD;, 0.3 — 0.15Veg iV voltage R3to RS, RS Output high Voy, DytoDs, Vog-05 — — Vo slgy=O.1mA 1 voltage R3 to RB Output low — Voy DotoDs, — — 04 Vo Igy = 0.4mA voltage R3to RB SSS Inpuvoutput | ty | DotoD;, — — 1 WA Vine OVtOVog 2 leakage R3 to R9 current SS Pul-up MOS —~Ipy DotoDs, 3 15 40 WA Vog=3V, 3 current R3 to R9 Vin = OV DptoDs, 30 60 120 HA Vog=5V, 3 R3 to RO Vig = 0V Notes: 1. Applied to I/O pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to /O pins selected as with pull-up MOS by mask option. Me 4496204 0047072 LTS a 141 Hitachi Neen nn nnn ncc en

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Input/Output Characteristics for High Voltage Pins (Vcc = 2.7 V to 6 V, GND = 0 V, Vgigp = Voc-

40 V to Vcc, Ty = -20°C to +75°C, unless otherwise specified)

ttem Symbol Pin Min Typ Max Unit Test Condition Note Input high Vy DytoDys, 0.85Vog — Voc +03 V voltage: Ri, R2, Ao, RAy Input low Vy DytoDis, Voc-40 — 0.15Veg V voltage Ri, R2, RAo, RAy Output high Vow, DytoDig Vog-30 — — Vo low =15 mA, voltage Voc = 5 V +10% Voo-1.0 — — Vo lo = 2.5 mA ROtORZ Voc-30 — — Vi =o = 3 mA, Voc = 5 V 410% Veo-1.0 — - v lop = 0.5 MA Output low — Voy Dyto Dis, — — Vee-37 Vi Vip =Veg-40V 1 voltage RO to R2 Dyto Dis, — — Voo-37 V 150kQat 2 RO to R2 Veco - 40 V Inpuvoutput || DytoDys, — — 20 WA Vin= Vog-40V 3 leakage RO to R2 to Vog current RAo, RA, Pulldown —Ipp Dgto Djs, 125 250 500 vA Vain =Voe-35V, 1 MOS current RO to R2, Vin = Veo RAg, RA; Notes: 1. Applied to I/O pins selected as with pull-down MOS by mask option, 2. Applied to /O pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pulldown MOS current and output buffer current are excluded. M@@ 4456204 0047073 535 142 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series AC Characteristics (Voc = 2.7 V to 6 V, GND = 0 V, Vgisp = Voc - 40 V to Voc, Ty =-20°C to +75°C, | unless otherwise specified) ttem Symbol Pin Min Typ Max Unit TestCondition Note EO EO OOo O Or _ to Oscillation frequency fose OSC, 04 2 2.25 MHz OSC2 Instruction cycle time tye 355 4 20 us Oscillator stabilization — tag osc, — - 60 ms 1 time OSC2 External clock high topH osc; 205 — — os 2 width External clock low top osc; 205 — — os 2 width External clock rise topr osc; — - 20 ns 2 time External clock fall topy OSC, - - 20 ns 2 time INT high width ty INTg 2 _— - tye 3 TNT low width te INTo 2 = toe 3 INT; high width tia INT; 2 = - teye 3 INT, low width te iNT, 2 - - teye 3 RESET high width tasTH RESET 2 - — tye 4 Input capacitance Cin Allpins — — 15 pF f=1MHz, Vin =0V RESET fall time tast? - = 15 ms 4 Notes: 1. The oscillator stabilization time is the period from when Vgc reaches 2.7 V at power-on until the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary ‘time for oscillator stabilization. The circuits used to measure the value are shown below. When. using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator Cy Cy Osc; OSC, |Crystal rystal Fr chan R Osc; fs OSC, C. Ry Ce GND GND Crystal: 2.097152MHz DS-MGQ308 Ceramic: CSA2.000MK (Seiko Denshi) (Murata) Ry: 2MQ42%, Ry: 2.2MO2+2% Re 1MQ+2% Cy: 10 pF #20% Cy: 30 pF +20% Ce: 10 pF #20% Ce: 30 pF #20% Mm 4496204 0O47074 47) a 143 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _ 2 Ace ost: ogy tS torr tort 0.18Veco ossvecf wen RESET 9. 15Vec-f1 \\ tastt MB 4496204 0047075 305 ml 144 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Serial Interface Timing Characteristics (Vcc = 2.7 V to 6 V, GND = 0 V, Vis = Vcc - 40 V to Voc, = T, =-20°C to +75°C, unless otherwise specified) During Transmit Clock Output Item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tseye SCK 1 - - teye__ See note 2 1,2 Transmit clock high width tgcxn_—— SCK 0S —tscye See note? 1,2 Transmit clock tow width tex. SCK 05 — — tgcye See note 2 1,2 Transmit clock rise time tscxr SCK — — 300 ns Seenote2 1,2 Transmit clock fall time tsoxt SCK — — 300 ns Seenote2 1,2 Serial output data delay time tps SO — — 600 ns Seencte2 ‘1,2 Serial input data setup time tgs) sl 1000 — — ns 1 Serial input data hold time tus) sl 500 — — ns 1 Refer to notes on the following page. During Transmit Clock Input Item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tscye SCK 1 - - toe 1 Transmit clock high width tscxy — SCK_—0.5 — —— ——Ngeve 1 Transmit clock lowwidth tscx,—— SCK_— 05 — Neyo 1 Transmit clock rise time tscxr SCK — — 300 ns 1 Transmit clock fall time tscxt SK — — 300° ns 1 Serial output data delay time tpso sO _— — 600 ns _ Seenote2 1,2 Serial input data setup time tg) si 1000 — — ns 4 Serial input data hold time tus) sl 500 — — ns 1 Refer to notes on the following page. Me 4496204 OO4707b 244 me 145 Hitachi NNennn

HMCS402 Series/HMCS404 Series/HMCS408 Series | Notes: 1. Timing of serial interface Secye. nif ape Voc - 0.5 V (0.85Vec)" tecxi | SOK Sscxn 0.4 V (0.15Vcc)* . toso %0 fev X_| |) o4Vv tssi | tyst ‘0.85Vec ° ED oe Ce Note: * Vcc ~0.5 V and 0.4 V are the threshold voltages for transmit clock output. 0.85V¢¢ and 0.15Vc¢ are the threshold voltages for transmit clock input. 2. Timing load circuit Veo RL =2.6kQ Test point c R 182074) or equivalent 30 pF 12kQ M@™ 4496204 0047077 180 146 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series ee eee ee pertest taboo Series Characteristics Curves (Reference Data) = Ta =-20°C to +75°C Max, Ta = "20°C to +75°C | | ‘stv: yoplose.= 2 MHz vA 1, lose. = 2 MHz max. pseetikvt ~e_l tt ve : Phi tt) aL | ee | 8 os VA 3, \\ BA - i eeene pL] ett PP LT i Ty oT 23s 4 6 6 oT 23 4 +5 6 Vee (V) Vee (V) Iggy VS. foge characteristics Igpy VS. fosc characteristics (crystal and ceramic oscillator) (crystal and ceramic oscillator) Meee ree] TTT | w HLL Err sxo| Te ewe T TT Ty, [TTT TT yy [eee TT eo LEE wo ALLE ees LTT TT yy) Fo LLL aw LCE TE eer yee 2 ar 100] = 200 CO ee Ew. 1/72 A= == oof An a a toy (pulkup MOS curent vs. AREER Voc characteristics 0 10 20 30 40 50 Voc - Veto (V) 18 (= 720°C to 378°C Ipp (pull-down MOS current) vs. a | Veo =6V (Voc ~ Veisp) characteristics a ee = | | A L_ PW vec =5V z” a, | cs ee ee ee 4 | 4 £ a [e-rcieree [ T] Voce Ze a = pay Ner= a> Zee ene y — oc fro 2? a veceev Po ceeny § | | JA Ae Pet Ve a Z|] Vg = 2.7 iy 1 2 3 0 1 2 3 Vor (V) Veo - Vou (V) lox min. vs. Vo characteristics: lox min. vs. (Voc -— Vox) characteristics (standard pin) (standard pin CMOS) @™ 4496204 0047078 O17 147 Hitachi Neeeneeeeee ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Characteristics Curves (Reference Data) (cont) S0fF = aero te 78°OT | [| TTT TTT TTT ty -ev PEE eR oof TTT Tt yr wy se vec sv se HEA eee Tl cc = 8 V PCO eEEET Ere € LA | detec =4V A

5 COO cer est Yea

yo tt iAvet te i PUTT Ay er ec = 4 CTPA TT vec e27¥ $1) yee LT YA | ery | PT wel | ? CA etT TT 1A oo =2.7V [AeT TTT eet [LA trT TTT AUT) Aoi) 1 2 4 Vee — Vou (V) Vee ~ Vou (V) —loy min. vs. (Veo - Vou) characteristics lon min. vs. (Voc — Vox) Characteristics (Dg to Djs pins) (RO to R2 ports) MS 4496204 0047079 T53 148 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series DC Characteristics (Vcc = 4.5 V to 6 V, GND = 0 V, Vip = Voc — 40 V to Vc, T = -20°C to +75°C, unless otherwise specified) ttem Symbol Pin Min Typ Max Unit Test Condition Notes Input high Vin RESET,SCK 0.7Voco — Voc+03 V voltage INTp, INT, sl Occ — Veco +0.3 V osc, Veo-90.5 — Veg + 0.3 V Input low Vi RESET, SCK, -0.3 — 0.22Vgg VV voltage INTo, INT; si 03 — 022g, V OSC, 403 _ 05 v Output high Voy SCK,SO Veo-1.0 — — Vo lon = 1.0 mA voltage Voo-03 — — V ~lo = 0.01 mA Output low Voy 5CK,SO - — 04 Vo Ig. = 1.6 mA voltage Inpuvoutput |!i,| RESET, SCK, — - 1 HA Vin= OV 0 Vog 1 leakage INTo, INT;, current SI, SO, OSC, Current — Ig Veo - - 30 MA Voc =5V, 2,6 dissipation fosc = 6 MHz in active mode a Current Isavi Veo. - - 1.8 mA = Maximum logic 3.6 dissipation operation in standby Voc =5V. mode fosc = 6 MHz Isave Veo - — 1,35 mA Minimum logic 4,6 operation Veco =5V, fogc = 6 MHz Current Istop Voc - - 10 BA Vin(TEST) = 5 dissipation Voc ~ 0.3 V to Voc, in stop Vin(RESET) = mode OV100.3V Stopmode Vstop Voc 2 - _- v retaining voltage Refer to notes on the following page. mm 4496204 0047080 775 ml 149 Hitachi cnn nnnee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1. Pull up MOS current and output buffer current are excluded. 2. The MCU is in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Vog * Do to D3, R3 to R9: Veg *+ Dg to Djs, RO to R2, Rp, RA}: Veisp 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state * Standby mode + Input/output: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaler divide ratio * Serial interface: Stop Pin state * RESET: GND + TEST: Voc + Do to D3, R3 to RY: Vog. + Dg to Dis, RO to R2, RAg, RAs: Veisp 4, The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state * Standby mode * input/output: Reset state * Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc + Do to Dg, R3 to R9: Vog * Dg to Dig, RO to R2, RAg, RAs: Vesep 5. Pull-down MOS current is excluded. 6. When fogc = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: Maximum value (fog¢ = % MHz) = 4 x max. value (fggg = 6 MHz) mm 4495204 0047082 60) a 150 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series SO ee es Ee ETS Input/Output Characteristics for Standard Pins (Voc = 4.5 V to 6 V, GND = 0 V, Vgigp = Voc - 40 V = to Voc, Ta = -20°C to +75°C, unless otherwise specified) tem Symbol Pin Min Typ Max Unit Test Condition Note Input high Vy DgtoDs, O7Veg — Voo+03 V voltage R3 to R5, RQ eee Inputiow Vy. DotoDs, 0.3 — 022g, V voltage R3to R5, RQ Output high Voy, DotoDs, Vog-10 — — Vi Algy=1.0mA 1 voltage R3 to R8 DotoDs, Vog-03 — — v slo =0.01mA 1 R3 to R8 a Output ow Voy DotoD;, — — 04 v lop = 1.6 mA voltage R3 to R8 Inpuvoutput | hi | DytoDs, — - 1 BA Vine OVtOVeg 2 leakage R3 to RO current oe Pull-up MOS —ipy DotoD3, 30 60 120 BA Veg =5V, 3 current R3 toR9 Vin = OV ee 2 the Notes: 1. Applied to VO pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to VO pins selected as with pull-up MOS by mask option. M@™ 44y5b204 0047082 S48 me 151 Hitachi Neen ncceneenee ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Input/Output Characteristics for High Voltage Pins (Vcc = 4.5 V to 6 V, GND = 0 V, Vaisp = Voc- tem Symbol Pin Min Typ Max Unit Test Condition Note Input high Vy DgtoDys, 0.7 Veg. - Veo +0.3 V voltage Rt, R2, Rao, RA; Input low Vy. DytoDis, Voo-40 — 0.22Vcg V voltage Rt, Re, Ao, RA; Output high Voy DstoDis Voc-30 — — Vo “lon = 15 mA, voltage Veco = 5 V £10% Voo-2.0 — = Vv slon = 9 mA ROtoR2 Voc-30 — — Vo =lon=3mA, Voc = 5 V 410% Vec-20 — — Vo low = 1.8 mA Output low Voy. Dgto Dis, — — — Vec-37 Vo Vgigp=Vog-40V 1 voltage RO to R2 DytoDis, — — Voo-37 VV 150kQat 2 RO to R2 Voc - 40 V Inputoutput {hl D,toDys, — — 2 HA Vin=Voo-40V 3 leakage RO to R2 to Veg current RA, RA; Pulldown — pp DytoDis 125 250 500 HA Vgisp=Voc-35V, 1 MOS current RO to R2, Vin = Voc RAg, RA; Notes: 1. Applied to I/O pins selected as with pull-down MOS by mask option. 2. Applied to /O pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pull-down MOS current and output buffer current are excluded. M™ 4496204 0047083 484 152 Hitachi

..)s SSS HMCS402 Series/HMCS404 Series/HMCS408 Series AC Characteristics (Vcc = 4.5 V to 6 V, GND = 0 V, Vaigy = Voc - 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) ftem Symbol Pin Min Typ Max Unit TestCondition Note —2. OO est Goncition Noto Oscillation frequency fog¢ OSC, 04 6 6.2 MHz Osc, ta Instruction cycle time tye 129° 1.33 20 ry Oscillator stabilization tac. osc, — - 20 ms 1 time OSC External clock tory osc, 70 _ _ ns 2 high width External clock top OSC, 70 _ - ns 2 low width eee External clock topr osc; — - 20 ns 2 tise time eee External clock topy Osc, - - 20 ns 2 fall time TNTg high width ti INT, 2 - = tye 3 INT, low width te INT, 2 - = toe 3 INT; high width tin INT, 2 = —__tye 3 va INT; low width te iNT, 2 = = tye 3 RESET high width tasty RESET 2 = = t&e 4 Input capacitance Cin Allpins — - 15 pF f= 1 MHz, Vin = OV SSS OV RESET fall time tastt - = 20 ms 4 EG Notes: 1. The oscillator stabilization time is the period from when Vog reaches 4.5 V at power-on until when the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At Power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary time for oscillator stabilization. The circuits used to measure the value are shown below. When using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator c Cy Osc, ct osc, Crystal. os Coramic 5 SP; OSC2 fs OSC, Ce Ce ‘GND GND Crystal: 6.0MHz NC-18C Ceramic: CSA6.00MG (Nihon Denpa Kogyo) (Murata) Ry: 1 MQ 42% Ry 1MQ42% Cy: 20 pF £20% Cy: 30 pF +20% C2: 20 pF £20% Ce: 30 pF +20% @™ 4496204 0047084 310 153 Hitachi SNe

HMCS402 Series/HMCS404 Series/HMCS408 Series _ 2 ‘tMop osc; 05V tf torr tepr Win, over fet, / 0.22Vec. RESET 9 >>Vc¢_f N taste WM 4456204 0047085 257 154 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Terr Sere Series Serial Interface Timing Characteristics (Vc = 4.5 V to 6 V, GND = 0 V, Vgisp = Voc - 40 V to Vecy | T, = -20°C to +75°C, unless otherwise specified) During Transmit Clock Output tem Symbol Pin Min Typ Max Unit Test Condition _Notes Transmit clock cycle time tsoye SCK 1 - - lyc See note 2 1,2 Transmit clock high width scx SCK 0.8 =—— —— tee See note? 1,2 Transmit clock low width tgcx._—sSCK_— 0.5 ~~ ——tgcye See note? 1,2 Transmit clock risetime __tscxr. += SOK. =— + — 100 ns Seencte2 1,2 Transmit clock fall time tscKt SCK — — 100 ns _ Seenote2 1,2 Serial output data delay time tpso SO — — 250 ns Seenote2 1,2 Serial input data setup time — tgg si 300 — — os 1 Serial input data holdtime tug, si 150 —- — ns 1 Refer to notes on the following page. During Transmit Clock Input Item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tseyc SCK 1 - - tye 1 Transmit clock high width —tscxy «= SCK 0S tscye 1 Transmit clock low width tex. SCK 05 — — tscye 1 Transmit clock rise time tgcxr SCK — — 100 os 1 Transmit clock fall time tex, SCK — — 100 ns 1 Serial output data delay time tps. SO — — 250 ns Seenote2 1,2 Serial input data setup time — tgs sl 300 — — os 1 Serial input data hold time tus: sl 150 — — os 1 Refer to notes on the following page. MB 4496204 0047086 193 155 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1. Timing of serial interface Iseye tscx 'sokr sox Woon20V (0.7Vco)* scx 0.8 V (0.22Vec)*

4 I toso

  • Cv =X || > O8V ‘ssi | tsi O7Vec . ED on ee Note: * Voc ~ 2.0 Vand 0.8 V are the threshold voltages for transmit clock output. 0.7Vec and 0.22Vec are the threshold voltages for transmit clock input. 2. Timing load circuit Veo RL =2.6kQ Test point c R 182074) or equivalent 12kQ 30 pF M® 44596204 004708? OeT 158 Hitech!

a HMCS402 Series/HMCS404 Series/HMCS408 Series IMCS 402 Series HIMCS404 Series/HIMCS408 Series Characteristics Curves (Reference Data) ; 2.4772 20°C to + 75°C lsat poltesa= SME | | VA L Iseve Seo Tipe. | AA SHRRECelee see Pere eC TEE ECAH i) 1 2 3 4 5 6 0 1 2 3 4 5 6 Vee (V) Vee (V) lec vs. Vee characteristics Ispy vs. Veo characteristics (crystal and ceramic oscillator) (crystal and ceramic oscillator) 500, a ny So | “ees A os | COC woo fh Saas Hee HAH

5 At |

$ 2™0 eee 3 oo LE g LJ =a tame — Paol LATCLLL CCC = ACH CCC Seeeene CCC CET soo CU eee Yo a a ee Se \\ ASRS Seee) Vee (¥) —Ipy (pull-up Mos current) vs. Voc ~ Veep (V) Voc characteristics Ipp (pull-down MOS current) vs. 15) (Voc — Vdisp) Characteristics PT vce =8v ee a ll BEERS

4 AVoc=5V

¢ ee a ee BS A a 4 € ET TAA | Ta =-20°C to +75°C

5 Cokes 23 pa] veo 8Y

s_| AZ7_1 3 LT voce 5V _7 = “oe [fre —_ = 2 —_-za = Voc =45V Pao a-dannn Zor Z| 0 1 2 3 i?) 1 2 3 Voi (V) Vee ~ Vou (V) (standard pin) (standard pin CMOS) MH 4496204 0047088 Tob mm 487 Hitachi i

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Characteristics Curves (Reference Data) (cont) 30PT TTT TT TT Tvcc=6v [ry=-20ec wero] 17 HEH vee =45V Sfye-zo'ctow75c| | [\\voc-6¥ ol ttt AA 5 Prcrya| Let -e FE ye Cy a @ foo ‘ va .

2 Coo Fa (Wat Veo=45V

anee44e00n es ANAT | 3,7 é nape Lae ey a11|\\We HA ATT YESH A oO 1 2 3 4 5 0 1 2 3 4 5 Vee - Vou (V) Voc ~ Vou (V) lon min. vs. (Voc — Vox) characteristics lon min. vs. (Vec — Vou) characteristics (Dg to Dis pins) (RO to R2 ports) @@™ 4496204 0047089 9T2 a 158 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series HMCS402C/CL/AC Option List Please check off the appropriate applications and enter | Deparment | SSC=*d the necessary information. SV operation: DHMCS402¢ (HD614023) 3-V operation: CHMCS402CL (HD614026) | FT Shtype number | High speed operation: I HMCS402AC (HD61 4029) | | (Hitachi's entry) 1. VO option Note: 1/O options masked by [7 are not available. VO option ‘0 VO option [alejoltote| Aleletoyfe| do ip [Ww] | | Peer [Peo | [vo [sie Oj} ge( lo | TT Ped. R31 | [vo [Se be} gs| wo [TT pa ase | [vo [Te os 1? [oT ee R33 vo [TT este D4 vO r++ | R40 ir) i 0S {v0 ee! Rat | vo | ee D6 [VO Fee | | [Re | [wo [TT eS a 9 Ss [res | [ol TT eo [oe] g | Pe [aso | [wo |) | bees [os |g | 0 | R51 | | e- feedes [on | § 0 cn eae 4 d2 | * [io Pee [Re | & [o | TT bere D3 vO ft} fer] § +} Pe oe 2 es = “Re2 He i Ss | 015] 0 ee nes | 3 sa] R70 co) a Ss a R7 Cn 8 Ro | [oO cate | | ee Ro2_| 0 Ls ‘FeO ° a | R03 AO 2 a ) [| [Essie Rio | & [0 Fests | [rez | [oO | [| | fen | a [oO Pee) res) [og Ri2_| H Fesdepeed || a i Ri3 eae Bes Rot Hi beede gee R20 | & eetees ere Foz [1 eee REE es [Rei | * [VO Pee re __ fet ee R22 [vo ae a ied | Res pabeee | eee Use checkist ber ed Ea | RAIdisp A: Without pull-up MOS (NMOS open drain) B: With pull-up MOS. C: CMOS (not to be used as input) D: Without pull-down MOS (PMOS open drain) E: With pull-down MOS. 4 0047090 b14 mw ae 44sbeo4 0 159 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| 2. RAINdisp 3. Divider (DIV) O RAI: Without pull-down MOS (D) @ Divide-by-8 OVvdisp Note: If even one high-voltage pin is selected with VO option E, pin RA1/Vdisp must be selected to function as Vaisp. 4, ROM code media Please specify the first type below (the upper bits and lower bits are mixed together), when using the EPROM on-package microcomputer type (including ZTAT™ version). COEPROM: The upper bits and lower bits are mixed together. The upper five bits and lower five bits are CEPROM: The upper bits and lower bits are separated. The upper five bits and lower five bits are Programmed to different EPROMS. 5. System oscillator (OSC1 and OSC2) OHMCs402C OOHMCS402CL COHMCS402AC (5-V operation) (3-V operation) (high speed operation) O Resistor (Ry = 20 kQ +2%) T Ceramic oscillator CCeramic oscillator Ci crystal oscillator Cl Crystal oscillator 6. Stop mode 7. Package oPes mm 44ysb204 0047091 550 100 Hitachi

—. Aaa SSSSSsSSs HMCS402 Series/HMCS404 Series/HMCS408 Series DC Characteristics (Voc = 4 V to 6 V, GND = 0 V, Vgisp = Voc - 40 V to Voc, Ty = 20°C to +75°C, unless otherwise specified) tem Symbol Pin Min Typ Max Unit Test Condition Notes Test Condition Notes Input high Vy, RESET.SCK 0.7Vcc — Voco+03 V voltage INTs, INT, si O7Vec — Vec+03 V osc, Vec-0.8 — Vec+03 V te No 0 8 Inputiow Vi. RESET, SCK, -03 — 022Ve¢ OV voltage INTs, INT, __ st 03 = 022V¢¢_—V Ose, 03 = 05 v a i Output high Voy, SCK, SO Voo-10 — — Vo toy = 1.0 mA —aeH OMA voltage Voo-03 — — Vi =lo = 0.01 mA TN ton OOF MA Output low Vo. SCK, SO = — 04 Vo lop = 1.6 mA voltage Inputoutput [I RESET, SCK, — =- 4 HA Vin = OV t0 Veo 1 leakage INT, INT, current $1, SO, OSC, td Current lec Vec = — 20 MA Voc=5V Crystal or 26 dissipation ceramic in active oscillator mode fogc = 4 MHz = — 24 mA Resistor 26 oscillator tose = 4 MHz SSS osc MHZ Current Igev1 Veo = — 12 mA Maximum Crystal or 3.6 dissipation logic ceramic in standby operation _ oscillator mode Vec=5V fog = 4 MHz = = 16 mA Resistor 36 oscillator fosc = 4 MHz SSS fos AMHR lgave Veo = = 09 mA Minimum Crystal or 46 logic ceramic operation oscillator Vec=5V tose = 4MHz = = 13 mA Resistor 46 oscillator fosc = 4 MHz fos Me Current 'stop Voc - - 10 HA Vin EST) = Voc - 0.3 VI0 Voc, 5 dissipation in Vinneser) = 0 V to 0.3 V stop mode _ Stopmode Vstop Vcc 2 = = v retaining voltage Fs Refer to notes on the following page. Me 4496204 cour7ode 4 161 Hitachi Cenc cccnnnnnnn

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1. Pull up MOS current and output buffer current are excluded. 2. The MCUis in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Voc * Do to Dg, R3 to RO: Vog * Dg to Dyg, RO to R2, Rp, RAY: Vesep 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Input/output: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc * Do to Dg, R3 to R9: Veg + Dg to Dy5, RO to R2, RAg, RA: Veigp 4. The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Input/output: Reset state + Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Veg + Do to D3, R3 to R9: Voc + Dg to Dyg, RO to R2, RAo, RAs: Veisp 5. Pulldown MOS current is excluded. 6. When fog = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: Maximum value (logo = x MHz) = + x max. value (fog¢ = 4 MHz) mm 445n204 0047093 323 162 Hitachi i

HMCS402 Series/HMCS404 Series/HMCS408 Series Input/Output Characteristics for Standard Pins (Vcc = 4 V to 6 V, GND = 0 V, Vgisp = Voc - 40 V to = Voc: Ta = -20°C to +75°C, unless otherwise specified) Item Symbol Pin Min Typ Max Unit Test Condition Note e505 nit Test Condition Note_ Input high Vy DotoDs, O.7Vog — Veo +03 V voltage R3 to R5, Rg - Input low Vit DotoDs, 0.3 — 022Vg¢ voltage R3to AS, ee Output high = Voy OptoD3, Veg-1.0 — — v —loy = 1.0 mA 1 voltage R3to RB DptoD3, Vog-03 — — Vi Alo = 0.01mA 1 R3to RB Output low Vo. DotoDs, — — 04 v lop = 1.6 mA voltage R3to RB {input/output | ly | DotoD3, — _ 1 HA Viqg=OVtoVog 2 leakage R3 to RO current Pull-up MOS -Ipy DgtoDs, 30 60 = 120 HA Voc = 5, 3 current R3 to RO Vin = OV Ni ON Notes: 1. Applied to /O pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to VO pins selected as with pull-up MOS by mask option. WM 4496204 0047094 ebT ml

163 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Input/Output Characteristics for High Voltage Pins (Vcc = 4 V to 6 V, GND = 0 V, Vaisp = Voc — 40 V to Vcc, Ts = -20°C to +75°C, unless otherwise specified) item Symbol Pin Min Typ Max Unit Test Condition Note Input high Vay, DytoDi5, O7Ve¢ — Vecr03 V voltage Ri, R2, Ao, RAY Inputlow Vi DstoDys, Voc-40 — 0.22V¢g -V voltage Ri, R2, A Output high Voy DgtoDig Voo-3.0 — — Vlog = 15 mA, voltage Veco = 5 V 10% Voo-2.0 — = Vlog =9mA ROtOR2 Veg-30 — — Vo Alon = 3 mA, Voc = 5 V +10% Voo-20 — — Vo log = 1.8 mA Output low Vo, Dg to Dis, — — Voc-37 VV Viisp=Voo- 401 voltage RO to R2 Dgto Dis, — — Voc-37 VV 150kQat 2 RO to R2 Voc - 40 V Inputoutput |h| DytoDis, — — 2 WA Vin= Veo - 40 V 3 leakage RO to R2 to Veo ‘current RAo, RAy Pull-down —Ipp DytoD,, 125 250 500 HA Vdisp=Voc-35V, 1 MOS current RO to R2, Vin = Veo RAg, RA; Notes: 1. Applied to I/O pins selected as with pull-down MOS by mask option. 2. Applied to /O pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pulldown MOS current and output buffer current are excluded. bi mm 4yqe2o4 0047095 37 164 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series SSS sn eS emer e eee peries AC Characteristics (Vcc = 4 V to 6 V, GND = 0 V, Vaisp = Voc - 40 V to Vecs Ty = -20°C to +75°C, = unless otherwise specified) Item Symbol Pin Min Typ Max Unit‘ Test Condition Note rere Max Unit Test Condition Note _ Crystal or Oscillation — toge OSC,, 04 4 45 MHz ceramic frequency _ OSC, . oscillator Instruction tye 1782 (2 ous cycle time _ a _ _ Oscillator tpg. osc, — _ 20 ms 1 stabilization OSC, time _ Resistor Oscillation fogc. OSC, 18 30 42 MHz Rp=20k2+2% oscillator frequency OSC, - __ Instruction — teye 19-266 4.44 ps — Ryp= 20k 42% cycle time _ _ Oscillator — tag osc; — - 05 ms Ry=20kQ42% 1 stabilization OSC time . External External {op osc, 04 =_ 45 MHz 2 clock clock frequency External top osc; 100 — — ns 2 clock high width External top osc; 10 — — ons 2 clock low width External topr osc; — - 20 ons 2 clock rise time _ External torr osc; — = 20 ns 2 clock fall time Instruction — teyc 178 — 20 us 2 cycle time 7 - INTo high width tin _INTo 2 - - toye 3 INTo low width te INT, 2 aa - teye 3 INT; high width tin iNT; 2 - - toc 3 INT, low width te INT; 2 - - tye 4 RESET high width tasty RESET 2 = = toe 4 Input capacitance Cin Allpins — - 15 pF f=1 MHz, Vin = OV RESET fall time tastt - _ 20 ms 4 ———e es Refer to notes on the following page. M@™ 4496204 0047056 032 ;

165 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1. The oscillator stabilization time is the period from when Voc reaches 4.0 V at power-on until when the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary time for oscillator stabilization. When using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator Resistor oscillator Cy Cy osc osc, lose, crystal ‘ ct * . sr, Ceramic 55 SF Ri osc, osc, osc, Ce Ce GND GND Crystal: 4.194304MHz NC-18C Ceramic: CSA4.00MG Re: 20 MQ +2% (Nihon Denpa Kogyo) (Murata) Ry: 1MQ.42% Re: 1 MQ 42% Cy: 22 pF £20% Cy: 30 pF 220% Co: 22 pF +20% C2: 30 pF £20% ice ose osv LF torr toPt OM iNT, INT, ee tu 0.22Vcc 07Vce RESET 9 20Vc0 +} \\ tastt @@ 4496204 0047097 779 om 166 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series SS 00ers: Serial Interface Timing Characteristics (Vcc = 4 V to 6 V, GND =0 V, Vaisp = Vec - 40 V to Voc = T, = -20°C to +75°C, unless otherwise specified) During Transmit Clock Output ftom Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time _tgeye SCK 1 - = tee _ See note 2 1,2 Transmit clock high width tscxy — SCK_— 0.5 = — tego See note 2 1,2 Transmit clock low width Isc. STK 0S tscye See note 2 1,2 Transmit clock rise time tscKr SCK — — 100 ns _ Seenote2 1,2 Transmit clock fall time tscxt SCK — — 100 ns _ Seencte2 1,2 Serial output data delay time tpso so. — — 300 ns _ Seenote2 1,2 Serial input data setup time — tgg; Si 500 — - ns 1 Serial input data hold time tus) s! 150 — - ns 1 Refer to notes on the following page. During Transmit Clock Input Item Symbol Pin Min Typ Max Unit TestCondition _ Notes Transmit clock cycle time tgcye SCK 1 - = toe 1 Transmit clock high width tscxy — SCK 0.5 — tage 1 Transmit clock low width scx SCK 05 —thaye 1 Transmit clock rise time tgcrr SCK — — 100 ns 1 Transmit clock fall time tscxt SK — — 100 ons 1 Serial output data delay time tpso. so - = 300 ons See note 2 1,2 Serial input data setup time tgs, SI 500 — — os 1 Serial input data hold time tus) SI 150 — — os 1 Refer to notes on the following page. Mz 4496204 0047098 905 a 167 Hitachi

0 OL,

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Notes: 1. Timing of serial interface Nseye. = Fea] Fe | Veo - 2.0 V (0.7Vec)* 1 tscn _f SCK sc 0.8 V (0.22Vec)* t_4 ‘toso % Cov X_i| > o8v tssi fast 0.7Voo si ( )Xeznie Note: * Voc - 2.0 V and 0.8 V are the threshold voltages for transmit clock output. 0.7Vcc¢ and 0.22Vog are the threshold voltages for transmit clock input. 2. Timing load circuit Vee Ri = 2.6kQ Test point c R 182074@ or equivalent 12kQ 30 pF Mm 44596204 0047099 641 168 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series a Characteristics Curves (Reference Data) a ee ee ee (LTT TTT Ta = 20°C to +75°C Ta =-20°C to+75°C | Veo =5V fosc = 4 MHz i | z | Am a ce 1 —| 1 Lei [TT | tt | ° 1 2 3 4 S o 1 2 3 4 5 6 fosc (MHz) Voc (V¥) loc vs. fose characteristics Ic¢ v8. Vee characteristics (crystal and ceramic oscillator option) (crystal and ceramic oscillator option) al] | ff a LITT TT Ta = 20°C to +75°C Ta = 20°C to +75°C Veo =5V i fosc = 4 MHz a 1 271 E, 1 E, 4 re rs ai tert tT of ree Trt LETT 0 1 2 3 4 5 C) 1 2 3 4 § 6 fosc (MHz) Vee (V) loc VS. fosc characteristics loc v8. Vec characteristics {resistor oscillator option) (resistor oscillator option) 20, 20 Ta= 20°C to 475°C Ty = 20°C to 475°C levi Veo = 5V fosc = 4 MHz max. 16 16 r > ti, | 1] Pe ei TTT 5 12 em me 12 wr z° an r p08 B Z| 2 “Ce TT “CTT | LU ° 1 2 8 4 «5 o 4 2 3 4 6 6 fosc (MHz) Voc (V) Isay V8. fosc characteristics Iggy vs. Voc characteristics (crystal and ceramic oscillator option) (crystal and ceramic oscillator option) WM 4496204 0047100 353 169 Hitachi SL

HMCS402 Series/HMCS404 Series/HMCS408 Series | Characteristics Curves (Reference Data) (cont) 2.07, = Bore to 175°C 2.075 20°C to a75°O Ey 2h ot fone wT as! CU i Ae nae eee Lt] [i i Litt te yy [) 1 2 EJ 4 5 0 1 2 3 4 5 6 tose (MHz) Voc (V) Igy VS. fogc characteristics Isgy VS. Voc characteristics (resistor oscillator option) (resistor oscillator option) fre aorew rs [| TT | soo |p 2c 037550 | ft vax COP tee ae>-.een aan oT ao AEE COCPe eee gee zgotft tft ft tts 2 ol LE 3 Ye Z20ane a ae ae HVE TT ttt 100} <4 | oo Min. Cl FL 100} Jr CCCP ee VAT tt Tt ee er Sa VOC} —Ipy (pull-up MOS current) vs. Voc — Veisp (V) Voc characteristics Ipp (pull-down MOS current) vs. 15 (Voc - Vdisp) characteristics ee OO De es ee | a a 10 a A z a | —& [TT Tye 4 .== 2 = oe

3 Za a | = 3 Yoo =6V

5 | We TT = || | [er Veo =5V PASS eee A loc = a 2 CL 4 a i ee ee ee Z| o 1 2 3 ty) 1 2 3 Vou (V) Vee - Vou (V) lox min. vs. Vox characteristics —lox min. vs. (Voc ~ Vox) characteristics (standard pin) (standard pin CMOS) MB 4496204 0047101 2ecT 170 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Characteristics Curves (Reference Data) (cont) = i Baan [Avec = 6V Ta=-20°C to+75°C | | ¥ | EHH HAG ‘ , aD A oe : De = A deeo= g Co ga eH. £ EH AATH Onn Ae 980 + AT pL eeares Bey caguee ae CA 1 A A A ZC eer f ° 1 2 3 4 5 i) 1 2 3 4 5 Voc - Vou (V) Vee — Vou (¥) lox min. vs. (Voc — Vox) characteristics lon min. vs. (Voc — Vox) characteristics (Dg to Dys pins) {RO to R2 ports) M™ 4456204 0047102 1lbb 171 Hitachi a

| HMCS402 Series/HMCS404 Series/HMCS408 Series DC Characteristics (Vcc = 2.7 V to 6 V, GND = 0 V, Vaisp = Voc - 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) Item Symbol Pin Min Typ Max Unit Test Condition Notes Input high Viy RESET, 5CK 0.85Veg — Vect+03 V voltage INT, INT; st 0.85Veg — Voc +0.3 V Osc, Voc-0.3 — Veo +03 V Input low Vy RESET, SCK, -0.3 — 0.15Veg voltage INTo, INT, Si 70.3 - 0.15Veg OV Osc, 0.3 - 0.3 Vv Output high Voy, BCK, SO Veo-05 -— Vi lo = 0.1 mA voltage: Output low Vo. BCK, SO - —- 04 Vo ig, = 0.4 mA voltage Inputoutput |Ii,| RESET, SCK, — - 1 HA Vin =0V to Vog 1 leakage INTo, INTs, current SI, SO, OSC, Current — Ic Voc - — 06 MA Voc =3V, 2,6 dissipation fosc = 2 MHz in active mode Current Ispyi Voc - - 0.5 mA = Maximum logic 3,6 dissipation operation in standby Voc =3V, mode tose = 2 MHz Isay2 Veo = — 04 mA Minimum logic 4,6 operation Veo =3V, fosc = 2 MHz Current = Istop += Voc _ - 10 BA Vin(TEST) = 5 dissipation Voc — 0.2 V to Voc, in stop Vin(RESET) = mode OVt0O2V Stopmode Vstop Vcc 2 - - v tetaining voltage Refer to notes on the following page. ME 4496204 0047103 OT2 a 172 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. Pull up MOS current and output buffer are excluded. = 2. The MCU is in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Voc * Dg to Dg, R3 to R9: Veg + Dy to Dyg, RO to R2, Ag, RAy: Vai 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Inpuvoutput: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaier divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc + Dg to Dg, R3 to R9: Veg * Dg to Dyg, RO to R2, RAg, RAs: Veisp 4, The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Inpuv/output: Reset state + Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc + Dg to Dg, R3 to R9: Veo + Dg to Djg, RO to R2, RAg, RAY: Veisp 5. Pull-down MOS current is excluded. 6. When fogc = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: (For divide-by-8 (D-8) option) Maximum value (fog¢ = x MHz) = + x max. value (loge = 2 MHz) ME 4496204 0047104 735 a 173 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series SSS _| Input/Output Characteristics for Standard Pins (Vcc = 2.7 V to 6 V, GND = 0 V, Vaisp = Voc - 40 V to Vcc, T, = -20°C to +75°C, unless otherwise specified) ttem Symbol Pin Min Typ Max Unit Test Condition Note $$ OEE eee reo Oe Input high Vy DotoDs, 0.85Vgg — Vogt+03 V voltage RS to RS, RO a eeSSSSSSSSSSSSSSSSSSSSSSSee Inputlow Vy DotoD,, 0.3 — 015Vog voltage R3 to R5, Ro eS Output high Voy DotoDs, Voc-05 — — Vo qu=0.1mA 1 voltage R3to R8 ese Output low = Vg DgtoDs, — — 04 Vo lo = 0.4 mA voltage R3 to R8 ee {npuvoutput —|I,} DotoDs, — - 1 WA Vin=OVtoVog 2 leakage R3 toR9 current a Pull-up MOS —Ipy DotoDs, 3 15 40 BA Voc =3V, 3 current R3 to RO Vin = 0V DotoDs, 30 60 120 HA Vog=5V, 3 R3to RO Via = 0V $$ Nn ON Notes: 1. Applied to VO pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to I/O pins selected as with pull-up MOS by mask option. WM 4456204 0047105 975 a 174 Hitachi

—.]s HMCS402 Series/HMCS404 Series/HMCS408 Series Input/Output Characteristics for High Voltage Pins (Voc = 2.7 V to 6 V, GND = 0 V, Vga = Vec- tem Symbol Pin Min Typ Max Unit Test Condition Note Pt Test Concition Noto Input high Vy DgtoDys, 0.85Veg — Veo +0.3 V voltage Ri, R2, RAg, RA; a A Inputlow Vy DytoDys, Vog-40 — 0.15Vgg VV voltage Ri, R2, RAg, RA1 _ Output high Voy DgtoDis Voo-30 — — Vo =loy = 15 mA, voltage Voc = 5 V #10% Voo-1.0 — — Vo low = 2.5 mA eNOS EMA ROtOR2 Vog-30 — — Vo lo = 3mA, Voc = 5 V #10% Voo-1.0 — — Vo =loy=0.5 mA NOS MA Output low Voy DgtoDis, — — Vec-37 Vi Véigp=Veo-40V. 1 voltage RO to R2 _ DytoDis, — — Voo-37 V 150kQat 2 RO to R2 Voo- 40 V Inputoutput {ly DytoDis, — — 2 WA Viq= Vog-40V 3 leakage RO to R2 to Veg current RAg, RA, a Pul-down pp DytoDys, 125 250 500 HA Vggp=Vocg-35V, 1 MOS current RO to R2, Vin = Voc RAg, RA; SEU EE nn eerreer ee Notes: 1. Applied to VO pins selected as with pull-down MOS by mask option. 2. Applied to VO pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pull-down MOS current and output buffer current are excluded. @ 4496204 0047106 801 mm 175 Hitachi ee

HMCS402 Series/HMCS404 Series/HMCS408 Series _ AC Characteristics (Vcc = 2.7 V to 6 V, GND = 0 V, Vgisp = Vcc — 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) ttem Symbol Pin Min = Typ Max Unit TestCondition Note Oscillation frequency —_foso OSC, 04 2 2.25 MHz OSC, Instruction cycle time teye 355 4 20 us Oscillator stabilization tac osc;,, — _ 60 ms 1 time Osc, External clock high tory osc; 205 — — os 2 External clock low top. Osc, 205 — - ns 2 width External clock rise top, osc, - - 20 ns 2 time External clock fall topr Osc, = - 20 ns 2 time INT high width ty INT 2 - — toe 3 INT, low width tie INTo 2 - - toye 3 INT; high width ty INT, 2 - - tye 3 INT, low width te INT; 2 _ _ toc 3 RESET high width tasty RESET 2 - _ fee 4 Input capacitance Cin Allpins — = — 15. pF f=1MHz, Vin = OV RESET fall time tastt = = 15 ms 4 Notes: 1. The oscillator stabilization time is the period from when Vcc reaches 2.7 V at power-on until the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary time for oscillator stabilization. The circuits used to measure the value are shown below. When using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator Cc Cy osc, osc; S sh clam Ss, Osc, b OSC Ce Re Ce GND GND Crystal: 2.097152MHz DS-MGQ308 Ceramic: CSA2.000MK (Seiko Denshi) (Murata) Ry: 2M0.42%, Ry: 2.2k2 22% Ry: 1M042% Cy: 10 pF £20% Cy: 30 pF £20% C2: 10 pF £20% Cz: 30 pF £20% M™ 4496204 0047107 748 a 176 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series eee ees Der te sO Series Notes (cont): 2. = Ace ose: o3v tg tepr torr 0.18Vcc. D88Vee RESET 9 15ve0-41 i tas ME 4496204 0047108 684 me 177 Hitachi Nene nnnneeneee

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Serial Interface Timing Characteristics (Vcc = 2.7 V to 6 V, GND =0 V, Vaisp = Voc - 40 V to Voc, T, =-20°C to +75°C, unless otherwise specified) During Transmit Clock Output Item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tscye SCK 1 - - tye _ See note 2 1,2 Transmit clock high width scx SCK_— 0.5 tgcye See note 2 1,2 Transmit clock low width tex. SCK 05 — — tscye See note 2 1,2 Transmit clock rise time tsckr SscK — — 300 ons See note 2 1,2 Transmit clock fall time tscxt SCK — — 300 ns_ Seenote2 1,2 Serial output data delay time tpso so - - 600 ns See note 2 1,2 Serial input data setup time tgs; si 1000 — - ns 1 Serial input data hold time tg, si 500 — — ns 1 Refer to notes on the following page. During Transmit Clock Input item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tseye SCK 1 - = toc 1 Transmit clock high width —tscxy «= SCK 0S tse 1 Transmit clock low width tsoxe SCK 05 — — tse 1 Transmit clock rise time tscxr, SCK — — 300 ns 1 Transmit clock fall time tsoxt SCK — — 300. ns 1 Serial output data delay time tpso so - _- 600 ns See note 2 1,2 Serial input data setup time tgs) SI 1000 — - ns 1 Serial input data hold time tus) si 500 — — os 1 Refer to notes on the following page. M@™ 4496204 0047109 510 a 178 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series — um... eee eee veries Notes: 1. Timing of serial interface | sah Veo - 0.5 V (0.88Vca)* (tec | SCK Sscxn 0.4V (0.15Vco)* L toso Veo -0.5V %° Cai ll ssi | tas 0.85Vce " ED a ee Note: * Voc - 0.5 V and 0.4 V are the threshold voltages for transmit clock output. 0.85Vcc and 0.15Vc¢ are the threshold voltages for transmit clock input. 2. Timing load circuit Vec RL =26kQ Test point c R 1§2074@ or equivalent 12kQ 30 pF @@ 4496204 0047110 232 479 Hitachi Nnnnnceenneeeee

HMCS402 Series/HMCS404 Series/HMCS408 Series | Characteristics Curves (Reference Data) Eee | o[ fos = 2 MHz | "71 | yo) e022 MHz y ica

3 Pit iA et ae

tC) 1 2 3 =44 5° 6 pitti Voc (V) Vee (V) Ispy vs. fooe characteristics Isay vs. fose characteristics (crystal and ceramic oscillator) (crystal and ceramic oscillator) re todw sree] | | | | wit tt TT t tt | soo tar -eorctor75c] | | tide CPT PP ry yy LT terry | -oo ttt titi tt) wot At TT TTT eh LETT TTT Tr | LETT Try Boo ttt ttt rit soo PEE ee ee ees eee roi {tT eT 2 oft ST Te CCP eerie Wt [| zeae eee 100 AS. i er Wei tT Ty yy ~lpy (ullup MOS current vs. AGEEEEEEEE Vee characteristics 0 10 in ial ” 4 50 17220010750 [|_| too (pul-down MOS current) vs. a ol I veces v a fn a ee 2 a 4 rs ed a a Oa i el ere Ta = 20°C to +75°C i ee 7, a el = 3 |i Veo= 8 V Fa EL TL eesy ee ee ee oe Ze Pe vcce27v & | | 2 oo = CT a Fe At | Ty Tt Z| a Vg = 27 ° 1 2 3 C) 1 2 3 Vou (Vv) Veo - Vou (V) lou min. vs. Voy characteristics —lox min. vs. (Voc — Vox) characteristics (standard pin) (standard pin CMOS) @™ 4496204 0047111 179 180 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series IMCS 402 Series/HMCS404 Series/HMCS408 Series Characteristics Curves (Reference Data) (cont) = PITTI TTT hy. -6v seeeeeep 7a ‘RRR ‘= 20°C to +75% a s ELE TL Avec ev

2 PCE cc «sv COO

£ CTC aT e 20 aoe e HHA eee §=©60- FEE & Cee esl yao $A € CCT ee vec = 4 Sp’ 4ee- can eR UE /-aaeee a1 Ws |_| CA 1 Joa Veo = 2.7 ; seen OAT ALT Att 0 1 2 3 4 5 0 1 2 3 4 5 Veo - Vou (V) Voc - Vou (V) low min. vs. (Voc — Vou) characteristics ~lox min. vs. (Voc — Vox) characteristics (D4 to Dis pins) (RO to R2 ports) M@™ 4496204 0047112 OOS mm 181 Hitachi a

HMCS402 Series/HMCS404 Series/HMCS408 Series = HMCS404AC Electrical Characteristics DC Characteristics (Voc = 4.5 V to 6 V, GND = 0 V, Vaisp = Voc ~ 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) item Symbol Pin Min Typ Max Unit Test Condition Notes Input high Vin RESET,SCK 0.7Vcc — Voc+0.3 V voltage INTo, INT; si 0.7Vog — Voc +03 V Osc, Veo-05 — Voc+0.3 V Input low Vip RESET, SCK, ~0.3 — 0.22Vg¢ VV voltage INTo, INT; St 0.3 —__0.22Ve¢ osc, 0.3 = 05 Vv Output high Voy, SCK,SO Veo-10 — — Vo slow = 1.0 mA voltage Vec-0.3 — — Vo lo = 0.01 mA Output low Vo, SCK, SO - -— 04 Vo lgp=1.6mA voltage Inpuvoutput |I;_| RESET, SCK, — - 1 HA Vin= 0 Vto Veg 1 leakage INTo, INT, current $1, SO, OSC, Current lec Voc - - 30 MA Voc =5V, 2,6 dissipation fose = 6 MHz in active mode Current = Isayi Vo - — 18 mA — Maximum logic 3,6 dissipation operation In standby Voc =5V, mode fosc = 6 MHz Ispy2 = Voc _ - 1.35 mA Minimum logic 4,6 ‘operation Veo = 5V, foge = 6 MHz Current lstop Veo - — 10 BA Vin(FEST) = 5 dissipation Voc — 0.3 V to Veg, in stop Vin(fRESET) = mode 0Vt00.3V Stop mode Vstop Voc 2 - - v retaining voltage Refer to notes on the following page. Me 4456204 0047113 TH] 182 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. Pull up MOS current and output buffer current are excluded. 2. The MCU is in the reset state. The input/output current does not flow. Test conditions: MCU state + Reset state in operation mode Pin state + RESET, TEST: Voc * Do to D3, R3 to RI: Veg + Dg to Dy5, RO to A2, RAg, RA;: Veisp 3. The timer/counter operates with the fastest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Inpuvoutput: Reset state + Timer A: Divide-by-2 prescaler divide ratio + Timer B: Divide-by-2 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc * Do to Dg, R3 to R9: Veg + Dg to Djs, RO to R2, Ag, RA;: Veisp 4. The timer/counter operates with the slowest clock and input/output current does not flow. Test conditions: MCU state + Standby mode + Inpuvoutput: Reset state + Timer A: Divide-by-2048 prescaler divide ratio + Timer B: Divide-by-2048 prescaler divide ratio + Serial interface: Stop Pin state + RESET: GND + TEST: Voc + Dp to Dg, R3 to R9: Veg + Dg to Djs, RO to R2, RAg, RA; Veisp 5. Pull-down MOS current is excluded. 6. When fogg = x MHz, the current dissipation in operation mode and standby mode are estimated as follows: Maximum value (fos = x MHz) = 7 x max. value (fog¢ = 6 MHz) MH 4496204 0047114 988 mt 183 Hitachi a

NE _—__ EO — a ssSssSSSSSS HMCS402 Series/HMCS404 Series/HMCS408 Series SS _| Input/Output Characteristics for Standard Pins (Vcc = 4.5 V to 6 V, GND = 0 V, Vaigy = Voc - 40 V to Voc, Ty = -20°C to +75°C, unless otherwise specified) item Symbol Pin Min Typ Max Unit Test Condition Note est Gonaition Noto Input high Vi DotoDs, 07Vcg — Vect03 V voltage R3 to RS, RQ eee Input low Ven DotoDs, 0.3 — 022g, Vv voltage R3 to R5, RQ See Output high Voy DotoDs, Vog-10 — — Vi =ly=1.0mA ot voltage 3 to R8 eee DytoDs, Vog-03 — — v sloy=0.01mA 4 R3 to RB Sa Output low Vg, DotoDs, — — 04 v lo, = 1.6 mA voltage R3 to R8& a Input/output I | DotoD3, — - 1 HA Vins OVtOVeg = 2 leakage R3 to R9 current eee Pull-up MOS —Ipy DytoDs, 30 60 120 BA Voo=5V, 3 current R3 to RO Vin = OV i OM Notes: 1. Applied to /O pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to VO pins selected as with pull-up MOS by mask option. mm 44596204 0047115 314 184 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series OOO ees pentes: Input/Output Characteristics for High Voltage Pins (Vcc = 4.5 V to 6 V, GND = 0 V, Vgigp = Voc- = Item Symbol Pin Min Typ Max Unit Test Condition Note est borncitton Note Input high Vay DytoDys, O7Vog — Vogt+03 V voltage Rt, R2, RAg, RA, ne Input low Vy DytoDys, Vog-40 — 0.22Vgg_-V voltage Rt, R2, RAg, RA, - Output high Voy DytoDis Voo-30 — — Vo =loy = 15 mA, voltage Voc =5V +10% Voo-20 — — Vi -loy=9mA ROtoR2 Vog-30 — — Vi Igy = 3 mA, Voc = 5 V #10% NI Voo-20 — — Vi =low = 1.8 mA $Y EB MA Output low Vo, DytoDis, — — Voo-37 Vi Vggp=Voo-40V 1 voltage RO to R2 Dyto Dis, — — Vec-37 V 150k at 2 RO to R2 _Voo - 40 V Inpuvoutput —{ly,| DytoDis, — —- 2 BA Vin=Vog-40V 3 leakage RO to R2 to Veo current RA, RA, a le Pulldown Ipp DytoDys 125 250 500 HA Vgsp=Voo-35V, 1 MOS current RO to R2, Via = Voc RA, RA; ee Notes: 1. Applied to I/O pins selected as with pull-down MOS by mask option. 2. Applied to /O pins selected as without pull-down MOS (PMOS open drain) by mask option. 3. Pulldown MOS current and output butfer current are excluded. M@™ 4496204 OO4711b 750 185 Hitachi Lenn n ncn n nnn cnccn cn

HMCS402 Series/HMCS404 Series/HMCS408 Series _| AC Characteristics (Vcc = 4.5 V to 6 V, GND = 0 V, Vuisp = Voc - 40 V to Voc, Ty = 20°C to +75°C, unless otherwise specified) ftem Symbol Pin Min’ Typ Max Unit TestCondition Note Oscillation frequency {oso Osc, 04 6 6.2 MHz Osc, Instruction cycle time teye 129° 1.33 20 ps Oscillator stabilization tac osc, — — 20. sms 1 time OSC2 External clock high top osc; 70 — — ns 2 with External clock low topt osc; 70 — — os 2 width External clock rise topr osc, - - 20 ns 2 time External clock fall tort osc; — — 2. os 2 time INTo high width ty INT). 2 - - toe 3 INTo low width te INT). 2 a = tye 3 INT; high width ty INT, 2 - ~ tye 3 INT; low width te INT; 2 - - teye 3 RESET high width tasty RESET 2 — = __ tye 4 Input capacitance Cin Allpins — - 15 pF f=1 MHz, Via =0V RESET fall time tastt —- — 20 os 4 Notes: 1. The oscillator stabilization time is the period from when Vcc reaches 4.5 V at power-on until when the oscillator stabilizes, or after RESET goes high by MCU reset to quit the stop mode. At power-on or recovering from stop mode, apply the RESET input for more than tac to meet the necessary time for oscillator stabilization. The circuits used to measure the value are shown below. When using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit constant and stray capacity. Crystal oscillator Ceramic oscillator Cy Cy ose, m osc, c Veta, Ceramic 5S Fy OSC, if osc, Ce Ce GND GND Crystal: 6.0MHz NC-18C Ceramic: CSA6.00MG {Nihon Denpa Kogyo) (Murata) Re 1 MQ42% Ry 1MO42% Cy: 20 pF 420% Cy: 30 pF +20% Cz: 20 pF 420% Cz: 30 pF £20% M@™ 4456204 0047117 697 186 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series I rb sR GDS Series HMCS408 Series Notes (cont): 2. ‘tee Veo-05V 7" tcou top ost osv A tepr topr —— —— 0.7Vcec INT, INT; tn meer f= tastt ME 4496204 0047118 523 187 Hitachi I

HMCS402 Series/HMCS404 Series/HMCS408 Series __| Serial Interface Timing Characteristics (Vcc = 4.5 V to 6 V, GND = 0 V, Vgisy = Voc - 40 V to Voc T, =-20°C to +75°C, unless otherwise specified) During Transmit Clock Output Item Symbol Pin Min Typ Max Unit TestCondition Notes Transmit clock cycle time tscye SCK 1 - = tye _ See note 2 1,2 Transmitcock high widh ison SCK 05 — tye Seonote2 1.2 Transmit clock low width tx. SCK 05 — — tscye See note 2 1,2 Transmit clock rise time tscx, ‘SCK — — 100 ns Seenote2 1,2 Transmit clock fall time tscxt SCK — — 100 ns _ Seenote2 4,2 Serial output data delay time tpso sO — — 250 ns _ Seenote2 1,2 Serial input data setup time — tgg) SI 300 — foal ns 1 Serial input data hold time tus; SI 150 — _ ns 1 Refer to notes on the following page. During Transmit Clock Input ttem Symbol Pin Min Typ Max Unit TestCondition _ Notes Transmit clock cycle time tsoye SCK 1 - - tye 1 Transmit clock high width tgcxy «= SUK OOS tscye 1 Transmit clock low width tex. SCK 05 — — tscye 1 Transmit clock rise time tscxr SCK — — 10 ns 1 Transmit clock fall time tscxt SCK — — 100 ns 1 Serial output data delay time tpso SO — — 250 ns ‘See note2 12 Serial input data setup time tes SI 500 — _ ns 1 Serial input data hold time tus) sl 150 — — ns 1 Refer to notes on the following page. ME 4496204 0047119 4bT 188 Hitachi

—_ — sah Gs 7 > Sari HMCS402 Series/HMCS404 Series/HMCS408 Series Notes: 1. Timing of serial intertace Sseye — ri P| Veo - 2.0 V(0.7Vec)" i SCK tscnn 0.8V(0.22Vcq)" X__ | toso Veo -2.0V * Cov =X [fT ) Issi | THs! ‘O7Vec ° iD mee Note: * Voc ~ 2.0 V and 0.8 V are the threshold voltages for transmit clock output 0.7Vcc and 0.22Vc¢ are the threshold voltages for transmit clock input. 2. Timing load circuit Veo ! RL=2.6kQ Test point ‘ Cc R 1$2074@) or equivalent 12kQ 30 pF ba MB 4495204 0047120 181 189 Hitachi Nennnneee

a HMCS402 Series/HMCS404 Series/HMCS408 Series | Characteristics Curves (Reference Data)

2475 T20°C to +75 ‘st

aol lose = 6 MHz LA max. } i pe a — | A Asse sty Poth i || 1 ~ 0.4) Li TT ith (TT ey eT 0 1 2 3 4 5 6 0 1 2 3 4 5 6 Vee (V) Veo (V) loc vs. Vec characteristics Iggy VS. Voc characteristics (crystal and ceramic oscillator) (crystal and ceramic oscillator) Serr aoc | | | |_| sooltar=po'G 1075.0 | | TT. Pettit tLe LP errr yt 400) COELEL eel wi TATTLE tt CLE TVITT Tt rr Fa of 2. CLELLLELL gy tip. Fem we. Sl CEE au Basolf COOL TVit ty yy yy | 100 “7 7 nin. CEC ee ff ee CCC EER pA (se ee ee ABEEEEEEEE ~Ipu (pull-up MOS current) vs. Voc — Veisp (V) Voc characteristics lpp ee ar caren) va. Maas) characteris Sr earcw.ee [| ‘| Wee Nee tT TT vec 6v a wo OY vec = 5 ¥ Pag a a A al FS a (Ae RPE Lew

5 Ae 23 Lr Woo = 8

yea 2? A eer aa 3 imp Zan i a Z| oO 1 2 3 oO 1 2 3 Vor (V) Voc — Vou (¥) lo min. vs, Voy, characteristics —lon min. vs. (Voc — Vou) characteristics (standard pin) (standard pin CMOS) Mi 4496204 0047121 018 190 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series EA Series! HMCS404 Series/HMCS408 Series Characteristics Curves (Reference Data) (cont) = SCT TET TTT T Tre «6 v | HEE ents ; Sassen edie rere] Lene ze HOY REESE el € Geo 4 A ||| © Coo t LE eee € oye Onna aezan Fo HEH BLT ys 5, / oy cones sccm) ARTE CAE rae Viti Tri y Tyr) ALT 0 1 2 3 4 5 oO 1 2 3 4 5 =loy min. vs. haan 2, ractoristice lox min. vs. Pr arctan (Dg to Dys pins) (RO to R2 ports) ME 4456204 OO4?L22 TSH i 191 Hitachi eee

a HMCS402 Series/HMCS404 Series/HMCS408 Series HMCS404C/CL/AC Option Lis [Sects [Cid ease check off th cations and emer -outomer | Please check off the appropriate applications enter the necessary information. Department Name 5-V operation: OHMCS404C (HD614043) ROM code name i t—~—SY 3-V operation: CHMCS404CL (HD614046) i type number High speed operation: TI HMCS404AC (HD614049) | | (Hitachi's entry) 1. VO option Note: 1/0 options masked by [ij are not available. atelclole| jalelofole| [oz | ae [vo [ee ase | | fo TT [os ® vo fee] [ss | Po TT [oo ee Rao | eS 05 ee [Rat vO | Dé (oe 2s as | | os 07 2 (ro Peer | a | [vo TT [oe | g | vo eyo Taso | 0 Po fT ee a po | § [wo eae R52 ee a on $0 ba As | 2 | vo | TT o2 |= fo be fd ro |e }o | | | Po [vo fo fee BE fpo TT hT hcT hr Dis [vo Fotoaeet | | [re |S {oT TT Poy R70, =[O | pe) ro [Rot [0 Ettisieal | [o | | | aes Roz (oO Eades) | [oO | | a ea fo), PO] pg be} )= Lo] Se SS fo TT Tt ee | Ri2_| 3 [vO Eoleos| | | R90 re ee 2 [as] 2 fof eT itr FF fT Rei) * a _| R83 MM Eieeres | | | Rao | Se Eizo | | A: Without pull-up MOS (NMOS open drain) B: With pull-up MOS C: CMOS (not to be used as input) D: Without pull-down MOS (PMOS open drain) E: With pull-down MOS MB 4496204 0047123 590 192 Hitachi

~ " Vd Soviac/ , HMCS402 Series/HMCS404 Series/HMCS408 Series re 2. RAINdisp 3. Divider (DIV) Note: If even one high-voltage pin is selected with VO option E, pin RA1/Vdisp must be selected to function as Vdisp. 4. ROM code media Please specify the first type below (the upper bits and lower bits are mixed together), when using the EPROM on-package microcomputer type (including ZTAT™ version). CEPROM: The upper bits and lower bits are mixed together. The upper five bits and lower five bits are CEPROM: The upper bits and lower bits are separated. The upper five bits and lower five bits are Programmed to different EPROMS. 5. Oscillator (OSC1 and OSC2) CHMCS404c CHMCS404CL CHMCS404AC (5-V operation) (3-V operation) (high speed operation) O Crystal oscillator OCrystat oscillator O Crystal oscillator 6. Stop mode 7. Package [Buses J M@™ 4496204 0047124 6c? 193 Hitachi a

a HMCS402 Series/HMCS404 Series/HMCS408 Series ME inicswscicu/ac tectrcal Characerhtis =SOSOS*=~=CS~S*~S HMCS408C/CL/AC Electrical Characteristics DC Characteristics (GND = 0 V, Vgisp = Voc ~ 40 V to Vecy Ty = -20°C to +75°C, HMCS408C: Voc = 3.5 V to 6 V, HMCS408CL: Voc = 2.5 V to 6 V, HMCS408AC: Vcc = 4.5 V to 6 V) Input high Vin RESET, 0.8Voc Voc +0.3 V voltage SCK, R3,/INTo, ROVINT) SI 9.%Veo Vo #038 VO OSC; Voc -0.5 Vec+0.3 V_ HMCS408C/AC eo = 93 Veo 10.3 VY HMCSAOBCL Input low Vit RESET, -0.3 0.2Veg v voltage SCK, R3Z/INTo, R3g/INT; a Seo OS Moo osc; -03 0.5 V__HMCS408C/AC cs Output high Von, SCK, Voce - 1.0 Vv --HMCS408C/AC: voltage so alo = 1.0 MA Voc - 0.5 Vv HMCS408C/AC: lop = 0.5 mA; HMCS408CL: lop = 0.3 MA Output low Vo. SK, - 0.4 V_-HMCS408C/AC: voltage so Io = 1.6 mA; HMCS408CL: —— te mA Inputoutput [he | RESET, — 1 WA Vig =0V to Vog 1 leakage SK current R3,/INTo, R3y/INT;, Si, SO, osc, Current lec Voce = 23 mA —HMCS408C: 2,5 dissipation Voo = 5 V: in active fosc = 4 MHz, + 8, or mode _ _ fosc = 2 MHz, +4 = 1 mA HMCS408CL: 2,5 Voc = 3V; fosc = 4 MHz, + 16, or fosc = 2 MHz, +8 — 45 mA HMCS408AC: 2,5 Veo = 5 V; fosc = 4 MHz, + 4, or fosc = 8 MHz, +8 me 4496204 0047125 763 mm 194 Hitachi

—_—. SSS HMCS402 Series/HMCS404 Series/HMCS408 Series wcwscunccusc, il DC Characteristics (GND = 0 V, Vaigp = Voc - 40 V to Voc, Ty = -20°C to +75°C, HMCS408C: Voc = 3.5 V to 6 V, HMCS408CL: Vc = 2.5 V to 6 V, HMCS408AC: Voc = 4.5 V to 6 V) (cont) item Symbol Pin Min Typ Max Unit Test Condition Notes YP tt Test Condition Notes Current 'spy Veo - ad 1.2 mA HMCS408C: 35 dissipation Voc = 5 V; in standby fosc = 4 MHz, + 8 or mode fosc = 2 MHz, + 4 - — 05 mA HMCS408CL: 3,5 Voc =3V; fosc = 4 MHz, + 16, or fosc = 2 MHz, +8 - - 1.7 mA HMCS408AC: 35 Voc = 5 V; tose = 4 MHz, + 4, or fosc = 8 MHz, +8 Current Istop Veo. = — 10 HA HMCS408C/AC: 4 dissipation in Vin(TEST) = Voc - 0.3 V ‘stop mode to Veo: Veo, Vin(RESET) = OVt00.3V HMCS408CL: Vin(fEST) = Voc - 0.2 V to Voc; Veo: ViniReseT) = OVt00.2V Stopmode Vgtop Vg 2 - = Vv retaining voltage Notes: 1. Excluding pull up MOS current and output buffer current. 2. The MCU is in the reset state. Input/output current does not flow. + MCU in reset state, operation mode + RESET, TEST: Voc * Dp to Dg, R3 to R9: Voc + Dg to Dys, RO to R2, RAg, RAY: Vaisp 3. The timer/counter operates with the fastest clock. input/output current does not flow. + MCU in standby mode * Input/output in reset state * Serial interface: Stop + RESET: GND + TEST: Voc + Do to Dg, R3 to RY: Vog + Dg to Dy5, RO to R2, RAg, RA: Vaion 4. Excluding pull-down MOS current. 5. When fosc = x MHz, estimate the current dissipation as follows: HMCS408C/AC: Maximum value at x MHz = (x/4) x (max. value at 4 MHz) HMCS408CL: Maximum value at x MHz = (x/2) x (max. value at 2 MHz) MB 4496204 0047126 LTT 195 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series eee eee _| Input/Output Characteristics for Standard Pins (GND = 0 V, Vgisp = Vcc - 40 V to Vecs Ty = -20°C to +75°C, HMCS408C: Voc = 3.5 V to 6 V, HMCS408CL: Vcc = 2.5 V to 6 V, HMCS408AC: Voc = 4.5 to6V) ttem Symbol Pin Min Typ Max Unit Test Condition Note Input high Vin, DotoD3, 0.7Vog — Veo +0.3 V voltage R3 to R5, ee Input low Vi DotoDs, ~0.3 - 0.3Vec OV voltage R3 to RS, Ro ee Output high Von. Doto D3, Voo-1.0 — = Vv -HMCS408C/AC: 1 vottage Sto FB to mA DptoD3, Voc-0.5 — = Vv HMCS408C/AC: 1 R3to RB low = 0.5 mA HMCS408CL: Output low Vo. Dy toD3, — = 0.4 Vv HMCS408C/AC: vottage R3to RB lo, = 1.6 mA HMCS408CL: lon = 0.4mA Inputoutput — {In| DytoD3, — - 1 PA Viz OVI0Veg 2 leakage R3 to RO current Pull-up MOS = =Ipy DgtoD3, 30 60 150 HA Voge 5 V, 3 current R3 to RO Vin 2 0V DotoDs, 3 cr) yA HMCS40ECL. 3 R3 to RO only: Voc =3V, Vin = 0V Notes: 1. Applied to /O pins selected as CMOS output by mask option. 2. Pull-up MOS current and output buffer current are excluded. 3. Applied to 1/0 pins selected as with pull-up MOS by mask option. mm 449b204 0047227 53b Ml 196 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series °,Vew=Vec-0 Vive, «CU Input/Output Characteristics for High Voltage Pins (GND = 0 V, Vgisp = Voc - 40 V to Veo T, = -20°C to +75°C, HMCS408C: Vcc = 3,5 V to 6 V, HMCS408CL! Vcc = 2.5 V to 6 V, HMCS408AC: Voc = 4.5 V to 6 V) Item Symbol Pin Min Typ Max Unit Test Condition Note est hronition Note Input high Vy DgtoDy5, O7Voq — Veco +0.3 V voltage Rt, R2, Input low Vic DgtoDyg, Voo-40 — 0.3Veg OV voltage R1, R2, Output high Voy DgtoDig Voc-3.0 — — Vo =lon = 15 mA, voltage Voc = 5 V 420% Voc -2.0 — = Vo lo = 10 mA, 7 ee Voc =5V220% Veo -1.0 — _- v HMCS408C/AC: “log =4 mA HMCS408CL: wloy = 2.5 mA ROtoR2 Vgg-3.0 — = Vo =loy = 3 mA, Voc = 5 V 420% NO ON EO Veo - 2.0 — = Vo =lon = 2 mA, Voc = 5 V 20% Ne SV E20% Veo-1.0 — = Vv HMCS408C/AC: lo = 0.8 mA HMCS408CL: . “lon = 0.5 mA Output ow Vo. Dy to Dis, — = Voo-37 Vo Vgisp = 1 voltage RO to R2 : Voc -40¥ Dg to Dis, — - Veo-37 Vv 150 kQ at 2 RO to R2 Voc - 40 V a Inpuvoutput [Ii] Og to Dis, — _ 20 HA Vin=Veg-40V 3 leakage RO to R2, to Veg current RAp, RAy ae Pulldown Ipp Dg toDys, 125 250 600 HA Viisp = 1 MOS current RO to R2, Voc - 35 V, RA, RA; Vin = Voc Notes: 1. Applied to /O pins selected as with pull-up MOS by mask option. 2. Applied to 1/0 pins selected as without pull-up MOS (PMOS open drain) by mask option. 3. Pull-down MOS current and output butter current are excluded. ME 4456204 0047128 472 me 197 Hitachi Neen nneenreeeee

—_—SeSeSeSeeSeSSSSSSSSSsSSsssSsSssSSSSSsSSSSSSSSSsSSSSsSSSsSHHsseseseses HMCS402 Series/HMCS404 Series/HMCS408 Series ahahaha nthich nce = AC Characteristics (GND = 0 V, Vaisp = Voc - 40 V to Vcc, Ty = -20°C to +75°C, HMCS408C: Voc = 3.5 V to 6 V, HMCS408CL: Vcc = 2.5 V to 6 V, HMCS408AC: Vcc = 4.5 V to 6 V) Item Symbol Pin Min Typ Max Unit ‘Test Condition Note Oscillation frequency fosc OSC, 04 4 4.5 MHz HMCS408C: Osc divide-by-8 02 2 225 MHz HMCS408C: divide-by-4 os 4 45 MHz HMCS408CL: divide-by-16 04 2 2.25 MHz HMCS408CL: divide-by-8 02 4 45 MHz HMCS408AC: divide-by-4 04 8 9 MHz HMCS408AC: divide-by-8 Instruction cycle time teye 178 2 20 us HMCS408C 355 4 20 us HMCS408CL 089 1 20 us HMCS408AC Oscillator stabilization tac osc, — — 20 ms HMCS408C/AC 1 time OSC - — 60 ms ___HMCS408CL_ 1 External clock high tops Osc, 92 — — ns HMCS408C: 2 and low widths top divide-by-8 HMCS408CL: divide-by-16 HMCS408AC: divide-by-4 203 — %— ns HMCS408C: 2 divide-by-4 HMCS408CL: divide-by-8 41 — — ns HMCS408ac: divide-by-8 Me 4496204 0047129 305 198 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series eer rE OOS ETHES. AC Characteristics (GND = 0 V, Vis = Voc - 40 V to Voc, Ty = -20°C to +75°C, HMCS408C: Voc= 3.5 V to 6 V, HMCS408CL: Voc = 2.5 V to 6 V, HMCS408AC: Voc = 4.5 V to 6 V) (cont) tem Symbol Pin Min Typ Max Unit TestCondition Note rere Max Unit. Test Condition Note External clock rise torr osc; — — 2 os 2 time External clock fall tort osc, — = 20 ns 2 time INT high width tia INT, 2 = - tye 3 TNTp low width ti INT, 2 -- eye 3 INT; high width tin INT; 2 - - tye 3 a TNT, low width tie INT, 2 TT tye 3 RESET high width tasTH RESET 2 = = tye 4 Input capacitance Cin Allpins — - 15 pF f= 1 MHz, Vin = OV een OV RESET fall time tastt — = — 20 ms HMCS408c/AC 4 _ _ 15 ms HMCS408CL 4 ——_J AAA Oe Notes: 1. The oscillator stabilization time is period from when Voc reaches its minimum allowable voltage at power-on until when the oscillator stabilizes, or after RESET goes high. At power-on or recovering from stop mode, apply the RESET input for more than tag to meet the necessary time for oscillator stabilization. When using a crystal or ceramic oscillator, consult with the crystal and ceramic oscillator manufacture since the oscillator stabilization time depends on the circuit con- stant and stray capacitance. 2. See figure 25. 3. See figure 26. 4, See figure 27. MB 4496204 0047130 O20

199 Hitachi

a

HMCS402 Series/HMCS404 Series/HMCS408 Series _| Serial Interface Timing Characteristics (GND = 0 V, Vgigp = Voc - 40 V to Voc, Ty = -20°C to 475°C, HMCS408C: Voc = 3.5 V to 6 V, HMCS408CL: Vc = 2.5 V to 6 V, HMCS408AC: Voc = 4.5 V to 6 V) During Transmit Clock Output ttom Symbol Pin Min Typ Max Unit ‘Test Condition Notes Transmit clock cycle tscye SCK 1 - = tye 1,2 tment Transmit clock high tscKH: SCK 05 - — tcye 1,2 andtow width tom Transmit clock rise tsckr: SCK — - 100 ons HMCS408C/AC 1,2 and fall times tect =O HMeSapecL 2 Serialoutputdata.—stpso.—=S—(‘ SOC Ss ~—SiSms~=SHMCSAOBC 1,2 delay time — — 600 ns -HMCS408CL_—1,2 — — 250. ms HMCS40BAC 1,2 | Serial input data tgs si 500 — +#— ns HMCS40BC 1 setup time joo — — ns HMCS40BCL 1 300. — = — ns HMCSé08AC_ 1 Serial input data tus) sl 150. — | — ns HMCS40BC/AC 1 hold time 500 — — ns HMCS40BCL 1 Refer to notes on the next page. MB 4496204 004713) Th? 200 Hitachi

nad) Se HMCS402 Series/HMCS404 Series/HMCS408 Series Serial Interface Timing Characteristics (GND =O, Vang =Vee40 Vw Veot,-2vcw —dUmA Serial Interface Timing Characteristics (GND = 0 V, Vgigp = Voc ~ 40 V to Voc, Ty = -20°C to +75°C, HMCSA08C: Vcc = 3.5 V to 6 V, HMCS408CL: Voc = 2.5 V to 6 V, HMCS408AC: Vcc = 4.5 V to 6 V) During Transmit Clock Input Htem Symbol Pin Min Typ Max Unit ‘Test Condition Notes oan TP Max Unit Test Condition Notes Transmit clock cycle tscye SCK 1 - - toe 1 time Transmit clockhigh tena, SG Transmit clock high tsckH SCK 05 - - tgcye 1 and low width tscx. Transmitcockise. ke BERS OS Transmit clock rise tscKr SCK — - 100 ns HMCS408C/AC 1 and fall times tscxt _ — 300 ns HMCS408CL 1 Serial outputdata—_togo sO. — — 300. ns HMCS40BC 1,2 ° TES IMOSA0BC 12 delay time — = 600 ns ~~ HMCSaosc..—t,2 ES IMOSAOBCL 12 - — _ 250 ns HMCS408AC— 1,2 Ts HMC SAOBAC 1,2 Serial input data tssi si 500 = __ns_HMCSa08c 1 Setup time 1000 — — ns HMCS408CL 1 300 — — ns HMCS408AC 1 SMC S4OBAC Serial input data tus! sl 150 — — ns HMCS408C/AC 1 : IMO SAOBCIAG 1 hold time 500 — = — ns HMCS40BCL. 1 Notes: 1. Seefigure28. Notes: 1. See figure 28. 2. See figure 29. M™ 4496204 0047132 973 a 201 Hitachi Cen nc ccc cnnnncccnc

a HMCS402 Series/HMCS404 Series/HMCS408 Series MB cmoasc8828!™F™F™O™~CSC<CSstiti‘itstSS HMCS408C/CL/AC Option List Date of order_ Customer Please check off the appropriate applications and enter 5-V operation: COHMCS408C (HD614081) ROM code name (—~SY 3-V operation: CHMcs408cL (HD614086) | | S\\type number High speed operation: CD HMCS408AC (HD614089) | | (Hitachi's entry) 1. VO option Note: 1/0 options masked by [iJ are not available. g oer [aa | [vot | | [on | 6 [0 Pe | es |e [vo | | | ea [oe | * | oO Eee afo TTT Ea ee: eee | bis v0 Feel | _| Res ne EE R7 Lo | | | Roz [0 ae Pet | rn ee [Ros] eS [ea | [Lo | | | oe R23 remit | ese Use checklist Ea Sleesto =) s RAI disp ‘A; Without pull-up MOS (NMOS open drain) B: With pull-up MOS C: CMOS (not be used as input) D: Without pull-down MOS (PMOS open drain) €: With pull-down MOS 4496204 0047135 b0c 204 Hitachi

HMCS402 Series/HMCS404 Series/HMCS408 Series OE Berne s INNES SerrES. 2. RA1Ndisp 3. Divider (DIV) =

0 RAI: Without pull-down MOS (D) Divider 4 [ se | ww |

Note: if even one high-voltage pin is selected with HMCS408CL Peed Oo | o | VO option E, pin RA1/Vdisp must be [HMcseoeac | ay selected to function as Vdisp. nwosweac | O | oO [ae 4, ROM code media Please specity the first type below (the upper bits and lower bits are mixed together), when using the EPROM on-package microcomputer type (including ZTAT™ version). CO EPROM: The upper bits and lower bits are mixed together. The upper five bits and lower five bits are C EPROM: The upper bits and lower bits are separated. The upper five bits and lower five bits are Programmed to different EPROMS. 5. System oscillator (OSC1 and OSC2) CHMCS408C. OCHMCS408CL OHMCS408AC (5-V operation) (3-V operation) _|___ (high speed operation) Ceramic oscillator O.Ceramic oscillator Ci Crystal oscillator Crystal oscillator 6. Stop mode 7. Package Doras ME 4496204 0047136 549 mm 205 Hitachi Cenc nnnnn nn