TUxyCON1
‘b01
(level-triggered).0
.0
) or if the module is frozen during debugging, then the timer
clock has been disabled; the effect of setting CLR or CAPT command bits depends on
the clock synchronization setting. If CSYNC = 0
, the
corresponding action is performed immediately. If CSYNC = 1
, the
corresponding action is delayed until the clock resumes (even in Frozen state
while debugging). See also Timer Counter and Capture Registers.0
and reading TUxyCR.Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RUN | OSEN | CLR | LIMIT | CAPT | PRIF | ZIF | CIF | ||
Access | R | R/W | R/S/HC | R/W | R/S/HC | R/W/HS | R/W/HS | R/W/HS | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Timer Run/Stop Status (Read-Only)(1,2)
Value | Description |
---|---|
1 | Timer is running (counting) and not being held in Reset by ERS (per EPOL bit selection) |
0 | Timer is not counting or is held in Reset by ERS |
Value | Description |
---|---|
1 | The counter operates in One Shot mode; ON will be cleared by a Stop condition |
0 | The counter can be repeatedly started by the ERS signal |
Timer Counter “Clear” Command(5,6)
0
’ has no effect.Value | Description |
---|---|
1 | Once set, the timer counter and the internal prescaler counter are cleared, then this bit is cleared (the captured value of TUxyCR is unchanged) |
0 | Clearing action is complete (or not started) |
Limit Mode Enable(4)
‘b00
(Continuous mode) and counter equals PR.Value | Description |
---|---|
1 | Counter value remains equal to PR (unchanged); no additional interrupts occur |
0 | Counter value goes tor PR+1 when clocked |
Timer “Capture” Command(5,6,7,8,9)
0
’ has no effect.Value | Description |
---|---|
1 | Once set, the counter value is captured in TUxyCR and this bit is cleared |
0 | TUxyCR update is complete (or not started) |
Period Match Interrupt Flag(10,11,12)
Value | Description |
---|---|
1 | The counter has incremented from PR-1 to PR |
0 | The counter has not incremented from PR-1 to PR since this bit was last cleared |
Value | Description |
---|---|
1 | The counter has reset or rolled over to zero |
0 | The counter has not reset or rolled over since this bit was last cleared |