We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello all ; can any one hellp me i write aprogram . when i put it like below it can be compiled but if i put delay_time after timer0 interrupt it can not be compiled void delay_time (unsigned int time_end) { unsigned int index; for (index = 0; index < time_end; index++); } void timer0 (void) interrupt 1 { static unsigned char idata var1=0; static unsigned char idata var2=0; if(++var1==255) { var1=0; if(++var2==13) { var2=0; read_from_8046(); } } TF0=0; EA=1; } thanks all;
You've posted it twice and still not read the instructions on how to post code! The Notes section gives 3 bullet points above the 'Message' box when you make a post - read them! See also: http://www.keil.com/forum/tips.asp And use the 'Preview' button before 'Post'
if you persist in misposting, no wonder you also miscompile. Erik