hi well i want to initialize timer 0 as a counter but i dont know how to do it by writing a c program in keil that is i want to do specific task after specific interval like start motor after 10s the stop is in 6 sec and the after 20 sec start another application well i did use for loop but its not working precisely so pls tell me how to initiallize timer precisely
"i dont know how to do it by writing a c program in keil" I assume that you have read the Datasheet, so you do known what needs to be done - just not how to do it in Keil's C51? If this is not true, then your first step must obviously be to the Datasheet! The C51 Manual describes the facilities provided to use the 8051's features from a 'C' program. The uVision Getting Started guide provides a tutorial introduction to the tools. You need to start by reading the uVision Getting Started Guide, and working through the example projects in it. This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end. (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)