3.10.7.6.1.6 T5CNTH – Timer5 Counter Register High Byte

The T5CNTH/L registers provide direct access, both for read and for write operations to the 16-bit counter. The T5CNTH register represents the upper byte of the counter value. To ensure that both the high and low bytes are read and written simultaneously when the CPU accesses these registers, the access is performed using an 8-bit temporary high-byte register (TEMP). This temporary register is shared by all the other 16-bit registers.

See Accessing 16-bit Registers section for more details. Modifying T5CNTH while the counter is running processes poses the risk of missing a compare match between T5CNT and the T5OCR register. Writing to the T5CNTH register blocks (removes) the compare match on the following timer clock.

Name: T5CNTH
Offset: 0x08E
Reset: 0x00

Bit 76543210 
 T5CNT [15:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 7:0 – T5CNT [15:8] Timer5 Counter Value High Byte