have a look here, esp. post 16:http://www.picbasic.co.uk/forum/show...highlight=cren
have a look here, esp. post 16:http://www.picbasic.co.uk/forum/show...highlight=cren
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks to everyone for the quick replies. I havent had chance to try the corrected code as yet, Ill post back when I get chance.
Regards, John
Ok I now have a working prototype, thanks to all that contributed.
Transmitter:
INCLUDE "modedefs.bas"
N VAR BYTE
FOR N=0 TO 255
serout PORTB.0,N300,[N]
TOGGLE PORTB.1
PAUSE 100
NEXT N
Receiver:
INCLUDE "modedefs.bas"
N VAR BYTE
PAUSE 1000
START
LCDOUT $FE,$C0,"SERIAL RECEIVER"
SERIN PORTB.4,N300,N
LCDOUT $FE,1,#N
PAUSE 50
GOTO START
The receiver is simply the LCD display example in the picbasic pro manual, with a 4MHz crystal and uses 4 data lines to the LCD. The serial input is on pin 10. The transmitter is a 16F84 with 4MHz xtal, pull up resistor on MCLR and the serial output on pin 10. Power for both modules is a battery pack and 7805 regulator.
I am thinking of replacig the wire linking the tx to the rx with one of those 433MHz tx/rx modules so I can use the display remotely.
Bookmarks