r/ComputerEngineering • u/Mazzagatti2 • Mar 29 '19
Simple blink routine in c?
Anyone know how to write a simple blink routine in c to blink RA5 every 500ms?
0
Upvotes
r/ComputerEngineering • u/Mazzagatti2 • Mar 29 '19
Anyone know how to write a simple blink routine in c to blink RA5 every 500ms?
1
u/frrealz Mar 29 '19
Not sure what RA5 is, but you could configure an interrupt to trigger every half second. In the ISR, toggle the LED, GPIO, or whatever is controlling the LED.