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.
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
The SILabs F12x and the Philips P89C668 datasheets both describe timer 2 in excruciating detail. Since T2 is a 'standard device' (except for the SILabs deviates F3x -up) you can refer to a datasheet for another device without any problems.
te siemens 80517a has difrfeent t2 cofinguration!
"code calculetes number for th1 (sic) and tl2"
Here is the code that you posted, then:
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 }
Is see no mention of either TH2 or TL2 in that!!
It is, therefore, irrelevant!
"i not help you any more!"
That's a relief!
no no no
the code calcs the number you load to timer.
see the retrun number answer.
so code is relevent
see!
ex;
th2 = getBAUDSPEED( 9500 ) >> 8; // set high timer tl2 = getBAUDSPEED( 9500 ) & 255; // set low timr <//pre>