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.

CCS: ADC with Timer interrupt in TMS570LS1224

Other Parts Discussed in Thread: TMS570LS1224, HALCOGEN

Tool/software: Code Composer Studio

Hi,

I have a few questions about ADC and Timer Interrupt.
1) I want to run ADC with TimerInterrupt every 10 seconds in the work I want to do. How can I find out how much time I lost in ADC? So how do you find the elapsed time in the part where ADC starts and ends?
2) What is the different betweeen ADC1 Group1-ADC1 Group2 and ADC2 Group1-ADC2 Group2 ?
3) I got the F021.h library error, what exactly is F021 and do I need to use it for TMS570LS1224?
4) The TMS570LS1224 Datasheet paper says that the Maximum frequency value is 160 MHz and I want to use it at this value, how can I set it from HALCoGen?
Sorry for asking too many questions, I would be very glad if you could help. Thank you for your help in advance.
Have a good day.

  • Hello Emre,

    1. The ADC module supports 3 conversion groups: Event group, Group1 and Group 2. Each of them can be configured to be hardware event-triggered. RTI Compare 0 is one of the 8 trigger sources for triggering the group's conversion. You can estimate how much time are used for sampling and conversion. The HALCoGen calculates the total time used for all the selected channel. 

    You can enable the ADC group conversion end interrupt, and read the RTI timer (t1) when this interrupt occurs. The difference between t1 and t0 (trigger time) is the time used for sampling and conversion.

    Another way is to use PMU: start PMU when ADC conversion is triggered, and stop PMU when conversion is completed.

    2. We can use one trigger source to trigger the conversion of a group of channels. There is no difference between Group 1 and Group 2 except for the priority. Group 1 has higher priority than Group 2.

    TMS570LS1224 has two independent ADC modules (MibADC1 and MibADC2). ADC1 supports 24 channels, and ADC2 supports 16 channels which are shared with ADC1. 

    3. F021.h is used by Flash APIs. If you don't use EEPROM and don't use Flash APIs for flash operations (erase, write, etc), F021.h is not required.

    4. HALCoGen-->PLL to configure the PLL output clock. 

  • Thank you for your descriptive answers..

    Have a Good Day.