Pages: [1]   Go Down
Author Topic: 'Hard' Serial Interrupts?  (Read 419 times)
0 Members and 1 Guest are viewing this topic.
The Big Smoke
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
Hacking and Slashing
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Florida
Offline Offline
Full Member
***
Karma: 0
Posts: 171
1 Cor 10:31
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: June 15, 2009, 10:45:53 pm by knuckles904 » Logged

Pages: [1]   Go Up
Jump to: