This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DIO synchronous with ADC

Hi,

The vast majority of ADC board I've used permit to acquire some digital inputs in sync with the ADC data, so, for example, in every single 16bit word of ADC buffer there are 12bit of ADC data and the remaining 4 bit are the status of 4 digital input.

Is this possible with the TMS570?

Thank you,

Matteo

  • Matteo,

    We do not have this capability on the TMS570.   You can choose to insert the channel # into the upper bits and the MSB holds the FIFO status.  These are a sanity check of the data though (confirming it came from the channel that you thought and that you didn't read the FIFO too many times ...)  not digitial IO information about other pins.

    There is the capabiltiy to compare an A/D result of a channel against a programmable threshold value and generate an interrupt based on the value but this is different than what you are asking.   See section 19.7 of SPNU499b "ADC Magnitude Threshold Interrupts" if you want to know more about this feature.  It's about the closest that you might come.

    Another alternative to achieve something similar might be to try chaining the DMA channel that services the A/D converter with a DMA channel that reads some GIO port.   That might at least get the timing of the digital IO and the A/D 'pretty close'.       To be really close, you'd probably need to write some special HET program that both reads IO and triggers and A/D conversion...