beautypg.com

Port, Table 4, Port operator definitions – Zilog ZAURA868 User Manual

Page 30: Port set/get gpio pin state

background image

ZAURA RF Module Shell

User Manual

UM023502-0911

port

24

port

Set/Get GPIO pin state

Syntax

Port reg

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

parameters are omitted, then the current set-

ting of the GPIO output port is displayed.

The 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;”

This manual is related to the following products: