Am Donnerstag, 18. Januar 2007 15:24 schrieb Gene Dio:
>
> I am in pure testing mode with this, so I am triggering the counters with a
> pair of simple momentary contact switches (interpet that to mean a pair of
> $2 doorbell switches from the local hardware store).  The final use for
> this will be much more complex, but I am using this approach to get my
> system setup and test my code.
>
Simple switches "bounce" -- that means produce loose connection after pressing 
them because of the springiness of the metal contacts. You have to ged rid of 
those spikes, as the DS2423 think they are valid pulses.

With simple doorbell switches, a RC circuit (or better, a monoflop) for each 
switch is neccesary.

To increase the rise time, connect an additional capacitor in parallel to the 
switch. Increase the capacitor value in *10 units until no bounces appear. 
The correct values must be probed with the actual switch


+5V--------+
           |
          +-+
          | |
          | | 100k
          | |
          +-+
           |
INPUT------o-----------+
           |           |
          ---          o  /
               1n        /
          ---          o/
           |           |
GND--------o-----------+


Kind regards

        Jan
-- 
1) Never draw what you can copy.
2) Never copy what you can trace.
3) Never trace what you can cut out and paste down.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to