21.5.5 Control Register E Clear - Normal Mode

The individual Status bit can be cleared by writing a one to its bit location. This allows each bit to be cleared without the use of a read-modify-write operation on a single register.

Each Status bit can be read out either by reading TCAn.CTRLESET or TCAn.CTRLECLR.

Name: CTRLECLR
Offset: 0x04
Reset: 0x00
Property: -

Bit 76543210 
     CMD[1:0]LUPDDIR 
Access R/WR/WR/WR/W 
Reset 0000 

Bits 3:2 – CMD[1:0] Command

These bits are used for software control of update, restart, and reset of the timer/counter. The command bits are always read as zero.

ValueNameDescription
0x0 NONE No command
0x1 UPDATE Force update
0x2 RESTART Force restart
0x3 RESET Force hard Reset (ignored if TC is enabled)

Bit 1 – LUPD Lock Update

Lock update can be used to ensure that all buffers are valid before an update is performed.

ValueDescription
0 The buffered registers are updated as soon as an UPDATE condition has occurred.
1 No update of the buffered registers is performed, even though an UPDATE condition has occurred.

Bit 0 – DIR Counter Direction

Normally this bit is controlled in hardware by the Waveform Generation mode or by event actions, but this bit can also be changed from software.

ValueDescription
0 The counter is counting up (incrementing)
1 The counter is counting down (decrementing)