Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

switching of board rate in PIC microcontrollers

thunderboympm

Full Member level 5
Joined
Sep 17, 2007
Messages
244
Helped
32
Reputation
64
Reaction score
29
Trophy points
1,308
Location
Malappuram, India
Activity points
2,467
hi,
One of my project i am using PIC microcontroller (PIC18F452). in the particular project i am using two serial communication devices. i am using cd4016 for switching between them. the problem is the two devices are communicating with two different board rate, is there any problems will arise in the communication between the devices and microcontroller, i mean FERR or OERR?
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
17,458
Helped
3,941
Reputation
7,880
Reaction score
3,812
Trophy points
113
Activity points
115,742
Hi,

What you mean is "baud rate".

The CD4016 will not cause any baud rate problem. But your software needs to handle the different baud rates.

You should switch the CD4016 only when the all communications are idle. Else you have to expect FERR and/or OERR.
..but then just dismiss the received data...

Klaus
 

spudboy488

Full Member level 5
Joined
Oct 10, 2012
Messages
271
Helped
69
Reputation
140
Reaction score
71
Trophy points
1,308
Activity points
2,922
The RX input of the unused communications device should also be pulled to logic high. The is the idle state for the PIC TX line. Leaving it floating or low has caused me problems when switching between different devices. I'm switching on the digital side since I need to route to other uCs as well as RS-232 drivers to external equipment. If you switch on the RS-232 side, it may not make a difference. Just something to keep in mind.
 
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top