When the Synchronize Update bit (SYNCUPD) in the Control A register (TCBn.CTRLA) is written to '1',
the TCB counter will restart when the TCA counter restarts.
20.3.4
Events
The TCB is an event generator. Any condition that causes the CAPT flag in TCBn.INTFLAGS to be set
will also generate a one-cycle strobe on the event channel output.
The peripheral accepts one event input. If the Capture Event Input Enable bit (CAPTEI) in the Event
Control register (TCBn.EVCTRL) is written to '1', incoming events will result in an event action as defined
by the Event Edge bit (EDGE) in TCBn.EVCTRL. The event needs to last for at least one CLK_PER cycle
to guarantee that it is recognized.
If the asynchronous mode is enabled for Single-Shot mode, the event is edge triggered and will capture
changes on the event input shorter than one system clock cycle.
20.3.5
Interrupts
Table 20-2. Available Interrupt Vectors and Sources
Name Vector Description Conditions
CAPT TCB interrupt
When an interrupt condition occurs, the corresponding interrupt flag is set in the Interrupt Flags register of
the peripheral (peripheral.INTFLAGS).
An interrupt source is enabled or disabled by writing to the corresponding enable bit in the peripheral's
Interrupt Control register (peripheral.INTCTRL).
An interrupt request is generated when the corresponding interrupt source is enabled and the interrupt
flag is set. The interrupt request remains active until the interrupt flag is cleared. See the peripheral's
INTFLAGS register for details on how to clear interrupt flags.
20.3.6
Sleep Mode Operation
TCBn is by default disabled in Standby sleep mode. It will be halted as soon as the sleep mode is
entered.
The module can stay fully operational in the Standby sleep mode if the Run In Standby (RUNSTDBY) bit
in the TCBn.CTRLA register is written to '1'.
All operations are halted in Power Down sleep mode.
©
2018 Microchip Technology Inc.
Depending on operating mode. See the description of CAPT in
TCBn.INTFLAGS.
Datasheet Preliminary
megaAVR
16-bit Timer/Counter Type B (TCB)
DS40002015A-page 242
®
0-Series
Need help?
Do you have a question about the megaAVR 0 Series and is the answer not in the manual?
Questions and answers