Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 30th June 2007, 10:09 AM   (permalink)
Default 3 serial ports with only 1 pic

Hello, I want to ask help
Does anybody know how to do to use 3 serial ports with only 1 pic16f877,
I want to use 1 serial port rs232 to communicat with PC and 2 others to communicat with Barometer, and Thermometer.
Thanks in advance for any help or advice you might provid.
Algerian is offline  
Old 30th June 2007, 10:21 AM   (permalink)
Default

Simply use two software UART's, and one hardware one.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 30th June 2007, 10:32 AM   (permalink)
Default

Thanks for reply, but could you give me more explication please.
I can't enter the site you gave me.
Algerian is offline  
Old 30th June 2007, 10:40 AM   (permalink)
Default

Quote:
Originally Posted by Algerian
Thanks for reply, but could you give me more explication please.
I can't enter the site you gave me.
I would use software UARTS for receiving the data, and the hardware UART for sending it to the PC - both are covered in my tutorials - just checked it, the site is working fine.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 30th June 2007, 10:57 AM   (permalink)
Default

The only problem with the serial routines on Nigel's page is that they can't send and receive at the same time.

In this thread I posted code that allows 8 channel RS232 to run simultaneously.

Mike.
Pommie is offline  
Old 30th June 2007, 01:14 PM   (permalink)
Default

If your PIC has an SPI peripheral you could use a pair of MAX-3100 UARTS. It is a very capable chip, with an excellent datasheet. One nice feature is that they have receive FIFOs which are 8 bytes deep so you don't have to service them each time a character comes in but can do it in bursts.
Papabravo is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Need help badly on Inchworm and MPLAB thushy Micro Controllers 14 11th March 2007 07:05 PM
Detect light through serial or parallel ports crchisholm Electronic Projects Design/Ideas/Reviews 5 16th March 2006 12:40 PM
serial ports available? atferrari General Electronics Chat 4 1st February 2006 01:31 AM
Newcomers, please read! (PIC regarded) Upd. 0xD Jay.slovak Micro Controllers 0 17th April 2005 02:05 PM
Can a Basic Stamp support 2 serial ports? Scruit Electronic Projects Design/Ideas/Reviews 13 15th August 2003 03:07 PM



All times are GMT. The time now is 09:52 PM.


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

eXTReMe Tracker