Hi,
I am very new to the 570 chip and am attempting some sample programs and modifications with the USB Dev kit. I have successfully used the sample light sensor program with the ADC. I am now attempting to use the NHET to set up the system where the ADC is automatically triggered and values converted, instead of the software trigger. I basically want to read the adc automatically at a known rate using the HET.
I think I understand the procedure using HalCoGen. I have set up the Fifo size to 16 bytes and set up the adc to trigger with HET19 and a hardware trigger, along with continuous conversion. I have enabled PWM7 which is pointed to that pin.
I have modified the sample code for the light sensor to include the het.h file and initialized the het. I think, at that point, I should only need the adcGetData function to retrieve the converted values from the Fifo. However, in the terminal, I get the same value over and over, as if the ADC is not being triggered.
Am I missing settings in the HalCoGen program? Or anything else I seem to be missing or setting incorrectly?
Thanks in advance.