|
HD6433308 Datasheet, PDF (333/349 Pages) Hitachi Semiconductor – Hitachi Single-Chip MicroComputer | |||
|
◁ |
TCSRâTimer Control/Status Register
HâFFC9
TMR0
Bit
7
6
5
4
3
2
1
0
CMFB CMFA OVF
â OS3*2 OS2*2 OS1*2 OS0*2
Initial value 0
0
0
1
0
0
0
0
Read/Write R/(W)*1 R/(W)*1 R/(W)*1 â R/W R/W R/W R/W
Output Select
0 0 No change on compare-match A.
0 1 Output â0â on compare-match A.
1 0 Output â1â on compare-match A.
1 1 Invert (toggle) output on compare-match A.
Output Select
0 0 No change on compare-match B.
0 1 Output â0â on compare-match B.
1 0 Output â1â on compare-match B.
1 1 Invert (toggle) output on compare-match B.
Timer Overflow Flag
0 Cleared when CPU reads OVF = â1,â then writes â0â in OVF.
1 Set when TCNT changes from HâFF to Hâ00.
Compare-Match Flag A
0 Cleared when CPU reads CMFA = â1,â then writes â0â in CMFA.
1 Set when TCNT = TCORA.
Compare-Match Flag B
0 Cleared from when CPU reads CMFB = â1,â then writes â0â in CMFB.
1 Set when TCNT = TCORB.
*1 Software can write a â0â in bits 7 to 5 to clear the flags, but cannot write a â1â in these bits.
*2 When all four bits (OS3 to OS0) are cleared to â0,â output is disabled.
325
|
▷ |