I am trying to write a program in C for an M16C microcontroller. I want to delay the execution of a piece of code for maybe a millisecond then carry on with the program:
P = 1
wait 1 ms
P = 0
Does anyone have any ideas on how to do this and what header files I might need for the code?