Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 22nd October 2003, 04:08 AM   (permalink)
Default Usart to Usart?

I have to make 2 Pics communicate in a automobile.The length is about 2 meters, could I get away with USART to USART(5V serial)?Would I have noise issues?
Eclipsed is offline  
Old 22nd October 2003, 05:47 AM   (permalink)
Default

I have done this at lower speeds (dont remember, maybe 9600 baud) half-duplex over about 4 meters in a lab without any problem at all. I didn't even use a good cable for the prototype. You can tradeoff speed vs. distance so that your receiver wont have any problem syncing to the start/stop bits. I would guess that the auto might have more electrical noise than the lab where I assembled this system.
crust is offline  
Old 22nd October 2003, 02:21 PM   (permalink)
Default

I would guess that if you used line drivers to get a solid -12 and +12 signal, used shielded cables, and limited the baud rate, then you'd be fine. What if you used a chip to change it to differential signaling? Actually, I think line drivers would be easier, just be sure to change it back to 0 and 5 if thats what your PIC can take
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Old 22nd October 2003, 03:23 PM   (permalink)
Default

What sort of line drivers do you speak of? Something like RS-232 or RS-485?
Eclipsed is offline  
Old 22nd October 2003, 04:06 PM   (permalink)
Default

You could use those, but then you usually need extra caps to run the switched capacitor part of the circuit. I believe Noggin was probably speaking of 74XX244 or 74XX540 bus drivers which use 0-5V but can source larger currents to drive higher Z loads with low propagation delay. The 540 is inverting, but that doesnt matter if you are going to use one on each end. If you can use half-duplex communication, you can just use a single wire between the systems (since the auto chassis is a common ground).
crust is offline  
Old 22nd October 2003, 06:55 PM   (permalink)
Default

Actually, I wasn't talking about anything in specific. I have very little knowledge compared to most people here, but I was just thinking that if you use -12 to +12 signaling, 1v worth of noise wouldn't be as harmful as if you were using 0 to 5v. It night not work like that.... what about differential signaling?
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Old 22nd October 2003, 09:15 PM   (permalink)
Default

Differential signaling is a method to provide noise immunity. For instance when using twisted pair in an ethernet, the idea is that outside noise will affect the signals traveling on the + and - wires more or less equally. So assuming you intend to send a signal A0 across the cable, you convert A0 to +A0 and -A0 and push them down independent cables which are twisted together. The cable is in a noisy environment and picks up some noise which I'll call e. In reality, both cables would not pickup exactly the same amount of noise, but we can ignore that for this discussion. As a result, we have two signals that are now the sum of each original signal and the noise component epsilon: +A0+e, -A0+e. At the receiver we now take the difference of the two signals, delta. D = +A0+e - (-A0+e) = 2A0 = A0.

RS232 is not differential signalling however, though the voltages swing from -12,+12, the transmit is only a single wire, as such, you cannot use the noise elimination technique I just mentioned. RS422 and RS485 (for which drivers are readily available) are similar to RS232 using differential signalling.

Two meters is not very far. It is very far for a high speed signalling system, but assuming they are using the PICs UART, and you can live with the lower data rates, you could use a single ended line driver or maybe get away without a line driver at all. As the speed gets higher, you get lots of attenuation from the cable impedance. For comparison purposes, a regular 100BT ethernet runs around 125MHz or so.
crust is offline  
Old 23rd October 2003, 05:07 PM   (permalink)
Default

Thank You
Eclipsed is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:45 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker