Tom,
Can you post a schematic of the way you have things connected.
And
Try connecting to a PC using hyper terminal or something, this will test your PIC and code.
Tom,
Can you post a schematic of the way you have things connected.
And
Try connecting to a PC using hyper terminal or something, this will test your PIC and code.
Dave
Always wear safety glasses while programming.
Check out this post, code in post 16.
http://www.picbasic.co.uk/forum/showthread.php?t=4972
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.
mackrackit,
I didn't draw a schematic, just used/modified the one from the EDE702 datasheet. I'm attaching both the datasheet and a simplified schematic.
Note the schematic shows line coming from the PS's serial port but in my case the line is coming from the PIC.
Joe,
I read the whole topic and while the code works, it is too complex for me. Plus I'd have to have MPASM and compile using that... Not sure how to go about that.
Post #25 looks promissing and I can actually understand it!
I'll try that one first and if it's loosing characters then I'll try to use yours.
Thanks,
Tom
In your original program, change BAUD CON 2 to BAUD CON 6 and see what happens...
Key phrase here is:
The PBP manual will tell you why this matters...Note the schematic shows line coming from the PS's serial port but in my case the line is coming from the PIC.
If you are using the schematic posted... you did ground the OSC? The schematic is missing that.
MPASM is simple. Just install MPLAB from microchip (it is on your PBP CD) and tell MCS to use MPASAM.
The only thing you may need to do is change your configs for MPASM. Not a big deal.
http://www.picbasic.co.uk/forum/showthread.php?t=543
Dave
Always wear safety glasses while programming.
Your problem is the internal oscillator. As already suggested in post#4, use a 4 MHz xtal or a resonator also for the pic, and you will see that the serial communication will work.
Al.
The schematic for the EDE702 uses a ceramic resonator, but your code comment suggests you are using a crystal.
Did you add two 22-27pF capacitors on the crystal?
<br>
DT
Bookmarks