pin - Digital pin control
Configure a digital GPIO-capable probe as an input or output, and drive or read its logic level.
Usage:
- command: pin <probe> input [pullup|pulldown]
- command: pin <probe> output [low|high]
Argument |
Description |
|---|---|
probe |
|
|
|
|
Enable the internal pull-up resistor on the pin. |
|
Enable the internal pull-down resistor on the pin. |
|
Configure the probe as an output, driven to the given level. |
|
Drive the output low (default if no level is given). |
|
Drive the output high. |
If neither pullup nor pulldown is given for an input pin, the pin
is left floating. UARTx_RTS and SWD_NRST only support output (they
cannot be configured as inputs); read a digital signal’s level instead with
the measure - Probe Measurement command’s pin channel.
Note
On the PLT-300A, the DDTP00 ... DDTP08 pins need to be connected to
the Multiplexer sub-system, to be used as GPIOs.
Use the mux connect DDTPxx command to to connect such a pin to the Multiplexer sub-system.
Warning
When DDTPxx pins are connected to the Multiplexer sub-system,
the maximum voltage is 5.5V.
Examples