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.

TMS320F28075: SIMPLE INTERRUPT IN ASM PLEASE HELP.

Part Number: TMS320F28075

Tool/software:

Hi guys, after many attempts to write a simple LED binary counter on PORTB in Assembly I'm asking for help. Every time I run my ASM code my F28075 crashes. I read the ASM example in the ASM Reference guide but my attempts still fail.

What I'm trying to do is this:

I have 32 LED's on PORTB,  incrementing the accumulator by #1 and outputting the 32bit result to PORTB where the binary number will show on the LEDS. I can do this in a thread and it works fine.

I'm using INTR to call my interrupt. I save all the registers to the stack as the Reference guide says to but still no go for me.

I would also like the interrupt to keep running so the LEDS keep counting regardless of what the CPU is working on.

Please, any help here will be VERY VERY much appreciated as its doing my head in.

Thank you guys and Hope to hear from you soon.

Peter Smiley

  • Hi Peter,

    Is your interrupt ISR implemented in assembly or C? 

    I'm using INTR to call my interrupt. I save all the registers to the stack as the Reference guide says to but still no go for me.

    Do you mean INTM? This command will simply enable interrupts at the global level. You would still need to enable the interrupt group in the IER register and the specific interrupt inside the group in the PIEIER register. Once all of these are enabled, if the interrupt condition occurs and sets the flag, your ISR should be branched to. Also insure that you have registered the interrupt handler and enabled the interrupt at the peripheral level.

    Best Regards,

    Delaney