Advantech PCM-9388 Manual do Utilizador Página 50

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 88
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 49
PCM-9388 User Manual 42
Key in the pin number from ’0x01’ to ‘0x0F’ to choose the multiple pin num-
bers to write the value of the output pin. The pin numbers are ordered bit-
wise, i.e. bit 0 stands for GPIO 0, bit 1 stands for GPIO 1, etc. For example, if
you want to write pin 0, 1, and 3, the pin numbers should be ‘0x0B’.
Key in the value in (R/W) Result field from ‘0x01’ to ‘0x0F’ to write the value
of the output pin. The pin numbers are ordered bitwise, i.e. bit 0 stands for
GPIO 0, bit 1 stands for GPIO 1, etc. For example, if you want to set pin 0
and 1 high, 3 to low, the pin number should be ‘0x0B’, and then you should
key in the value ‘0x0A’ to write.
Click the WRITE GPIO DATA button to write the GPIO output pins.
4.3.4.5 I
2
C
When the application is executed, you can read or write a byte of data through I
2
C
devices. All data must be read or written in hexadecimal system.
Read a byte
Key in the slave device address in Slave address field.
Key in the register offset in Register Offset field.
Click the READ A BYTE button and then a byte of data from the device will
be shown on the Result field.
Write a byte
Key in the slave device address in Slave address field.
Key in the register offset in Register Offset field.
Key in the desired data in the Result field to write to the device.
Click the “WRITE A BYTE” button and the data will be written to the device
through I2C.
Vista de página 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 87 88

Comentários a estes Manuais

Sem comentários