4

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? I couldn't find any timing specifications or diagrams.

3

You can toggle a gpio at around 25 MHz.

I expect you could get perhaps a tenth of that if you were to bit bang. Of course that really depends on what you are bit banging.

For general information see http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/raspberry-pi/gpio-pin-electrical-specifications

| improve this answer | |
-1

The limitation is going to be how fast the CPU can 'deliver' the data. To get max. speed you are going to have to write some tight assembly / C code (as well as overclock the CPU)

The 'standard' pins are driven '(one) bit at a time', whilst the GPIO uSB has, I believe, a 16 bit pipe-line (it is, I gather, theoretically capable of more than 300mbs = remember, the 4 x USB 2.0 ports PLUS the 100mbs Eterhnet on the B+ all have to go down the same pipe (actually, they can't, at least not a full speed))

There is also the 'SPI', 'I2C' and 'Serial UART Link' GPIO pins. APPARENTLY these support some form of DMA (plus they have some sort of 'shift register' pipeline), however the drive clocks are limited to some max. multiplier .. see here http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=17559 .. the same link suggests that the pins themselves acan go to at least 100MHZ (but, again, I refer you to the USB pins ..)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.