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
  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,226 11-18-2022, 10:20 AM
Last Post: colinmarc
  GPIO Expander HAT for ROCKPro64 and Quartz64 CounterPillow 7 6,710 07-18-2022, 10:05 PM
Last Post: zer0sig
  Using GPIO interrupts antonlyap 3 4,342 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: 2 Guest(s)