HD6475328-CP10 HITACHI [Hitachi Semiconductor], HD6475328-CP10 Datasheet - Page 255

no-image

HD6475328-CP10

Manufacturer Part Number
HD6475328-CP10
Description
original Hitachi CMOS microcomputer unit (MCU)
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet
Coding Examples:
To clear TCNT to 00:
To write H'4F in TCSR:
2. Reading TCNT and TCSR: The read addresses are H'FFEC for TCSR and H'FFED for
Table 13-2 Read Addresses of TCNT and TCSR
Read Address
H'FFEC
H'FFED
13.3 Operation
13.3.1 Watchdog Timer Mode
The watchdog timer function begins operating when software sets the WT/IT and TME bits to 1 in
the TCSR. Thereafter, software should periodically rewrite the contents of the timer counter
(normally by writing H'00) to prevent the count from overflowing. If a program crash allows the
timer count to overflow, the watchdog timer requests a nonmaskable interrupt (NMI) as shown in
figure 13-3.
NMI requests from the watchdog timer have the same vector as NMI requests from the NMI pin,
so the NMI interrupt-handling routine must check the OVF bit in the TCSR to determine the
source of the interrupt.
TCNT, as indicated in table 13-2.
These two registers are read like other registers. Byte access instructions can be used.
Register
TCSR
TCNT
MOV.W #H'5A00, @H'FFEC
MOV.W #H'A54F, @H'FFEC
240

Related parts for HD6475328-CP10