Go Down

Topic: 'Hard' Serial Interrupts? (Read 443 times) previous topic - next topic

TeamMCS

Hey guys,

I'm looking for a way of recieving interrupting when a 'hard' Serial message has been recieved and handle processing accordingly.

I believe the best example is with the 'Wire' Library which has two methods, onReceive and onRequest.

Does anyone have any tips?

knuckles904

#1
Jun 16, 2009, 05:45 am Last Edit: Jun 16, 2009, 05:45 am by knuckles904 Reason: 1
aside from checking Serial.available() every so often, you could connect the rx pin to an interrupt pin with a resistor and just use a basic interrupt. Check the sleep example to see what i mean: http://www.arduino.cc/playground/Learning/ArduinoSleepCode
I hope thats what you meant

Go Up