SCPS286C July 2025 – October 2026 TPLD2001
PRODUCTION DATA
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 to signals coming from the connection mux, it is possible to have the McACMP always on, always off, or switched on dynamically based on a digital signal coming from the connection mux.
The McACMP macro-cell has a positive input signal that can be provided by a variety of external sources with a selectable gain stage before going into the analog comparator. The negative input signal can either come from the internal VREF or an external source, which is shared between all comparator channels. Each channel has the option to select up to four negative input points to compare against.
| 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.
The VREF selection per channel of the multi-channel sampling analog comparator can be updated in-system using the User Registers. For glitch-free measurements, it is recommended to disable/power down all analog comparators when changing the VREF. If the analog comparator is not disabled while the VREF selection is being updated, it can take up to 10µs for valid data to be output from the analog comparators.
Hysteresis: If the internal VREF is used, corresponding McACMP channels have four selectable hysteresis options 0mV, 32mV, 64mV and 192mV. If the IN+ input signal is slow or noisy, it is recommended to use hysteresis.
When only one channel and one VREF is selected, the McACMP disables the sampling engine and operate as a discrete analog comparator.
In multi-channel sampling mode, the TPLD2001 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 or OSC1 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, a sequence restart and output latch reset/clear input, and the option to select up to 2 VREFs 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 OSC1 / 20, OSC1 / 40, OSC0, or OSC0 / 2.
| Base Frequency |
Pre-dividers |
Dividers |
|---|---|---|
| 2kHz |
1 |
1 |
|
2 |
2 |
|
|
4 |
||
|
8 |
||
| 2MHz |
1 |
20 |
|
2 |
40 |
|
|
4 |
||
|
8 |
Edge sensitive PUP 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 PUP 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.
Figure 8-44 shows and example of a McACMP configured to sample channel 0 and channel 1 with 2 VREFs each and only channel 0 with the output latch reset enabled.