??? 02/04/05 19:06 Read: times |
#86574 - constant delay-----problem |
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. |