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
ISR
-
- Site Admin
- Posts: 545
- Joined: Fri Dec 31, 2010 12:30 pm
- Contact:
Re: ISR
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.
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.
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;