SCPS286 July 2025 TPLD2001
ADVANCE INFORMATION
The TPLD2001 has four 8-bit counters that can operate as a finite state machine (FSM) while in Reset counter mode in addition to the modes outlined in Section 7.3.4.3. These 8-bit counter macro-cells have 4 inputs from the connection mux: counter input, FSM up/down, FSM keep, and external clock input; and 1 output into the connection mux: counter out. There is also an 8-bit parallel output of the current count value from this macro-cell that routes directly into the pulse-width modulation (PWM) generator macro-cells.
Counter reset data: The value which the counter will load when a reset condition is met and can be set to any value between 1 and 255. The counter data can be updated in-system using the User Registers. It is recommended to put the counter in a reset state when updating the counter data registers to ensure glitch-free loading of the data.
Edge select, the edge in which to asynchronously reset the counter to the inital counter data: Both, Rise, Fall, or High-level reset.
Clock input: OSC0, a divided clock derived from OSC0 (/8, /64, /512, /4096, /32768, /262144), OSC1, a divided clock derived from OSC1 (/8, /64, /512), OSC2, a divided clock derived from OSC2 (/4), or an external clock.
For unused counter macro-cells, set the clock selection (CLK_SEL) to External CLK from CMX to reduce excess current draw.
The FSM KEEP input will pause, or latch, the current count and ignore any FSM UP or clock input. The count reset input will still reset the counter, but will neither decrement nor increment. While FSM KEEP = Low, the counter will count as configured; and while FSM KEEP = High, the counter will pause.
After a trigger of UP or KEEP, an additional 2 clock cycles is added for clock synchronization with an option to bypass. Note, bypassing the clock synchronization may result in the counter resetting to an unknown value.