Hi,
I'm using the OMAPL138 processor (CLOCK=300 MHz) and startet with a DSP/BIOS (5.41.11.38) applikation. I also implementet the PSP-GPIO-Driver (1.30.01) . But when control the pinvalue, as shown in the PSP-example, and put the following code in a while-loop:
pinCmdArg.pin = GPIO8_14_PIN;
pinCmdArg.value = 0;
Gpio_setPinVal(gpio0, &pinCmdArg);
pinCmdArg.pin = GPIO8_14_PIN;
pinCmdArg.value = 1;
Gpio_setPinVal(gpio0, &pinCmdArg);
The measured frequency on this pin is at 520 kHz. No parallel Task is running. The Symbol "PSP_DISABLE_INPUT_PARAMETER_CHECK" is defined, performance the same than without this defined symbol. To get a higher toggle frequence, I extracted the following lines from the PSP-Driver and put it also in a while loop:
gpioBaseAddress->BANK[4].SET_DATA = (1u<<14);
gpioBaseAddress->BANK[4].CLR_DATA = (1u<<14);
The measured frequency on the pin is now 8.222 MHz but in my mind still slow.
Can anybody suggest me a way how to increase the speed of this procedure?
Thanks a lot,
Christian