beautypg.com

Shell commands, Table 2 – Zilog ZUSBOPTS User Manual

Page 21

background image

UM025503-0814

Shell Commands

Zilog Educational Platform

User Manual

15

Shell Commands

Table 2 lists the ten standard Shell commands for controlling the Zilog Educational Plat-
form. These commands are described in greater detail in the

Mini-Z Shell and Flash

Loader Reference Manual (RM0061)

.

Example 1.

To view a command’s parameters, enter the command, followed by the

?

character, as shown in the following example:

Setpins ?

The console will display the following response:

Sets the pin(s) to output and sets the pin(s) values for a

specified port.

Syntax: setpins PX HexNumber ON|OFF (Hex number is the value

Table 2. Shell Commands

Command

Description

?

Lists all available commands.

Help

Lists all available commands.

Display

Displays a string on the LCD panel. Turns off any monitoring, displays the first param-
eter on line 1, and displays the second parameter on line 2.

Echo

Turns Echo Keystrokes to the console ON or OFF. Syntax: echo on|off

Getpins

Sets the pin(s) to INPUT and retrieves the pin values for a specified port.

Syntax: getpins PX HexNumber, in which HexNumber is the value specifying the pins
to get; defaults to ALL.

Setpins

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

Getadc

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

Confpwm

Configures the PWM cycle period from 1–20 kHz. The absence of a parameter will
result in a display of the current setting. Syntax: confpwm 2

Setpwmduty

Configures the PWM channel’s duty cycle, from 1 to 100. The absence of a duty
parameter will result in a display of the current selected PWM setting.

Syntax: setpwmduty xx [DD], in which xx is the PWM number from 1 to 6, and DD is
the duty cycle, from 0 to 100.

Startshield

Starts a shield that is plugged into the Platform. Use the List parameter to view the list
of shields. Syntax: startshield xxxx, in which xxxx is the shield name, or list to view all
available shields.