Continue to Site

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.

how can i write(define) a software uart in C

Status
Not open for further replies.

susano

Junior Member level 1
Joined
Mar 30, 2009
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,441
software uart in c

Hi,
how can i write(define) a software uart in C ?
my MCU has only 1 uart. but i need 2 uart. is writing a software uart in C, the same as BASIC?
please help me! im really needy! :cry:
 

writing a software uart

You can find an example of software serial port in chapter 4, Project 4.b of the following book

**broken link removed**
 

gpio software uart

you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two
 

Re: software uart in c

sau_sol said:
you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two

This method is good for transmission only, but can not use it for simultaneous reception.
 

Re: software uart in c

then at the time of transmission use an extra bit to for identifying the packet of UART1 or for UART2 hence you will get two virtual UART using 1

but this will also increase the number of collisions in the packets
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top