SCPS289B September 2024 – August 2026 TPLD1202
PRODUCTION DATA
The TPLD1202 has one Multi-channel Analog comparator (McACMP) macro-cell with an integrated sampling engine. The McACMP compares two voltages (IN+ and IN-) and outputs a digital signal (OUT) indicating which is larger, a High signal for IN+ and a Low for IN-.
For the McACMP macro-cell to be used in a TPLD design, the power up (PUP) port needs to be connected to a logic high signal. By connecting the PUP signal coming from the connection mux, McACMP can be operated always on, always off, or switched on dynamically. When the McACMP is powered down, the output is Low.
The McACMP macro-cell has a positive input that can be connected to a variety of external sources with a selectable gain stage and voltage hysteresis before going into the analog comparator. The negative input is either created from an internal VREF or provided by way of an external source.
| Parameters |
Primary source |
Secondary source |
|---|---|---|
| IN+ source |
McACMP IN0 |
|
|
McACMP IN1 |
||
|
McACMP IN2 |
VCC |
|
|
McACMP IN3 |
Temp. sensor |
IN+ gain: The McACMP positive input can be provided by a variety of external sources, and can also have a selectable gain stage (1X, 0.5X, 0.33X, 0.25X) before connecting to the analog comparator.
IN- voltage range: 32mV to 2.016V through the internal VREF or up to 2.016V external source.
Hysteresis: If the internal VREF is used, corresponding McACMP channels have four selectable hysteresis options: 0mV, 32mV, 64mV, and 192mV.
When only one channel is selected, the McACMP disables the sampling engine and acts as a discrete analog comparator.
In multi-channel sampling mode, the TPLD1202 can be configured to sample up to 4 channels, each with its own selectable gain, voltage reference, and hysteresis (if the internal VREF is used). The sampling clock can be selected from the output of OSC0 with a given pre-divider and an additional divider at the McACMP. Other configurations that can be set are the output synchronicity, the trigger to begin a sample sequence, and an asynchronous reset option per channel.
When sampling in multi-channel mode, the McACMP samples the set channels in sequential order (channel 0 through channel n) and the edge of the clock on which samples are captured can be selected.
Clock: The McACMP sampling clock can be selected to be OSC0, OSC0/2, OSC0/4, or OSC0/8.
Enable trigger: Note that the Enable signal is a synchronous signal for the McACMP, thus the trigger pulse width needs to be at least one clock cycle wide.
Edge sensitive EN mode: The McACMP begins one sampling sequence when a rising edge is detected at the PUP input and then enter an idle state.
Level sensitive EN mode: The McACMP begins the sampling sequence when a high signal is detected at the PUP input and continuously sample as long as PUP is high, and once PUP goes low, the McACMP finishes the sampling sequence before entering an idle state.
Output synchronicity:
Simultaneous: Sampled outputs are latched and then appear at the respective channel output after the last channel is sampled.
Staggered: Sampled outputs appears at the respective channel output as they are sampled.
Sampling edge select:
Negative edge: samples are captured on the negative or falling edge of the clock.
Positive edge: samples are captured on the positive or rising edge of the clock.
Sequence restart/output latch reset: while the McACMP is running, a restart/reset signal can be asserted to restart the sampling sequence from channel 0. Channels can also independently be selected to have the output latch data cleared when this signal is asserted. If the reset input is held low, the McACMP will continuously sample channel 0 regardless of Enable trigger mode, until the reset is released.
There is also a data ready output that asserts a high signal for one clock of the base clock frequency once all channels configured have been sampled. For example, if the 1kHz (2kHz/2) sampling clock is selected, the data ready pulse width is 500µs.