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
    348
    6
    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.
    http://abyz.co.uk/rpi/pigpio/python.html
     
  2. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    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

    Well-Known Member

    Sep 22, 2013
    1,980
    388
    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 location.....it 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

    Senior Member

    May 10, 2008
    487
    71
    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.
     
Loading...