Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 41 messages in thread
TopicAuthorDate
constant delay-----problem            01/01/70 00:00      
   clarification needed            01/01/70 00:00      
   Timer 0 Mode 1            01/01/70 00:00      
       Timer 0 Mode 1            01/01/70 00:00      
         yes 16-bit mode            01/01/70 00:00      
            show the code            01/01/70 00:00      
               code            01/01/70 00:00      
                  check            01/01/70 00:00      
                  be sure your problem easily solved            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        re:no i am using a trainer kit            01/01/70 00:00      
                           code again            01/01/70 00:00      
                              direct vs. immediate addressing            01/01/70 00:00      
                              be sure your problem easily solved again            01/01/70 00:00      
                                 i tried ur code            01/01/70 00:00      
                                    Please be specific!            01/01/70 00:00      
                                       oh YOU            01/01/70 00:00      
                                       re:jan            01/01/70 00:00      
                                          hello            01/01/70 00:00      
                                             use MOVX @Ri            01/01/70 00:00      
                                                8-BIT MEMORY I/O ?            01/01/70 00:00      
                                                   can't be done            01/01/70 00:00      
                                                   can be done            01/01/70 00:00      
                                                      i am asking 8-bit I/O            01/01/70 00:00      
                                                         If you read Erik's answer            01/01/70 00:00      
                                                         now you lost me            01/01/70 00:00      
                                                            Guessing what he means            01/01/70 00:00      
                                                         Set P2            01/01/70 00:00      
                                                            Write P2 once            01/01/70 00:00      
                                       tested code and pulses            01/01/70 00:00      
                                          Missing Picture            01/01/70 00:00      
                                          picture again            01/01/70 00:00      
                                             Re:Picture again            01/01/70 00:00      
                                          picture and code posted again            01/01/70 00:00      
                                    Have you Tried a fixed value?            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        Divide and conquer            01/01/70 00:00      
                           And not writing them...            01/01/70 00:00      
               want a program of timer            01/01/70 00:00      
   tracing your code manually....            01/01/70 00:00      
   thanks            01/01/70 00:00      

Back to Subject List