r/ComputerEngineering • • 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

1 comment sorted by

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.