I'm trying to get the maximum GPIO output speed. This code gives an output of 8 MHz. Which corresponds to 125 ns.
Code: Select all
REG_WRITE(GPIO_ENABLE_REG, BIT2 | BIT4 | BIT5); // GPIO out
while (1)
{ // 8 MHz
REG_WRITE(GPIO_OUT_W1TC_REG, (1 << 2) | (1 << 4) | (1 << 5) );//GPIO HIGH
REG_WRITE(GPIO_OUT_W1TS_REG, (1 << 2) | (1 << 4) | (1 << 5) );//GPIO LOW
}