PIO Keyword
The PIO keyword is used to reference a PIO or nTRST (nTRST, nTRST2, nTRST3 or nTRST4) pin defined in a Pin Mapping when:
- Obtaining the frequency of a PIO or nTRST pin through PIN_FREQUENCY
- Obtaining the voltage of a PIO or nTRST pin through PIN_VOLTAGE
- Controlling the state of a PIO or nTRST pin in a SET statement.
Example
INT voltage, frequency; voltage := PIN_VOLTAGE(PIO.nTRST); frequency := PIN_FREQUENCY(PIO.nTRST); SET PIO.nTRST := 0;
N.B. Unlike ordinary SET statements, PIO write SET statements do not check the state of the rest of the circuit before they are executed (for instance, they do not check whether they are driving in conflict against constant pins). In most situations, provided the connection from the XJLink to the circuit is defined, you can use a normal SET statement to perform an operation more safely.
XJTAG v4.1.100