Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Uart bit banging code

$
0
0
1. I have a application in which uart is done by software since it has only one uart & it is used for another purpose.
MCU is 16Mhz with 62.5ns instruction time. Goal is to continuously receive data on software uart at 9600 baud & transmit it on hardware uart at 57600 baud.

2. Below is code for above task. Delay I have made from timer to be as accurate as possible.

3. Is there any way I can best optimize code for this task. One thing I am tryign to do is to move tranmit section on hardware...

Uart bit banging code

Viewing all articles
Browse latest Browse all 4923

Trending Articles