EM78468
8-BIT Microcontroller
WDT setting flowchart
START
N
Use WDT function ?
Y
Enable WDT function : set bit 7 of
Code option Word 0 to "0"
Disable WDT function : set bit 7 of
Code option Word 0 to "1"
Setting WDT prescaler
(IOC81 register)
WDTtime= prescaler*256/Fs
Fs: sub-oscillator frequency
Enable WDT
(bit 3 of IOC81)
END
TCC setting flowchart
START
from External Input
from Instruction Cycle
TCC clock source?
External/ instruction cycle
*set clock source from external TCC pin
(set bit 4 of IOC71 to "1")
*choose TCC clock source from instruction cycle
(set bit 4 of IOC71 to "0")
*set P5.6/TCC for TCC input Pin
*choose TCC prescaler
(set by bit 0 to bit 3 of IOC71)
( set bit 2 of RE to "1" and set bit 6 of IOC 50 to "1")
*choose TCC pin operation edge
(set by bit 4 of IOC71)
*choose TCC prescaler
(set by bit 0 to bit 3 of IOC71)
* Enable TCC interrupt Mask
(set bit 0 of IOCF0 to "1")
*Clear TCC interrupt Flag
(set bit 0 of RF to "0")
Enable TCC to start count
(use ENI instruction)
END
Product Specification (V1.1) 04.11.2005
(This specification is subject to change without further notice)
• 29