Complex GPIO: can I create an exact amount of impulses (HIGH/LOW) | Cypress Semiconductor
Complex GPIO: can I create an exact amount of impulses (HIGH/LOW)
I like to produce an exact amount of impulses with a complex GPIO. The impulses should be faster than the produced impulses with a simple GPIO. With the following code snippet, I can produce an output frequency of 846 kHz. And also an exact amount of impulses.
for (u16Cnt = 0; u16Cnt < 1024; u16Cnt++)
CyU3PGpioSimpleSetValue (IS_GPIO_PIN_UART_RTS_32BIT, IS_FALSE);
CyU3PGpioSimpleSetValue (IS_GPIO_PIN_UART_RTS_32BIT, IS_TRUE);
I tried with a complex GPIO in toggle mode and there it is possible to create frequencies of almost 50MHz. But there I can not creat an exact amount of the impulses.
I like to use a frequency of 10MHz with an exact count/amount of pulses. Is this possible? If yes, how can I configure the complex GPIO?