Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Hi. I have a question about how to use the rising edge of the signal entering the GPIO input pin as a trigger.
An external clock signal is being entered into the GPIO. I have to read some data for each rising edge of the signal entering the GPIO input pin and store it in the array.
The array size is 1024, so it has to happen 1024 times. Each process should be over before the next rising edge.
The period of the signal entering the input pin is 160ns.
When the trigger occurs, the behavior is simple as follows:
dataArray[dataIndex] = (GpioDataRegs.GPCDAT.all >> 16) & 0xFFF; // 7 cycle
dataIndex++; // 2 cycle
I tried the interrupt trigger method, but it takes 40 cycles (200ns). Therefore, this method is not available.
At the heart of my question, the process of detecting the rising edge of the GPIO input pin and processing the data should not exceed 160ns.
Any way is fine, can you tell me how to detect the rising edge of GPIO signal?
Thank you.