Log in

View Full Version : Interrupts and Script Conundrums


Jon236
08-02-2005, 21:04
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
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
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!