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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/24/08 18:06
Read: times


 
#160271 - you need a pullup for this
Responding to: ???'s previous message
The PIC Pins are Input or Output. The 8052 is pseudo bi-directional.
For the 8052 simply write a "0" to the pin, wait the amount of time the cap needs to discharge. then write a "1" to the pin and start timing.

you need a pullup for this, the internal pullup (both short strong and 'resistive') are miserably variable (chip to chip, temp, ....)
I'd use a P0 pin for this to avoid the mess.
anyhow, of youn were to use an op-amp or comparator, why not use a A/D converter instead.

Erik



List of 25 messages in thread
TopicAuthorDate
Reading a pot using a digital input???            01/01/70 00:00      
   And a cap            01/01/70 00:00      
      Forgot to say the capacitor!            01/01/70 00:00      
         Can you show us the corresponding link?            01/01/70 00:00      
            Shure!            01/01/70 00:00      
               Oh dear...            01/01/70 00:00      
                  I agree kay...            01/01/70 00:00      
                     it will still be only for a toy            01/01/70 00:00      
                     Begin with using two free P0 port lines, ...            01/01/70 00:00      
                        Can I measure the charge and discharge time of the cap?            01/01/70 00:00      
                           yes, no, maybe            01/01/70 00:00      
                              Two caps or comparator            01/01/70 00:00      
                                 Crap, also because of several other factors...            01/01/70 00:00      
         That is a PIC not an 8052            01/01/70 00:00      
            you need a pullup for this            01/01/70 00:00      
   RE: the only thing I found was for pic            01/01/70 00:00      
   Link...            01/01/70 00:00      
   inconsistent readings            01/01/70 00:00      
      Filtering needed            01/01/70 00:00      
         even better            01/01/70 00:00      
            Not so critical            01/01/70 00:00      
   Why Not Put the Pot            01/01/70 00:00      
      I agree...            01/01/70 00:00      
         Something Like This            01/01/70 00:00      
            I guess, Chico needs it for an Midi application...            01/01/70 00:00      

Back to Subject List