We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [bit-bang]

For questions pertaining to bit banging, a serial communication technique.

Filter by
Sorted by
Tagged with
3
votes
2answers
133 views

Random i2c SDA spikes (bit flip)

I'm trying to communicate with an old i2c device and I'm getting wrong read values, and possibly even some incorrect write values too. My logic analyzer shows random highs in the middle of a low. ...
6
votes
3answers
10k views

How fast is GPIO+DMA? Multi I2S input

I want to connect multiple I2S ADCs to RaspberryPi and record multi-channel audio. I calculated that it requires copying GPIO input port to RAM at 3072kHz (or every 0.33µs). I want to do it using DMA. ...
29
votes
3answers
15k views

Can Raspberry Pi reliably bit bang a 9600 baud serial and is there example code?

I am wondering how feasible it is to use bitbanging to drive a 9600 baud serial via the GPIO pins on the Raspberry Pi. Obviously, Linux is not a terribly good platform for bitbanging, as there is a ...
4
votes
3answers
3k views

Multiplexing 4-digit 7-segment display is flickering

I connected a 4-digit 7-segment display to the GPIO-port. It uses 8 ports for the LEDs and 4 ports for multiplexing via PNP-transistors. It is running so far with a loop written in C program: while(1)...