??? 02/04/05 20:00 Read: times |
#86577 - Timer 0 Mode 1 Responding to: ???'s previous message |
Vijayganesh S said:
this thread is posted separately from "memory in Keil" thread
for a small data, i used to test my code in the 8051-kit. I used timer-0 and from code memmory i fetched the pre-loaded values to TL0 & THO. Then i have set the Port 1 and Port 2 pins in some patern. the timer starts and runs well....... But it generate the pulses with same time interval, ie., at constant frequency(say,6.66Khz). I cheched the TL0,TH0 locations they are loaded correctly. But for all the delay counts, i get the pulses at same interval only, no variations. Please help me for this problem ................................... I used Mode-1, the delay value will vary independently from Look-up table. I tried for both the timers. but it yields same result. Timer 0 in mode 1 is a simple 16 bit timer. It does not have an auto reload function so every time it overflows you need to re-load the values of TL0 and TH0. Hope this helps Ian |