delay time coding make me puzzled. for example: void delay() { int x=20000; do{x=x-1;}while(x>1); } how to understand it's delay.and how long time??? sincere your in advance!
hi, and how long time??? Select correct chip and osc. frequency in the project settings then set two breakpoints before and after delay() and run all in the simulator/debugger. In left field of its window there is "sec" parameter. Write down its value before delay() and calculate delay time at the second breakpoint. By the way, to Keil Support: could it be possible to edit "sec" value, please? At least to clear it manually at any desired time. Regards, Oleg