Hi,
Im having trouble using both timer0 and timer 1 in the at89s51.Ive looked all over and not found anybody saying you cant use both simultaneously. But im finding that when i switch one off then the other one works just fine. Both timers are pretty resource hungry.I want timer1 to generate a frequency btween 200 and 600 hz and timer0 is presently being used to refresh a seven segment display .The while loop is pretty large also and im polling many buttons and various conditions.
Can someone send me some sample code? Do i have to use mode 3 only by any chance?
Thanks
Harsha
Im having trouble using both timer0 and timer 1 in the at89s51.Ive looked all over and not found anybody saying you cant use both simultaneously. But im finding that when i switch one off then the other one works just fine. Both timers are pretty resource hungry.I want timer1 to generate a frequency btween 200 and 600 hz and timer0 is presently being used to refresh a seven segment display .The while loop is pretty large also and im polling many buttons and various conditions.
Can someone send me some sample code? Do i have to use mode 3 only by any chance?
Thanks
Harsha