APPLICATION
2.2 Timer
2-13
3802 GROUP USER’S MANUAL
255
PREX
Prescaler X (Address : 2416)
255
TX
Timer X (Address:2516)
Set “division ratio – 1”
Timer X interrupt enable bit : Interrupt enabled
ICON1
Interrupt control register 1 (Address : 3E16)
Timer X interrupt request bit
(becomes “1” every 250 ms)
IREQ1
Interrupt request register 1 (Address : 3C16)
0
Timer X operating mode bits : Timer mode
TM
Timer XY mode register (Address : 2316)
0
1
Timer X count stop bit : Count stop
Set to “0” at starting to count.
1
b7
b0
b7
b0
b7
b0
b7
b0
b7
b0
Fig. 2.2.11 Setting of related registers [Clock function]