beautypg.com

Figure 12. zed test shield command list, Table 1, Zed test shield commands – Zilog ZUSBOPTS User Manual

Page 20

background image

UM025603-0814

Demonstrate the ZED Test Shield

Zilog Educational Shields

User Manual

13

2. The ZED Test Shield offers two menu commands,

?

and

help

, with which you can

view a comprehensive list of available Test Shield shell commands. At the

ZEDulab>

prompt, enter

?

or

help

to see these commands, as shown in Figure 12.

To view a list of parameters for each command, enter a command followed by the

?

sym-

bol. Table 1 describes all of the ZED Test Shield’s shell commands shown in Figure 12.

Figure 12. ZED Test Shield Command List

Table 1. ZED Test Shield Commands

Command

Description

?

Lists all of the available commands.

Help

Lists all of the available Help commands.

Display

Displays a command's function; parameters and syntax information; displays a string on
the LCD; temporarily turns off any monitoring; displays the first parameter on line 1 and
the second parameter on line 2. Syntax: displays “Hello World”.

Echo

Turn echo keystrokes to the console on or off. Syntax: echo on/off.

Getpins

Sets the pin(s) to input. Retrieves the pin(’s) values for specified port(s). Syntax: getpins
PX [HexNumber] , in which Hex Number is the value specifying the pins to get; defaults to
all pins.

Setpins

Sets pin(s) to output and sets the pin(’s) values for a specified port. Syntax: setpins PX
[HexNumber] ON|OFF, in which Hex Number is the value specifying the pins to set.

getadc

Sets the port to alternative function then reads the ADC value from requested ADC 0–11.
Syntax: getadc xx, in which xx is the ADC number 0–11.