Dear all,
I am using a TivaC series launchPad (TM4C123G) with CSS C. I am trying to make fast GPIO port read when pin from another port is toggled (PORTF_1).
Polling a bit with
while(HWREG(GPIO_PORTF_BASE + GPIO_O_DATA + 0x08)!= 0x02)
{
;
}
is quite slow, but to make things worse it introduces a lot of jitter (which is quite the same I guess). I get 150 ns of jitter with MCU running @ 80 Mhz - 12 clocks?
If I try to poll with GPIO_PORTF_AHB_BASE - the program throws me to the (FaultISR)
//***************************************************************************** // // This is the code that gets called when the processor receives a fault // interrupt. This simply enters an infinite loop, preserving the system state // for examination by a debugger. // //***************************************************************************** static void FaultISR(void)
If anyone knows a faster bit polling it would be appreciated.
Best regards
Primoz