
HARDWARE CONFIGURATION
2-42
TIME-BASE TIMER
Description of Registers
The detail of time-base timer control register (TBCR) is described below.
(1) Time-base timer control register (TBCR)
Address: 000A
H
Address: 000A
H
Initial value
00---000
B
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
TBOF
TBIE
—
—
—
TBC1
TBC0
TBR
(R/W)
(R/W)
(R/W)
(R/W)
(W)
TBCR
[Bit 7] TBOF: Interval timer overflow bit
When writing, this bit is used to clear the interval timer overflow flag.
Interval timer overflow flag cleared
No operation
0
1
When reading, this bit indicates that an interval timer overflow has occurred.
Interval timer overflow not occurred
Interval timer overflow occurred
0
1
1 is read when the Read Modify Write instruction is read. If the TBIF bit is set
to 1 when the TBIE bit is 1, an interrupt request is output. This bit is cleared
upon reset.
[Bit 6] TBIE: Interval-timer interrupt enable bit
This bit is used to enable an interrupt by the interval timer.
Interval interrupt disabled
Interval interrupt enabled
0
1
[Bit 2 and 1] TBC1, TBC2: Interval time specification bit
These bits are used to specify interval timer cycle.
0.26 ms
0.51 ms
1.02 ms
0.524 s
0
0
1
1
0
1
0
1
2
11
/f
CH
2
12
/f
CH
2
13
/f
CH
2
22
/f
CH
TBC1
TBC0
Interval time
f
CH
: main clock frequency
8 MHz source clock
[Bit 0] TBR: Time-base timer clear bit
This bit is used to clear time-base timer.
Time-base timer cleared
No operation
0
1
1 is always read when this bit is read.
Содержание F2MC-8L Series
Страница 121: ...INSTRUCTIONS 4 7 4 5 F2MC 8L FAMILY INSTRUCTION MAP ...
Страница 123: ...5 MASK OPTIONS ...
Страница 125: ...APPENDIX ...