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.

SYS BIOS Clock function Swi and ISR

Other Parts Discussed in Thread: AM3352

Hi,

I would like to configure one of the AM3352 system clocks as 'clock function' to trigger Swi and run a specific ISR when it expires. I was able to configure this clock function using the GUI from app.cfg, to specify the duration and the ISR function to fire. However, I am not sure on where this ISR function resides. Does the GUI automatically create the prototype of this ISR anywhere? Or do I need to create the ISR function myself? I appreciate some inside on how to do this. I have yet to find an example that shows this operation.

I am using SYS/BIOS V6 with CCS V6.

Thanks,

Sam

  • Hi Sam,

    By ISR function, are you referring to the clock function one needs to specify in the Clock instance settings in the GUI ?

    If yes, then the clock function you set in the Clock instance settings needs to be defined by the application and will be periodically called by the clock module (or called once if clock running in one-shot mode). The clock function is run in Swi context (on the ISR stack but not as an ISR) and has the following signature:

    Void Func(UArg)

    For a detailed explanation on how the clock module works and some examples, please read section 5.2 "Clock" in the SYS/BIOS user's guide:

    SYS/BIOS user's guide link

    Best,

    Ashish

  • Hi Ashish,

    Thank you for the information. I do have the Clock Function working, now.

    Please mark this one as Answered.

    Regards,

    Sam