Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Opinions on using a GPIO as UART

Status
Not open for further replies.

Slammer

Member level 3
Joined
Aug 3, 2001
Messages
56
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Location
Ios Island
Activity points
330
GPIO as UART

GPIO, for example MCU I/O lines, can be used as UART by software, but you need processing power.
There are projects with software UART using an AVR but the speed is limited to 4800-9600 bauds.
 

BurnOut_tesla

Advanced Member level 4
Joined
Mar 5, 2010
Messages
113
Helped
24
Reputation
48
Reaction score
16
Trophy points
1,298
Location
India,Mumbai
Activity points
1,864
Re: GPIO as UART

You can use GPIO as UART,
transmitting data is very easy task..
but receiving data with proper baud rate is little bit time consuming process..
what is application by the way?
 

bert_kak

Member level 5
Joined
Aug 24, 2009
Messages
87
Helped
19
Reputation
38
Reaction score
16
Trophy points
1,288
Location
Philippines
Activity points
1,829
Re: GPIO as UART

Slammer:
processing power is not an issue as we our processor is fast enough to accommodate it.

Burnout Tesla:
Actually I only need the transmit, I don't need the receive as I will use this transmit signal to convert it to RS485 protocol using SP485 to control a PTZ camera.


Are there any downloadable C code for this thing. Thanks.
 

BurnOut_tesla

Advanced Member level 4
Joined
Mar 5, 2010
Messages
113
Helped
24
Reputation
48
Reaction score
16
Trophy points
1,298
Location
India,Mumbai
Activity points
1,864
Re: GPIO as UART

actually u dont have to search the net..
its just a simple function..
u can write it by urself..
send start bit then ur byte MSB first then stop bit...
adjust the timing according to baud rate of camera..
u can see the timing diagram or wave form on the scope for inbuilt UART and try to implement it..
its not a hard job...
 

sanket.joshi

Member level 3
Joined
Jun 27, 2013
Messages
65
Helped
8
Reputation
16
Reaction score
8
Trophy points
8
Location
Mumbai,India
Activity points
386
Re: GPIO as UART

actually u dont have to search the net..
its just a simple function..
u can write it by urself..
send start bit then ur byte MSB first then stop bit...
adjust the timing according to baud rate of camera..
u can see the timing diagram or wave form on the scope for inbuilt UART and try to implement it..
its not a hard job...

Hi..
i want to interface RF-ID module with 89C51 using software UART...RF-ID will send card id(12 bytes)..
I got some code from internet but its not working...
can anyone tell me how to do it?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top