Dnia 2011-02-09, śro o godzinie 15:26 +0000, Mick Sulley pisze:

> The input reads 1 if it is at +5v and 0 if it is at ground.
> the output takes the pin to ground when PIO = 1 and it floats if PIO = 0
> 
> This means that if you are using it as an input PIO must be set to 0, if
> it is 1 then it pulls the pin to ground whatever the state of your
> external switch.

That explains the behaviour.  

> Also writing 0 to either of the latches resets both of them, I don't
> know if that is the case with the DS2408

Yes, the same here. 

I have another question. What's the best way to react for keypressed?
AFAIK slave can't send this event without asking? Is there something
better than pooling latch.1 in a loop?



P4trykx




------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to