GPIO performance 100x slower compared to Raspberry Pi 3
#7
Thankfully the raspberry Pi RPi.GPIO is open source so I have access to the source code.

I have just tried to rewrite the R64/RP64.GPIO python wrapper using a C library i wrote that replaces python writes to /sys/class/gpio with c writes.

The best I could get was 190us SPI Clock of 5.26KHz  

it is more than twice as fast but nowhere near the raspberry pi performance.

I will do some digging and see if there is a faster solution and avoid /sys/class/gpio completely.

I believe that the raspberry pi uses the linux kernel gpio.h library which I hope has been implemented on the RockPro.

watch this space!


Messages In This Thread
RE: GPIO performance 100x slower compared to Raspberry Pi 3 - by axelf - 03-24-2019, 06:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  using spi and gpio nano2 0 551 07-09-2024, 07:16 PM
Last Post: nano2
  GPIO on the RockPro64 - all pins high? colinmarc 2 2,225 11-18-2022, 10:20 AM
Last Post: colinmarc
  GPIO Expander HAT for ROCKPro64 and Quartz64 CounterPillow 7 6,680 07-18-2022, 10:05 PM
Last Post: zer0sig
  Using GPIO interrupts antonlyap 3 4,341 06-30-2021, 01:32 PM
Last Post: antonlyap
  GPIO in sleep mode Mentaluproar 2 3,812 04-08-2019, 03:50 PM
Last Post: Mentaluproar

Forum Jump:


Users browsing this thread: 1 Guest(s)