Bit banding/Software uart RPI2 Model B

Discussion in 'Embedded Systems and Microcontrollers' started by Vindhyachal Takniki, Sep 24, 2015.

  1. Vindhyachal Takniki

    Thread Starter Member

    Nov 3, 2014
    1. I have model B RPI2. I am already using one uart on it.
    is there any software/bit-banding uart library available ?

    2. On search i found here. but it don't have any example code.
  2. sirch2

    Well-Known Member

    Jan 21, 2013
    Sorry, can't help with your question but I think you mean bit-banGing, as in to bang a drum? This may help you get better results from Google.
  3. BR-549

    AAC Fanatic!

    Sep 22, 2013
    These are two separate things.

    Bit Banging and Bit Banding.

    Bit Banging is using the processor to set logic levels for communication or I/O. i.e....manual I/O.

    Bit Banding is using a whole memory location to represent one bit. When you use that represents one bit in another register.

    I didn’t explain that too well. You can look both up.

    Sorry, not familiar with your unit or python. The unit site should have links to all the libraries.
    Last edited: Sep 24, 2015
  4. nigelwright7557

    AAC Fanatic!

    May 10, 2008
    A software UART isn't too difficult to write.
    Just send out the bits as zeroes or ones with correct delay between bits.
    Don't forget to add start and stop bits.

    Receive is just the opposite , read in bits with the correct delay between them.