4800 baud UART communications with GPS module

Thread Starter

Abraham12li

Joined Mar 3, 2015
1
f I'm on the right track. I am currently hooked up to a GPS module and am receiving a 4800 BUAD communication from the unit. Right now I am sleeping in Microsecond's to help bitbang the incoming stream. However what is the best way to do this
______________________
smart lover
 

tshuck

Joined Oct 18, 2012
3,534
Define what is best - speed? ease of use? smallest amount of memory? scalability?

Describe your problem and what you want to solve.
 

Papabravo

Joined Feb 24, 2006
21,225
As I explained in another thread, waking up from a sleep state is neither rapid, nor precise from a timing perspective.
The procedure is to detect the leading edge of the start bit. Wait one-half a bit time by any convenient method. Verify that you still have a valid start bit. Now wait one bit time and sample bit D0, the least significant bit of the incoming data. Repeat for the remaining data, parity, and stop bits.

If you are bit banging data the processor should never ever go to sleep.
 
Top