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 5th October 2007, 01:55 PM   (permalink)
Default dual uarts

hi
i was working on this project of mine...using at8c51, which has a built in UART, was using it to comm my rfid reader

no i need it to comm it to my pc as well...using serial port
but as 89c51 has one serial port which is already occupied...am confused

i hav heard the there our other uart ics available tht can be interfaced to 89c51

are there???? help please
baftab is offline  
Old 5th October 2007, 02:03 PM   (permalink)
Default

Quote:
Originally Posted by baftab
hi
i was working on this project of mine...using at8c51, which has a built in UART, was using it to comm my rfid reader

no i need it to comm it to my pc as well...using serial port
but as 89c51 has one serial port which is already occupied...am confused

i hav heard the there our other uart ics available tht can be interfaced to 89c51

are there???? help please
I dont use the 89C series, but it should be possible to write a 'software' UART,
bit switching. I suspect there is an example for the PIC in Nigel's tutorials.

Look here:
http://www.datadog.com/software_uart.pdf

http://www.avocetsystems.com/company...zine/auart.htm
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 5th October 2007 at 02:33 PM.
ericgibbs is online now  
Old 5th October 2007, 02:41 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
I dont use the 89C series, but it should be possible to write a 'software' UART,
bit switching. I suspect there is an example for the PIC in Nigel's tutorials.
There is, it's failry trivial to do, and should be for any processor - for those who remember back that far?, the Commodore VIC20 used a software UART - supposedly because they ran out of money to use a hardware one.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 5th October 2007, 02:49 PM   (permalink)
Default

aright....thanks

but now i think i would need to change my controller as i need more ports...
i miscalculated the requirements before i began working on it

so..tellme about some other controller tht has built in uarts, not one but 2 and more than 4 I/O ports
baftab is offline  
Old 5th October 2007, 03:02 PM   (permalink)
Default

baftab: I've been using the MAX3100 on a project I'm doing... nice hardware UART with FIFO and interrupts. PIC have some CPU's with 2 UARTs, not sure if they have more (a parametric search option on their site will tell you.)

P.
aussiepoof is offline  
Old 5th October 2007, 03:30 PM   (permalink)
Default

you hav interfaced max3100 with 89c51??
or some other controller?
baftab is offline  
Old 6th October 2007, 12:58 AM   (permalink)
Default

Quote:
Originally Posted by baftab
out some other controller tht has built in uarts, not one but 2 and more than 4 I/O ports

The need for 4 hardware UART's is a little over kill for most applications heh. I would suggest you have a look at using a higher language so that software UART is as easy as;

Code:
Include "SUART.bas"

SUART.SetBaudrate = sbr9600

Data = 0
While True
     Inc(Data)                         // Increment the data regiester
     SUART.SetTX = PORTB.0
     SUART.WriteByte(Data)
     SUART.SetTX = PORTB.1
     SUART.WriteByte(Data)
     SUART.SetTX = PORTB.2
     SUART.WriteByte(Data)
     SUART.SetTX = PORTB.3
     SUART.WriteByte(Data)
     DelaymS(50)
Wend
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is online now  
Old 6th October 2007, 01:00 AM   (permalink)
Default

A note on that though - be sure to setup the default condition of all your SUART pins depending on what mode you choose (Inverted/True) or the first piece of data to be received will be corrupted (but then the software will leave it in its correct "idle" state)
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is online now  
Old 7th October 2007, 02:47 AM   (permalink)
Default

Quote:
Originally Posted by baftab
you hav interfaced max3100 with 89c51??
or some other controller?
I used a PIC processor, but the MAX3100 has a simple SPI interface which will work with almost any microcontroller, even if it does not have a hardware SPI port, because SPI is easy to do in software and is *not* timing-constrained as software UARTs which need precise timing loops.

Hope this helps,
P.
aussiepoof is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Single V.s dual! epilot General Electronics Chat 7 24th August 2008 11:33 AM
Techniques... Making a Dual Supply from a Single Supply Ayne Electronic Projects Design/Ideas/Reviews 37 12th July 2008 12:46 PM
Recommended dual OPAMPS hardcore misery General Electronics Chat 18 9th May 2007 01:11 PM
Dual Power Supply without centre tapping.. Rajagopal87 Electronic Projects Design/Ideas/Reviews 4 15th June 2006 10:57 AM
dual voltage power suply ikalogic General Electronics Chat 19 30th January 2004 02:49 PM



All times are GMT. The time now is 08:06 PM.


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

eXTReMe Tracker