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.
i wanted to configure timer 2 of at89c51ed2 can any one give code to do so and and tell how to obtain a specific frequency.
T2CON = 55h; // set t2con to 55 T2CAP1 = 12h; // set t2cap1 to 12 TMOD2 = 110101b; // set tmod2 to 32 TH2 = 1; // set th2 to 1 TL2 = 1; // set tl1 to 1
Well, if you used that code in the C51 compiler, it would certainly not compile!
hey but somebody can plz give me the correct code for timer 2 of at89c51ed2
i need the code urgently
When is your school assignment deadline?
well first of all its not a school assignment
deadline is by tomorrow
So what is it, then?
Try clicking the 'Support' link at the top of this page;
Then look at 'Example Programs and Utilities'
Then look at 'C51 Download Files'
Then what do you see...?
People who write 'u', 'plz' and similar, and make a new request after only 3 minutes are almost always trying to get help with their school assignments.
People who do commercial jobs, have normally learned the lesson: If you want something done in a hurry, you better do some work yourself. Five minutes with a good search engine will normally produce more good information than the forum members will be able to post during quite a number of days.
If you want to search for a solution - try a search engine. If you want to discuss an existing solution, try a forum.
did my helping code you look at befoor fix your prboblem?
if you want i can show you some more but after yesterday.
i got some more code from ny project for you.
but plz donut show to everyone.
int getBAUDSPEED( float SPEED) { float t, q; // variebles t = 1 / ( CLOCK / SPEED ); // sum it clock divided by speed t = t * 100 + 27; // add magic amunt q = t * SPEED; // change to variable return t + q / 113; // return the asnwer } </pree>
So, how long will you troll on this forum with faked posts then? Have you tought about what it says about your mental age?
if you donut like my code plz donut use it.
i think somepeople will think it is good!
goodbuy
"i think somepeople will think it is good!"
Even on the assumption that someone might think it "good", it is most certainly not relevant to this thread!
i set up timer 2.
i give code to make th2 and tl2 numbers.
why is code not revelant?
"i give code to make th2 and tl2 numbers."
Your original code, which did mention TL2 and TH2, was clearly rubbish - it would not even compile;
Your list of header files was worthless;
Your more recent code does not have anything to do with Timer-2 - therefore, it is not relevant to this thread!
code calculetes number for th1 and tl2 and is revelant!
bcoz you dis me i not help you any more!
have a nice day goodbye
any more?????????????????? what help have you given so far? I see NONE that you post some irrelevant and/or faulty code snippets hardly constitute help
Erik