9. Timers
Rev.3.00 Jul. 19, 2007 page 233 of 532
REJ09B0397-0300
Bits 2 to 0—Clock Select L (CKSL2 to CKSL0):
Bits 2 to 0 select the input to TCFL from four
internal clock signals or external event input.
Bit 2: CKSL2
Bit 1: CKSL1
Bit 0: CKSL0 Description
0
*
*
External event (TMIF). Rising or falling edge is
counted
*
1
(initial
value)
1 0 0 Internal
clock:
φ
/32
1
Internal
clock:
φ
/16
1
0
Internal
clock:
φ
/4
1
Internal
clock:
φ
/2
Legend:
*
Don't care
Note: 1. The edge of the external event signal is selected by bit IEG3 in the IRQ edge select
register (IEGR). See section 3.3.2, Interrupt Control Registers for details on the IRQ
edge select register. Note that switching the TMIF pin function by changing bit IRQ3 in
port mode register 1 (PMR1) from 0 to 1 or from 1 to 0 while the TMIF pin is at the low
level may cause the timer F counter to be incremented.
Timer Control/Status Register F (TCSRF)
Bit
7 6 5 4 3 2 1 0
OVFH
CMFH
OVIEH
CCLRH
OVFL
CMFL
OVIEL
CCLRL
Initial
value 0 0 0 0 0 0 0 0
Read/Write R/W
*
R/W
*
R/W R/W R/W
*
R/W
*
R/W R/W
Note:
*
Only 0 can be written to clear flag.
TCSRF is an 8-bit read/write register. It is used for counter clear selection, overflow and compare
match indication, and enabling of interrupts caused by timer overflow.
Upon reset, TCSRF is initialized to H'00.
Bit 7—Timer overflow flag H (OVFH):
Bit 7 is a status flag indicating TCFH overflow (H'FF to
H'00). This flag is set by hardware and cleared by software. It cannot be set by software.
Bit 7: OVFH
Description
0
Clearing condition:
After reading OVFH = 1, cleared by writing 0 to OVFH
(initial value)
1 Setting
condition:
Set when the value of TCFH goes from H'FF to H'00
Содержание F-ZTAT H8 Series
Страница 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Страница 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Страница 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Страница 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Страница 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Страница 466: ...16 Electrical Characteristics H8 3854 Group Rev 3 00 Jul 19 2007 page 440 of 532 REJ09B0397 0300...
Страница 561: ......