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.

TMS320F280049C: Timer Interrupt on SYS/BIOS.

Part Number: TMS320F280049C

Hi,

I am using SYS/BIOS with TMS320F280049C and I want to set up ISR which runs when timer0 times out. So, I want to know how I can proceed with it. Is it done like it is done in the non-BIOS application or there is some different way to do it. Also, I am planning to do a semaphore_post() from this ISR how it should be done.

Hoping for quick help.

Thanks and Regards,

Pradeep

  • You'll want to set up a SYS/BIOS Hwi for the Timer 0 interrupt. You'll set up the CPU Timer registers like you normally would in a non-BIOS project, but instead of enabling the interrupt in the PIE and writing to the vector table, you'll set up the Hwi in your cfg file.

    If you want an example of setting up a Hwi, in CCS go to File -> New -> CCS Project and enter your target info. Then in the Project templates and examples box, find SYS/BIOS -> More Examples... -> Searching using Import Wizard..., and import the one called pie.

    More useful info on setting up Hwis for the C28x:

    Whitney