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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/25/08 15:29
Read: times


 
#160296 - Begin with using two free P0 port lines, ...
Responding to: ???'s previous message
... because of the absence of active internal pull-ups here. I think Erik already mentioned this.

Writing "0" to the corresponding SRF bits makes the port lines emitting "0" and by this discharging the caps. Afterwards, write "1" to the corresponding SFR bits to turn-off the discharging open-drain outputs and start a timer. Now, the potentials at the port lines begin to rise. Everything to do is to poll the states of P0 port lines, and, when skipping from "0" to "1", to read the timer to get the charging times.

Kai

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