Hi everyone
I am using multiple 12f629s running with internal 4 meg clocks in this idea.
First I need to:
Send a simple 2 or 3 digit number via serout from one 12f629, to an rf transmitter. This will be received by an rf receiver, then serin to another 12f629.
Never done Serout/Serin code. Does anyone have any sample serout/serin code that would help me build on?
Secondly:
There will be a pulse sent by the Xmit a few msec. prior to sending the serial code so the pic on the receiver end wakes up from either sleep or nap.
Normally, I'd like the pic to check the receive line for the above pulse, then go into the serin receive routine. If the pulse is absent then it goes back to sleep or nap for another period. (just to save power) I can use the pulse to either bring MCLR low, or simply wait for the nap period to end.
Which would be better? - a sleep that ends when MCLR is brought low, or a nap that just checks the receive each time after its short time out period?
This is another area of Pic Basic Pro that I am not clear on!
Thanks for any help!
Ron
Bookmarks