I had simply thought that the outputs when turned on are actually switched
down to -VE (gnd)  

1 = output floating (High)
0 = output is actually switched to -VE (GND).

Thus 0 = ON

A lot of PIC devices when there outputs are switched on take its output pin
to GND.

This arrangement works well especially on initial powerup


rob


-----Original Message-----
From: Guy COLIN [mailto:guy.co...@gmail.com] 
Sent: Monday, May 17, 2010 5:20 AM
To: owfs-developers@lists.sourceforge.net
Subject: Re: [Owfs-developers] DS2413 writing to PIO: owfs 0=OFF Maxim
0=ONWhy?


> That's true when I first tried to echo 1 to turn on a relay on the 
> hobby boards 8 channel IO board, but notice this:
> 
> 1gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo
> 1
> gargamel:/etc/owfs/bus3/aux/29.E73E06000000# echo 1 > PIO.0
> gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo 
> 0
> gargamel:/etc/owfs/bus3/aux/29.E73E06000000# echo 0 > PIO.0
> gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo 
> 1
> 
> 
> This is not super obvious :)
> 

I agree this not super obvious, but I think it's because of Maxim:
the Maxim PIO status register give 2 bits per PIO   :
PIO pin state and Latch state
owfs give 3 informations per PIO:  PIO  latch and sensed
I understand that owfs PIO should be use only for write. To read the 
actual state of the pio sensed should be use
(the latch is the latch)
owfs sensed and latch are acquired from PIO register reading but owfs 
pio is used to write to the pio.
Paul is this correct?

Thks
--
Guy


----------------------------------------------------------------------------
--

_______________________________________________
Owfs-developers mailing list Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2876 - Release Date: 05/16/10
04:26:00


------------------------------------------------------------------------------

_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to