ADLINK Technology ACL -6128 Guía de usuario Pagina 33

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 40
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 32
Programming 27
Write operation:
The digital output states are written as 1 single byte to the port at
address BASE+N (N=0,1,2,3). Data is written to all 8 bits as a single
byte.
For example:
In BASIC:
05 BASE=&H2A0
06 VALUE1% = &H3F
07 VALUE2% = &HF3
10 OUT(BASE + 0), VALUE1% ‘ the digital outputs (DO0-DO7) will’
be (00111111)
20 OUT(BASE + 2), VALUE2% ‘ the digital outputs (DO16 - DO23)
will be (11110011)
Vista de pagina 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 39 40

Comentarios a estos manuales

Sin comentarios