IBM MiEM78P468L, MiEM78P468N Bit Microcontroller WDT Setting Flowchart, TCC Setting Flowchart

Models: MiEM78P468L MiEM78P468N

1 82
Download 82 pages 5.93 Kb
Page 30
Image 30

EM78P468N/EM78P468L

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"

Setting WDT prescaler

(IOC81 register)

Disable WDT function : set bit 7 of Code option Word 0 to "1"

WDTtime= prescaler*256/Fs

Fs: sub-oscillator frequency

Enable WDT

(bit 3 of IOC81)

END

TCC Setting Flowchart

START

from External Input

TCC clock source?

External/ instruction cycle

*set clock source from external TCC pin (set bit 4 of IOC71 to "1")

*set P5.6/TCC for TCC input Pin

( 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")

from Instruction Cycle

*choose TCC clock source from instruction cycle (set bit 4 of IOC71 to "0")

*choose TCC prescaler

(set by bit 0 to bit 3 of IOC71)

 

Enable TCC to start count

 

 

(use ENI instruction)

 

 

 

 

 

 

 

 

 

END

 

 

 

 

24

 

 

Product Specification (V1.5) 02.15.2007

(This specification is subject to change without further notice)

Page 30
Image 30
IBM MiEM78P468L, MiEM78P468N manual Bit Microcontroller WDT Setting Flowchart, TCC Setting Flowchart