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

RS232 data output ----> RS232 micro controller

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



Joined: 12 Dec 2003
Posts: 16

View user's profile Send private message

RS232 data output ----> RS232 micro controller
PostPosted: Tue Apr 06, 2004 6:14 pm     Reply with quote

Today I did some experiments, the system was set up as follow:

RS232 data output ---> PC COM2, received data, then from COM1 ------> RS232 micro controller, all with data baud rate 57600.
It works well! Data rate is not a problem.

When I connect RS232 data output -------> direct to RS232 micro controller, no any data have been received!

Any comment?
Thanks,
Oliver
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Tue Apr 06, 2004 6:20 pm     Reply with quote

What do you mean by 'direct to RS232 micro controller'? You are not using a RS232 driver chip (like MAX232) and implementing an inverted serial port on the PIC?
What does your '#use RS232' statement look like?
Oliver Lai



Joined: 12 Dec 2003
Posts: 16

View user's profile Send private message

certainly with RS232
PostPosted: Tue Apr 06, 2004 6:49 pm     Reply with quote

The connect is:
unknow micro controller <-----> RS232 data output ------> RS232 (max232) <------> PIC18F452.
dbotkin



Joined: 08 Sep 2003
Posts: 197
Location: Omaha NE USA

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

PostPosted: Tue Apr 06, 2004 11:38 pm     Reply with quote

May one safely assume you connected the two microcontrollers using a null modem cable? If not, that would explain it.
Oliver Lai



Joined: 12 Dec 2003
Posts: 16

View user's profile Send private message

dbotkin, you are right, but.....
PostPosted: Wed Apr 07, 2004 6:59 pm     Reply with quote

dbotkin, you are right. I check the RS232 boards of the both sides, found the board of sending RS232, which get power supply from PC D-9 cable (PIN 4: DTR, PIN7: RTS, 10V), but can not get power if I connected with micro controller (just three wires).

I tried with addional power supply to PIN4 and PIN7 when I connected with three wire RS232. But the sending data is blocked, no more any data coming out.

Have somebody know how I can correct to add Voltage to the sending RS232 board?

Thanks in advance!

Oliver
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