CubieBoard Forum

Cubieboard itself => Hardware => Cubieboard v2 Hardware (A20 Based) => Topic started by: hamidreza on August 12, 2014, 04:14:08 pm

Title: How Much is the Maximum Speed of GPIOs in Cubieboard 2
Post by: hamidreza on August 12, 2014, 04:14:08 pm
Hello All,

How much is the maximum speed one can get from GPIO pins in Cubieboard2. I have tried several C codes that can access (write) into memory address of the GPIO pins, but I could not get the speed more than 2MHz. Is there anybody who could get a more speed over GPIOs?

I need the speed of 12 Mhz and so I will be very thankful if someone can share experiences..
Title: Re: How Much is the Maximum Speed of GPIOs in Cubieboard 2
Post by: mMerlin on April 15, 2016, 09:52:12 pm
On an A20-OLinuXino-MICRO-4GB board https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO-4GB/ I got to just under 8 MHz bit-banging a port through mmap.  Same chip, I think the same speeds.  Solid 8MHz running standalone code.

After configuring all pins of PI to be outputs:
    volatile uint32_t tstVal = 0;
    while(true) {
      tstVal ^- 0xffffffff;
      *PI_Data = tstVal;
    }