I/O Control Commands
AI – Arduino Input
Section titled “AI – Arduino Input”Sets the function of the Arduino DIN pin on JP1.
Syntax
Section titled “Syntax”AInAI?Parameters
Section titled “Parameters”| Value | Function |
|---|---|
| 0 | Disabled (no function) |
| 1 | Squelch open input |
| 2 | PTT input |
Default
Section titled “Default”0 (Disabled)
Examples
Section titled “Examples”AI0 # Disable DIN functionAI2 # Use DIN as PTT inputAI? # Query current function- When
AI2, grounding DIN keys the transmitter - When
AI1, DIN state reports squelch to external device - DIN accepts 3.3V or 5V logic levels
Related Commands
Section titled “Related Commands”AO— Arduino output pin
AO – Arduino Output
Section titled “AO – Arduino Output”Sets the function of the Arduino DOUT pin on JP1.
Syntax
Section titled “Syntax”AOnAO?Parameters
Section titled “Parameters”| Value | Function |
|---|---|
| 0 | Always LOW |
| 1 | HIGH when squelch open |
| 2 | HIGH when DTMF detected |
| 3 | HIGH when transmitting (TX ON) |
| 4 | HIGH when CTCSS detected |
| 5 | Always HIGH |
| 6 | HIGH when VOX triggered (firmware 2.4+) |
Default
Section titled “Default”0 (LOW)
Examples
Section titled “Examples”AO0 # DOUT always lowAO1 # DOUT high when squelch opensAO3 # DOUT high during TXAO? # Query current function- Output voltage is 2–5V based on VIO pin
- Useful for LED indicators or controller inputs
AO2requires DTMF detection enabled (DR1)AO4requires CTCSS mode enabled (TM2)
Applications
Section titled “Applications”| Setting | Use Case |
|---|---|
AO1 | Busy LED, COR indicator |
AO2 | DTMF command trigger |
AO3 | TX indicator LED |
AO4 | Selective call indicator |
EX – External Pins
Section titled “EX – External Pins”Sets the function of E_TX and E_RX pins on the DE-9 I/O connector.
Syntax
Section titled “Syntax”EXnEX?Parameters
Section titled “Parameters”| Value | E_TX (pin 7) | E_RX (pin 8) |
|---|---|---|
| 0 | HIGH when TX | LOW when squelch open |
| 1 | Serial TXD | Serial RXD |
Default
Section titled “Default”1 (TTL Serial Port)
Examples
Section titled “Examples”EX1 # Use as serial port (default)EX0 # Use as TX/SQ indicatorsEX? # Query current functionSerial Mode (EX1)
Section titled “Serial Mode (EX1)”- Pin 7 (E_TX): Serial data OUT (connect to device RX)
- Pin 8 (E_RX): Serial data IN (connect to device TX)
- Baud rate set by
B2command
Indicator Mode (EX0)
Section titled “Indicator Mode (EX0)”- Pin 7 (E_TX): HIGH during transmit, LOW during receive
- Pin 8 (E_RX): LOW when squelch open, HIGH when closed
- Serial mode uses 3.3V logic levels
- Indicator mode useful for external controllers
- Choose mode based on what’s connected to DE-9
LD – Status LED
Section titled “LD – Status LED”Sets the function of the ST (status) LED on the board.
Syntax
Section titled “Syntax”LDnLD?Parameters
Section titled “Parameters”| Value | Function |
|---|---|
| 0 | Always OFF |
| 1 | Always ON |
| 2 | ON when squelch open |
| 3 | Battery charge status (legacy) |
| 4 | ON when VOX triggered (firmware 2.4+) |
Default
Section titled “Default”2 (Squelch open)
Examples
Section titled “Examples”LD0 # LED offLD2 # LED on when signal receivedLD? # Query current function- The RS-UV3A has three LEDs: PWR, TX, and ST
- PWR and TX are fixed function
- Only ST LED is user-configurable
LD3is a legacy function for older boards with battery charging