Expanded interrupt support

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Expanded interrupt support

Post by YahooArchive » Wed Jan 30, 2013 1:30 am

>from the help line
>I really enjoy your ARMMite for rapid development.
>Is there any future offering of a product that better utilizes all the hardware
features of the LPC2103. Specifically, the SPI/SSP in hardware (I really need
the hardware buffer and interrupt to remove burden of bit banging) and more
external and internal interrupts such as the timer capture interrupts.

I really don't seed these. But one of the things being added to the compiler
this weekend (its actually in there, just need to document it) is a general
interrupt facility for BASIC

It keys on 2 new keywords, ADDRESSOF and INTERRUPT SUB

With ADDRESSOF, you can load the VIC registers of the ARM to enable an interrupt
routine.

The definition of an INTERRUPT SUB generates the proper stack save/restore code
to add a BASIC interrupt routine.

So the answer is yes, you could always read/write directly to the registers
through a C-like pointer in BASIC, and now you will be able to add an interrupt
routine.



Post Reply