Zilog ZAURA868 Manual de usuario Pagina 30

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 44
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 29
ZAURA RF Module Shell
User Manual
UM023502-0911 port
24
port Set/Get GPIO pin state
Syntax
Port reg <op value>
Example 1
port e
Port_E initially 20 now 20
Example 2
port e = 40
Port_E initially 20 now 40
Example 3
port e ^ 60
Port_E initially 40 now 20
The
port console command can be used to manipulate GPIO output pins.
The
port command requires at least one parameter, reg, that specifies
which Z8F2480 GPIO port is being targeted. Valid values of reg are
a
through
e, which target the GPIO output registers PAOUT through
PEOUT. If the
<op value> parameters are omitted, then the current set-
ting of the GPIO output port is displayed.
The <op value> parameters identify a bit-wise operator to use with the
current value of the port register and the value parameter. Valid
port
operators and their usage are shown in Table 4.
Table 4. port Operator Definitions
Operator (op) Definition
= Assigns value to the target GPIO output port. Equivalent to the “C”
statement: “PxOUT = value;”
Vista de pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 43 44

Comentarios a estos manuales

Sin comentarios