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/TMS570LS1227: how to control LED blink Speed?

Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

HI.

'm a beginner.

I'm using tms570ls1227


I want to adjust the LED blink rate with RTI 1s and the interrupt is fixed.


Tell me how to code at halcogen setting and CCS sys_main.c.

  • Hello Kim,

    The RTI has 4 compare registers to generate interrupt requests to the VIM. Those interrupts can be used to generate different timebase for your application. 

    If you use HALCoGen to generate code, please change the compare period in RTI Compare window. This period defines the frequency of the LED blinky.

  • RTI is fixed for 1 second(interrupt 1S) and I wants LED light to be every 0.5 second. Or I'd like to change the LED lighting time to my liking (every 10 seconds, every 5 seconds, every 12 seconds).

  • Hello Kim,

    The RTICOMy (y=0, or 1,2,3) register is programmable. You can change the value for your application. There are 4 compare units which can be programmed to generate interrupts every 0.5S, 10S, 5S, 12S.