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.
First, TIMER2, can i reset timer2 of 8051??? from wat i know, timer2 jus keep on running right? so is it POSSIBLE to write a program(in C) to reset timer2??? Secondly, FOR EXAMPLE, using a real time clock. Lets say that i haf a FAN connected to a device wif a real time clock. i set the time to 8am then i want it to stop at 9am. Do u guys know how to write a program in which i have describe above in C (8051). thanks alot...
"so is it POSSIBLE to write a program(in C) to reset timer2???" Yes. "Do u guys know how to write a program in which i have describe above in C (8051)." Sure. Here it is: void main(void) { TIMER2=8am; FAN=on; while(TIMER2<9am); FAN=off; while(1); } I'll leave you to flesh out the details. Stefan
It would be nice if you first study some 8051 datasheet (there are A LOT of them on thw web) before asking for help...You can't expect people to solve all your problems.You have to do something by yourself. regards Dejan
thanks... i m goin thru the 8051 data sheets now... hopefully i can find my answer... but if there is anyone out there who can clear my doubts further please post here... thanks... appreciated...
http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf describes it in detail. Most datasheets will only touch on what is diffrent from the basic '51 for which the above link is "the bible" Erik PS "hey guys" does not say much about which subject you are asking about.