Page 1 of 1
ISR
Posted: Thu Aug 13, 2015 7:28 am
by anitasure123
Hello There,
How to define ISR in oberon. I want to define ISR for external interrupt. as i am using starter edition, I can not check the definition of MCU and LPC import is not available.
Please reply.
Thanks
Anita
Re: ISR
Posted: Thu Aug 13, 2015 10:31 pm
by cfbsoftware
There aren't any pre-defined GPIO interrupt-related definitions in the Astrobe library modules. All the information you need is in the NXP
LPC176x-5x UserManual (UM10360) e.g. Section 9.5.6
GPIO interrupt registers. You can download a copy of this from the
NXP User Manual links on the Astrobe Development Boards page:
http://www.astrobe.com/boards.htm
You can give the relevant register addresses meaningful names by defining them as hexadecimal constants in CONST sections when you develop your own Oberon modules e.g.
Code: Select all
CONST
NVICBase* = 0E000E000H;
NVICISER0* = NVICBase + 0100H;
NVICISER1* = NVICBase + 0104H;
NVICICER0* = NVICBase + 0180H;
NVICICER1* = NVICBase + 0184H;
VTOR* = NVICBase + 0D08H;
Examples of how to define, install and use Oberon interrupt handlers are included with the Astrobe Starter Edition e.g.
IRQTimer.mod and
IRQBlinker.mod.