用户模块数据表：16-bit TachTimer Datasheet, TachTimer16 V 1.1 (CY8C29/27/24/21XXX, CY8CLED02/04/08/16, CY8CLED0XD, CY8CLED0XG, CY8C28X45, CY8CPLC20, CY8CLED16P01, CY8C28XXX) | Cypress Semiconductor
用户模块数据表：16-bit TachTimer Datasheet, TachTimer16 V 1.1 (CY8C29/27/24/21XXX, CY8CLED02/04/08/16, CY8CLED0XD, CY8CLED0XG, CY8C28X45, CY8CPLC20, CY8CLED16P01, CY8C28XXX)
- 16-bit timer uses two PSoC blocks
- 源时钟频率最高达 24 MHz
- Use terminal count output pulse as input clock for other analog and digital functions
Interrupt on terminal count and capture
The16-bit TachTimer User Module provides down counters with programmable period and capture ability. You can select the clock and enable signals from any system time base or external source. Once started, the timer operates continuously and reloads its internal value from the period register when it reaches terminal count. The output pulses high in the clock cycle after terminal count. Events can capture the current TachTimer16 count value by asserting the edge sensitive capture input signal. In each clock cycle, the TachTimer16 tests the count against the value of the compare register for either a less-than or lessthan- or-equal-to condition. Interrupts are generated based upon terminal count and compare signals. The compare signal may be routed onto the row buses. The main between the TachTimer16 User Module and the Timer16 User Module is that the TachTimer16 provides both terminal count and capture interrupts. Timer16 gives you a choice of one or the other, but not both. The MSB block is the source for terminal count interrupt and the LSB block provides the capture interrupt. Another difference between the Timer 16 and the TachTimer16 is that the TachTimer16 has no parameter to choose the interrupt type. Interrupt types for both MSB and LSB are hard coded.