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.
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>
so code is relevent float t, q; // variebles using floats for a simple calculation to just about the most irrelevant, or should I say ridiculous, I have ever seen for a '51
Erik
See... it IS good for something (i.e., a good laugh).
And, after all, don't you think that's what the poster's looking for?