Hi,
I'm using the Piccolo F28069 and wanted to perform some ADC conversions in a way similar to the ADC sequencer that can be found in other DSP models. As Piccolo devices ADC is based on SOCs, it is being really difficult for me to achieve my targets in making the right setup to this peripheral.
What do I need? I'm trying to read twice 6 different channels in simultaneous sampling mode, but not all in a continuous way. Let me explain orderly what I want to get:
- SOC0+SOC2+SOC4 (6 simultaneous channels) generated by ET when EPWM1 incrementing counter equals CMPB; No interrupt generation after any EOC. Conversion results will appear in ADCRESULT0...5.
- In the next PWM period, i want to trigger SOC6+SOC8+SOC10 (same 6 channels simultaneously). I don't know how to trigger these SOCs. After EOC11, I need an interrupt, which I supose can be selected in INTSEL1N2.INT1SEL. Results will be saved in ADCRESULT6..11.
- Inside the ISR generated by EOC11, I'm going to read all 12 results and copy them into a buffer.
- After copying them, just start all over again.
I made a hand-made schematic.
To give more information: I'm using HRPWM1A and HRPWM2A to control a Full-bridge LLC converter. The switching frequency is variable (130kHz - 200kHz), so the control code (40kHz fixed) cannot be executed inside a pwm-synchronised interrupt. In this case, ADC is converting in every PWM period, I save the values and then make a mean with the last 4 values of each channel.
If you could help me with your experience, I'd be very grateful! Thanks,
Alex