Posts: 31
Joined: Sat Jan 30, 2021 9:32 am

ARM Assembly - Basic example of INTERRUPT use

Wed Jul 28, 2021 10:24 pm

Hi, I've been programming in ARM Assembly on the Pi and the Pi Pico. I'm at the stage where I want to use interrupts.

Does anyone have a link or provide an example of basic use of interrupts?

For example using system clock/ticker to trigger an interrupt.

Thank you.

Posts: 50
Joined: Mon May 24, 2021 8:03 am

Re: ARM Assembly - Basic example of INTERRUPT use

Fri Jul 30, 2021 9:36 am

I suspect that it's quite different for (linux) pi and for pico. If you're primarily targetting the latter, I suggest asing on the pico forum ?

I don't think there's anything special about using assembler to handle interrupts - I think moderm ARM processors can just use the normal register and calling conventions, so you'd write the handler the same way you'd write any assembler subroutine.

(I routinely write interrupt handlers in c on other arm microprocessors, but never pi or pico.)

Return to “Bare metal, Assembly language”