Silex technology Embedded Intelligent Module SX-560 Especificaciones Pagina 65

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 104
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 64
59
Table 24 GPIO Data Commands
Command
Description
SET GPIO DATA <bit-mask>
Sets all the data out control bits.
<bit-mask> is an 8 bit mask expressed as 2 hex digits.
This value should be in the range 00-FF. The mask is
encoded as follows:
7 6 5 4 3 2 1 0
GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1
Each GPIO output bit is set to the corresponding value in
the mask. If a GPIO signal is set as an input, the value is
set but has no effect. If a GPIO signal is set for a special
function, the bit value give is ignored. For example, a
hex value of 80 sets GPIO8 to a 1 (high), all other GPIO
signals to low, except those set as special functions.
NOTE: The default output bit value on power up or reset
is 0 for all GPIO signals.
SHOW GPIO DATA
Shows the current state of the GPIO signals.
Example:
Local> set gpio data 80
Local> show gpio data
GPIO Data In
------------
GPIO #1 [1]
GPIO #2 [1]
GPIO #3 [0]
GPIO #4 [1]
GPIO #5 [1]
GPIO #6 [1]
GPIO #7 [0]
GPIO Data Out
-------------
GPIO #8 [1]
Vista de pagina 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 103 104

Comentarios a estos manuales

Sin comentarios