Interupt help

alband

Senior Member
Can someone help?
I want to use the interupt but normaly use PIClogicator(flowchart base software) and I now need to use basic. I've looked in the manual but even thogh there is a link in the contents, there is no actual section on interupts.
Can someone just give me a small code demo of how I'd set an interupt up so that it can be triggered multiple times and the interupt patern would be in1 being high?
Thanks,
David
 

ciseco

Senior Member
Hi David,

Command you are looking for is setint, page 149 in my manual.

What you do is set it up at the begining and when the condition is met it jumps to a subroutine that has to be called interrupt:

init:
setint (settings)
main:
whatever you have
goto main

interrupt:
blah blah
setint (settings)
return

if you need to activate the interrupt to happen again, you have to re-issue setint again.

Little search on setint might deliver a much better explanation than mine :)

Miles
________
Honda ST series
 
Last edited:

BeanieBots

Moderator
It also helps if you search for the correct spelling of "interrupt".
Equally, when things are not correctly spelled, they cannot be found by searching for the correctly spelled word.

Anyway, page 156 in the current on-line version of the manual. "setint".
 
Top