Hello, I'm trying to use the __delay_ms function included with XC16. My program sets an output pin, calls the delay, clears the pin, and calls the delay again. When I simulate this code, it seems to work as expected twice through the main while loop, then..
↧