PDA

View Full Version : Timer / Interrupt


raudette
09-05-01, 01:06 PM
Using MaxForth on an NMIY-0020, I'm wondering how to run a section of code:

1) After a timer is set
ie: set a timer, run some code, which is interupted when the timer goes off, and a subroutine runs

2) When something comes in on the serial port
ie: code is being run, something comes in from the serial port, the process is interupted and a subroutine runs

Sample code and/or links to relavant documentation would be appreciated.

Thanks in advance.

MLCarter
10-28-01, 06:11 PM
Hello if you check out my post today there is a timer interrupt machine code routine which increments a counter, I have not done a serial port interrupt and I'm not sure that there is an interrupt line on the serial port ??

Bye Mark.