Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 218381

Forum Post: TMS320F280049C: GPIO_writePin function latency

$
0
0
Part Number: TMS320F280049C Other Parts Discussed in Thread: SYSCONFIG Hello, I want to set a GPIO high when a condition occurs. For that I used GPIO_writePin function but I believe this function has a latency of 437 ns. I understand that due to the oscilloscope view. I suppose there is faster way to set a pin high with bitfield or asm. Can you help me about this? I set the GPIO settings from sysconfig: The application code of that part: if(sync==1 && EPwm1Regs.TBCTR==0) { GPIO_writePin(myGPIO14, 1); GPIO_writePin(myGPIO14, 0); // between this high and low there is 437 ns ( at every frequency) if no function is called why!!!!???? } The screenshot of the scope: Yellow channel is the PWM Blue channel is the GPIO pin. In the code I add the condition of " EPwm1Regs.TBCTR==0" and due to AQ & up-down count mode settings I expect that GPIO pin should have rise edge close to the b cursor. But it is much delayed.

Viewing all articles
Browse latest Browse all 218381

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>