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 CCS Technical Support

RS232 not working, probably a electrical problem

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







RS232 not working, probably a electrical problem
PostPosted: Mon May 03, 2004 12:40 pm     Reply with quote

hi!

i use a PLCC44 pic18f452 with a intersil SO16 max232 line driver, my bootlaoder isn't working (doesn't recognize the CPU) and so i think this coud be an electical problem either with the MAX232 or with the line itself.
when i measure pin13 of MAX232 (TX on the MAX232 side) it has 0V.
same with ground ;)
and RX (pin14 on the MAX) it has ~ -8V.

maybe its a problem with the cpu itself, i looked with a scope at the OSC1 and OSC2 pins and it looked kinda like a pseudo sawtooth with a freq of 20MHz. (i'm using a 20MHz crytal) but Vdd is @ 5V and Vss @ 0V

i dunno y, but everytime i try to use SMD packages my vanilla and proven circtuis stop working right :(
petfo
Guest







PostPosted: Mon May 03, 2004 12:48 pm     Reply with quote

i'm using 1uFs elect. caps and a groundplane, the 7805C doesn't swing(vcc line is clean and stable @ 5V).
Beginner
Guest







PostPosted: Mon May 03, 2004 11:57 pm     Reply with quote

Hi,

have you tried an rs232 testprogramm?
so you can say that the communication is working correct?
when it's work, than there is a timing problem with your bootloader and your baud rate.

i think so, i had such a problem with a 16f876

regards

Beginner
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue May 04, 2004 2:11 am     Reply with quote

You say your RS-232 line is not working, but in this same post you are checking your oscillator as well. Why? Are you doubting your processor is running at all?

I would suggest to start at the basics again.
1) Make sure your processor is running, for example toggle an output pin every second so you can check this with a LED or voltage meter.
2) Output a continuous stream of data over the RS-232 transmit and try to receive this on the PC. This will prove your baudrate settings are correct and your transmit hardware is correct.
3) Prove your RS-232 receive hardware is correct by writing a small test program that waits for data on the Rx and outputs it directly on the tx again.


I don't have the schematics for the MAX232 here, but pin13 is supposed to be carrying RS232 voltage levels? If yes, then your 0V here is suspect to error, this is an undefined voltage in RS-232.
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