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
  GPIO on the RockPro64 - all pins high? colinmarc 2 366 11-18-2022, 10:20 AM
Last Post: colinmarc
  GPIO Expander HAT for ROCKPro64 and Quartz64 CounterPillow 7 2,821 07-18-2022, 10:05 PM
Last Post: zer0sig
  Using GPIO interrupts antonlyap 3 2,559 06-30-2021, 01:32 PM
Last Post: antonlyap
  GPIO in sleep mode Mentaluproar 2 2,619 04-08-2019, 03:50 PM
Last Post: Mentaluproar

Forum Jump:


Users browsing this thread: 1 Guest(s)