i'm using uVision to code my program. anybody tell me how to delay a period of time in C?
You can simply loop for some time and take care that each turn in the loops takes roughly 12/f (where f is the crystal frequency). Or if you need accurate timing you can use the timers together with he overflow flags good luck