beautypg.com

Testing shell commands – Zilog ZUSBOPTS User Manual

Page 22

background image

UM025503-0814

Shell Commands

Zilog Educational Platform

User Manual

16

specifying the pins to set)

Example: setpins PA FF on : Will set all pins of Port A to 1s

Example 2.

To view a list of application shields integrated into the root shell, enter the

following command:

startshield list

The console will display the following response:

WLAN

BT

WoS

RF

The Educational Platform ships with a System Test shield that will show if all of the avail-
able I/O outputs are in working order by turning each line’s LED ON.

Testing Shell Commands

To test a shell command, observe the following procedure.

1. Insert the shield into place and use the

setpins

command to test PA thru PE and

seven individual ports, as follows:

Setpins PA FF ON

As a result, all pins on Port A are turned ON.

Setpins PA 55 ON

The command above turns on all alternating bits, as diagrammed below.

Weight

8 4 2 1 8 4 2 1

8 4 2 1 8 4 2 1

Bit

7 6 5 4 3 2 1 0

7 6 5 4 3 2 1 0

PA = 0x55

0 1 0 1 0 1 0 1 PA = 0xFF

1 1 1 1 1 1 1 1

On Port A, bits 4 and 5 can be controlled only when the UART is not in use; otherwise,
these pins are used as the Tx and Rx signals.

2. Repeat

Step 1

for ports PB, PC, PD and PE. All LEDs should illuminate.

Note:

Note: