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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/26/07 16:23
Read: times


 
#142372 - Code wont work properly
Responding to: ???'s previous message
It is nice to see that you have posted your code.
All things are OK except that starting of Timer is not proper.
Here is correction:


MOV TMOD, #0Dh ;timer-0 in 16bit counter mode and gated with INT0
MOV TH0, highbyte(-10,001d) ; load value with -10001 d
MOV TL0, lowbyte(-10,001d)


JNB INT0,$ ;Wait for BUSY to go HIGH


SETB TR0 ; start timer-0
JB INT0, $
MOV R0,TL0
MOV R1,THO


As the measurement can commence any time, it may be in the
middle of BUSY being HIGH so wait for rising edge of BUSY.
Now this will give same reading everytime.
If you find that with input zero, the reading is other than
zero like 0FFFFh or 0001h then adjust the 10001 setting accordingly.

List of 41 messages in thread
TopicAuthorDate
ICL7135 count read with its CLOCK pin?            01/01/70 00:00      
   What do you plane to learn from the clock?            01/01/70 00:00      
      asm code            01/01/70 00:00      
         You didn't answer the fundamental question            01/01/70 00:00      
         You have missed the point ...            01/01/70 00:00      
            No, Richard you have missed the point            01/01/70 00:00      
               It seems you\'re right!            01/01/70 00:00      
                  RE: to Richard Erlacher            01/01/70 00:00      
                     Come on ... don\'t you want to do any work at all?            01/01/70 00:00      
                        Truly, a budding manager...            01/01/70 00:00      
   See the clock and integrator waveform            01/01/70 00:00      
      What are you good at?            01/01/70 00:00      
         It is not            01/01/70 00:00      
            Elementary simple Erik            01/01/70 00:00      
               Missed the point!            01/01/70 00:00      
            Clock biting? Hhm...            01/01/70 00:00      
               OH            01/01/70 00:00      
                  Wait a minute...            01/01/70 00:00      
                     no, it was ~12MHz (uC) and 20kHz            01/01/70 00:00      
                  One swallow doesnt make a summer            01/01/70 00:00      
                     well if you are happy with one bit less of precisi            01/01/70 00:00      
                        One's view depends on how you at it!            01/01/70 00:00      
                           that does not improve precision            01/01/70 00:00      
                              Please refresh your knowledge of Legal accuracy            01/01/70 00:00      
                                 this is nonsense            01/01/70 00:00      
               What's "Clock Biting?"            01/01/70 00:00      
                  clock biting            01/01/70 00:00      
                     Duty Cycle "biting" doesnt have effect on this            01/01/70 00:00      
                        can't you READ?            01/01/70 00:00      
                     I see ... so it's like "frame slip" in comm's            01/01/70 00:00      
         my test asm code to count ADC value of ICL7135            01/01/70 00:00      
            Code wont work properly            01/01/70 00:00      
   thnks for suggestion            01/01/70 00:00      
      6 Digits?            01/01/70 00:00      
         RE: 6 digit reason..            01/01/70 00:00      
            CHEAT            01/01/70 00:00      
               Use extra digits for something useful            01/01/70 00:00      
                  How 6 digit matter?            01/01/70 00:00      
                     my code to display on 6 digit display            01/01/70 00:00      
            Just ignore the spare one!            01/01/70 00:00      
            left-justify the display            01/01/70 00:00      

Back to Subject List