a technique for serial communications using software instead of dedicated hardware.

learn more… | top users | synonyms

0
votes
0answers
130 views

Problems Bit-Bashing an I2C Slave

I have a Pi B+ on which I'm trying to bit-bash an I2C Slave in C / C++ (code's pretty much C despite the fact I'm using g++ and .cpp files), utilizing GPIO 18 as my Clock and GPIO 17 as my Data. I'm ...
2
votes
2answers
186 views

Theoretical maximum data rate of GPIO pins

Is there a maximum data rate of the GPIO pins? I.e. if I wanted to bit-bang data through one of the pins, what kind of data rates could I achieve? Alternatively, what is the slew rate of a GPIO pin? ...
4
votes
3answers
4k 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. ...
2
votes
1answer
902 views

Raspberry Pi on AVC-LAN / IEBus

I'm planning on using my Raspberry Pi in my car as an XBMC server. I'll be able to select songs/videos using the Android remote control app, but it occurred to me that it would be really neat if I ...
1
vote
0answers
220 views

Interfacing external device using accurate high-speed clock signal [closed]

I need to interface device using specific synchronous protocol that requires clock signal within 1..2MHz. Period instability shouldn't exceed 10%. Also, in certain condition protocol requres clock ...
3
votes
2answers
911 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: ...
18
votes
3answers
8k 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 ...
7
votes
1answer
3k views

How do I bit bang I²C master?

I've installed RPi.GPIO. It doesn't support I²C yet, but can I use it to bit bang I²C? I would just need the Raspberry Pi to be the master.