Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Interrupts and Script Conundrums (http://www.chiefdelphi.com/forums/showthread.php?t=34240)

Jon236 08-02-2005 21:04

Interrupts and Script Conundrums
 
2 Problems I am seeking wisdom on:

Utilizing interrupts 3 & 4. It appears that they are both accessed through PORTB. Can one use them independently of one another? I can't see how at the moment.

Scripted code. Using CMD_TURN, the state variable never gets to 'STOPPED', so rc remains at 0 and it loops endlessly. We are using code from the 1-22 version without alteration. Anyone deal with this yet successfully?

Hope the upcoming snow doesn't shut down our shop again!!!! You Canadians love the stuff!!

Jon from 236 in Old Lyme.

Robby 08-02-2005 22:35

Re: Interrupts and Script Conundrums
 
Quote:

Originally Posted by Jon236
2 Problems I am seeking wisdom on:

Utilizing interrupts 3 & 4. It appears that they are both accessed through PORTB. Can one use them independently of one another? I can't see how at the moment.

take a look at the interrupt code in InterruptHandlerLow() in user_routines_fast.c in Kevin Watson's code at http://kevin.org/frc/edu_interrupts.zip what you have to do is look at the difference between the last PORTB value and the current

Jon236 08-02-2005 23:01

Re: Interrupts and Script Conundrums
 
Quote:

Originally Posted by Robby
take a look at the interrupt code in InterruptHandlerLow() in user_routines_fast.c in Kevin Watson's code at http://kevin.org/frc/edu_interrupts.zip what you have to do is look at the difference between the last PORTB value and the current


Thanx!


All times are GMT -5. The time now is 23:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi