|
|
View previous topic :: View next topic |
Author |
Message |
o_wan Guest
|
877 + SP232A |
Posted: Tue Nov 29, 2005 2:02 pm |
|
|
hi,
I was working w/ 877a with Sipex sp232a on serial communication, my code was simple (just putc('c')), I've checked that the pin conifg of sp232a is the same as max232, I've got it working but I was getting "garbage" instead of 'c' in either hyper teminal or serial port monitor, my clock is XT, 4 Mhz,
Here's my schematics,
sp(p1)-->0.1uf -->sp(p3)
sp(p2)-->0.1uf -->vcc
sp(p4)-->0.1uf -->sp(p5)
sp(p6)-->0.1uf -->gnd
sp(p11)--> PIC TX
sp(p12)--> PIC RX
sp(p13)--> DB9(p3)
sp(p14)--> DB9(p2) DB9(p5)-->gnd
Thanks, |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Tue Nov 29, 2005 2:11 pm |
|
|
First check the software to ensure you have correctly setup the comms to match between the PIC and the PC. Have you set both ends up identically?
Check the #use rs232 and #use delay statements
Code: |
#define XTAL_FREQ 4000000 //; OSC freq in Hz
#use delay(clock=XTAL_FREQ,RESTART_WDT)
#use rs232(baud=9600,parity=N,xmit=PIN_B1,rcv=PIN_B4,bits=8,errors)
|
Hardware:
A common fault that will cause this problem is missing + or - voltage on the charge pump - usually caused by a poor solder joint on one of the capacitors. Measure the voltage between group and the capacitors and ensure that +9v and -9v are present. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|