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.

TMS320F2802x Piccolo ADCRESULT register

Hello, 

Maybe someone met a problem like mine. I want to control measurement period, sampling time of conversations. Firstly, maybe is ability in Piccolo F28026 to control sequential mode measurements period, that every new measurement would be start not in the end of the last conversation. Because I didn't find a way to control it, so I decide to use PWM events to generate SOCx, but have a problem ,that in Piccolo isn't ability to initializate it, that every new PWM event would generade diferent SOCx, because  SOCx are asociated with ADCRESULTx register. I want to add every new measurement in new Result register. In this way I will needn't interrupts to add results in software buffer, because I hadn't a long time. 

Is there ability to switch different SOCx in every new PWM event, or to control sequential conversation period? 

Thank you for your time. 

  • Have you considered using both the PWM A and B trigger events to launch two sets of SOCs?

  • For now, I am using PWM2-3  A and B, for 4 SOCs triggering  . Now it is working, but it is a little bit complicated, because I need renew many parameters like both PWM modules , period, CMPA CMPB registers. So would be great to know about possibility to realize (trigger) more than one SOC with one PWM signal with every new event. O to control period of conversations (something like sequential). All methods I need for set ADC and PWM before program is flowing. After that I want just take ADC results from all ADCRESULT registers in the ending of every  period or half period after 4 or 8 measurements, which would be done periodically through the period. 

  • Mindaugas Staisiunas said:

    So would be great to know about possibility to realize (trigger) more than one SOC with one PWM signal with every new event.

    You can configure multiple SOCs to trigger off of a single PWM signal .  The SOC sequence is then determined by the priority settings.

  • Ok, I know and I tried, but it works in sequentially without now delay between measurement,  I want to control period of measurement just changing just one or few parameters. 

    I know about priorities, but it works when events are occurring in the same time, and analog signals are converting sequentially, but I need to control delay, or time between measurements. 

  • In the scenario that you describe, I cannot think of any better methods for configuring ping-pong sampling in a time-controlled manner.  It's not to say that there aren't other ways of achieving the task, but they really aren't any easier.

  • Yes, I used it, but for this way need more interrupts so I can't go faster.