ml670100 Oki Semiconductor, ml670100 Datasheet - Page 84

no-image

ml670100

Manufacturer Part Number
ml670100
Description
Ml670100 Is A High-performance 32-bit Microcontroller
Manufacturer
Oki Semiconductor
Datasheet
6.2
6.2.1
6.2.2
6-4
Watchdog Timer Control Register (WDTCON)
The Watchdog Timer Control Register (WDTCON) is an 8-bit write-only register for starting
the Watchdog Timer (WDT) and clearing it to 0. In its watchdog timer configuration, writing
0x3C to this register starts the WDT internal counter and then alternately writing 0xC3 and
0x3C clears that counter.
In its interval timer configuration, the first write of 0x3C to this register starts the counter, and
subsequent writes of the same value clear the counter.
The Time Base Generator Control Register (TBGCON) is an 8-bit read/write register that
controls Time Base Generator (TBG) operation. After a system reset, this register contains
0x00, which selects 32TBCCLK as the Watchdog Timer (WDT) count clock.
Modifying this register requires two operations: writing 0x5A and then writing the new value.
Without the first, the second is ignored. Writing the new value into this register automatically
clears the WDT internal counter to 0.
Control Registers
Time Base Generator Control Register (TBGCON)
7
0
Figure 6.3 : Time Base Generator Control Register (TBGCON)
6
0
Figure 6.2 : Watchdog Timer Control Register (WDTCON)
7
5
0
A "0" indicates a reserved bit. Always write "0" to it.
Writing "1" produces unreliable operation.
ITEN
6
4
ITM
5
3
4
2
0
3
1
WDCKS
2
0
WDCKS Watchdog Timer
00
01
10
11
0
1
0
1
1
Watchdog timer configuration
Interval timer configuration
Interval timer count disabled
Interval timer count enabled
(WDT) count clock
32TBCCLK
64TBCCLK
128TBCCLK
256TBCCLK
0

Related parts for ml670100