4800 baud UART communications with GPS module

Discussion in 'Programmer's Corner' started by Abraham12li, Mar 3, 2015.

  1. Abraham12li

    Thread Starter New Member

    Mar 3, 2015
    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
  2. MrChips


    Oct 2, 2009
    It is not nice hijacking someone's thread. Now you have your own.
  3. tshuck

    Well-Known Member

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

    Describe your problem and what you want to solve.
  4. Papabravo


    Feb 24, 2006
    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.