Rainbow-electronics DS2482-800 Manual do Utilizador Página 18

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 22
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 17
DS2482-800: Eight-Channel 1-Wire Master
18 of 22
Data Direction Codes
Master-to-Slave Slave-to-Master
I²C Communication Examples
Device Reset, e.g., after power-up
S AD,0 A DRST A Sr AD,1 A <byte> A\ P
This example includes an optional read access to verify the success of the command.
Write Configuration, e.g., before starting 1-Wire activity power-up
Case A: 1-Wire idle (1WB = 0)
S AD,0 A WCFG A <byte> A Sr AD,1 A <byte> A\ P
This example includes an optional read access to verify the success of the command.
Case B: 1-Wire busy (1WB = 1)
S AD,0 A WCFG A\ P
The master should stop and restart as soon as the DS2482 does not acknowledge the command code.
Channel Select, e.g., to select another 1-Wire channel
Case A: 1-Wire idle (1WB = 0)
S AD,0 A CHSL A E1h A Sr AD,1 A <byte> A\ P
E1h is the valid channel selection code for IO1. This example includes an optional read access to verify the
success of the command.
Case B: 1-Wire idle (1WB = 0), invalid channel selection code
S AD,0 A CHSL A E5h A\ P
E5h is an invalid channel selection code.
Case C: 1-Wire busy (1WB = 1)
S AD,0 A CHSL A\ P
The master should stop and restart as soon as the DS2482 does not acknowledge the command code.
Set Read Pointer, e.g., to read from another register
Case A: valid read pointer code
S AD,0 A SRP A C3h A P
C3h is the valid read pointer code for the configuration register.
Case B: invalid read pointer code
S AD,0 A SRP A E5h A\ P
E5h is an invalid read pointer code.
Vista de página 17
1 2 ... 13 14 15 16 17 18 19 20 21 22

Comentários a estes Manuais

Sem comentários