5.5.5 HRCAP Counter Register (HCCOUNTER)
The HRCAP counter register (HCCOUNTER) is shown and described in the figure and table below.
Figure 5-17. HRCAP Counter Register (HCCOUNTER)
15
0
COUNTER
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 5-6. HRCAP Counter Register (HCCOUNTER) Field Descriptions
Bit
Field
Value
Description
15-0
COUNTER
0
16-bit capture counter
This free running counter is used to capture rising and falling edge events. The HCCOUNTER is
incremented on every HCCAPCLK cycle. When the counter reaches 0xFFFF, it will overflow to
0x0000 on the next cycle and generate a COUNTEROVF interrupt event.
The counter is reset to 0x0000 on every rising and falling edge event.
The counter can also be reset to 0x0000 by a system reset or by setting the HCCTL[SOFTRESET]
bit.
NOTE:
Because the counter is clocked from HCCAPCLK, which can be asynchronous to SYSCLK,
CPU reads to this register should not be performed unless the clocks to the HRCAP module are
disabled (HRCAPxENCLK = 0).
High-Resolution Capture (HRCAP) Module
426
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......