INTERRUPT(0)

Questions about the BASICtools and MakeItC
Post Reply
olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

INTERRUPT(0)

Post by olzeke51 »

In considering some MultiTasking ideas, mainly Flash writing; you said to turn off interrupts.
Does INTERRUPT(0) turn off the SUB INTERRUPT(s) that I create?? .. and then back on with (1)??
Thanks
GaryZ



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: INTERRUPT(0)

Post by basicchip »

The multitask timer should be switched off (I think there is an example of that in the original).

INTERRUPT(0) turns of all interrupts controlled by the I bit in the CPSR of the ARM, and the systick interrupt

So that would be a sledge hammer way to do it. I have no idea whether the ROM routine we call (written by NXP) uses interrupts, but I kind of doubt it

Post Reply