2011-01-03 12:41 AM
GPIO-speed
2011-05-17 05:20 AM
Your are writing to a cache register. It will change like any other register with 72MHz. The output circuit is scanning this register with its own frequency (<50MHz, in your case probably 36MHz) and changes the output according to the register value.
The output is depended on the asm code.2011-05-17 05:20 AM
Thank you. I want to generate a clock to a shift register from C-code. What do you think would be a nice solution? Insert a delay between each write to the GPIO-pin?
2011-05-17 05:20 AM
Thank you. I want to generate a clock to a shift register from C-code. What do you think would be a nice solution? Insert a delay between each write to the GPIO-pin?
Depends on the max frequency of your shift register. Chances are you don't need any delay, as the speed at which you can toggle the pin are limited to your access speed to the GPIO registers. The 50 MHz for the IO pins refers to the strength of the drivers, the slew rate, ie how fast the edges are, not how fast you can actually toggle them. The SPI clocks and registers could also act as fast clock sources, and as shift registers. You could also use the timers to generate clocks. There are probably other solutions, but the problem isn't well defined.