High-speed GPIOs
#1
Is there support to directly control the GPIO pins with C or assembly, directly?

I'm looking to control the GPIOs at 10Mhz to 100Mhz and i assume that is not possible using the Python GPIO interface.
  Reply
#2
If you look at that thread, you will see that python pyA20 library is now working with an easy fix.
There are some others too, such RPi.GPIO. But since you wish to use plain C, you can still look at the code of pyA20, the GPIO accesses are done via memory-map.
But I doubt in any cases that you will be statisfied with the speed, because the range of 10Mhz to 100Mhz is almost impossible, at least in user-space, since the kernel still needs seom CPU cycles.
What do you wish to achieve ? Maybe an hardware solution can fit better your needs...
  Reply
#3
i'm looking to control and monitor the pins of a 2Mhz microprocessor in real-time with a minimum of external hardware. i will need to control the GPIOs with less than 100ns access time.

the A64 user manual indicates that this should be possible.
  Reply
#4
Understood !
But what requires such high speed ? Monitoring, yes, but at which level ? looking at the second MCU address/data bus directly ?
Is that required for some "In circuit Real Time Debugging" ?
Otherwise, I don't see the requirements ... Handshaking between MCUs doesn't require any high speed ...
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Udev rule for gpios for non root access dkebler 2 4,891 06-13-2019, 09:30 PM
Last Post: tllim
  Active Cooling 5v brushless fan with Motor Speed Controller soft PWM MarkHaysHarris777 14 24,642 06-26-2017, 03:16 PM
Last Post: ishwest
  Active Cooling soft PWM follow-on fan motor speed controller driver MarkHaysHarris777 3 7,333 09-02-2016, 11:46 PM
Last Post: MarkHaysHarris777
  Python GPIOs martinayotte 3 7,565 04-15-2016, 11:12 PM
Last Post: peterz

Forum Jump:


Users browsing this thread: 1 Guest(s)