GPIO performance 100x slower compared to Raspberry Pi 3
#8
Hello,
  I have written a small library to operate GPIO of ROCKPro64 in C. 
I was able to generate a square wave with period of around 2.2 microseconds. This means around 0.45 MHz. All measurements done with ROCKPro itself - I have no oscilloscope at hand.
If you are implementing SPI by software controlling of GPIO pins, this may be the way to go. But, if I understand the drawing correctly, there is a hardware SPI available on pins 19, 21, 23, 24.
  I have to admit, that my result is probably still away from hardware capabilities. I am doing everything in user space, preserving state of other pins and protecting against collisions by using a mutex at each change of pin state. This is necessary, because I would like to operate more pins simultaneously in future. 
  Best regards,
  Gienek.


Messages In This Thread
RE: GPIO performance 100x slower compared to Raspberry Pi 3 - by Gienek - 08-30-2019, 11:19 AM

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)