CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

877 + SP232A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
o_wan
Guest







877 + SP232A
PostPosted: Tue Nov 29, 2005 2:02 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Nov 29, 2005 2:11 pm     Reply with quote

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!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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