DECSPP—Set Port Parameter
Configures communication parameters for either a communication port or a printer port.
Format
| CSI 9/11 |
Ps1 3/n |
; 3/11 |
Ps2 3/n |
; 3/11 |
Ps3 3/n |
; 3/11 |
Ps4 3/n |
+ 2/11 |
w 7/7 |
Parameters
Ps1
determines which port is to be configured.
| Ps1 | Port Selection |
|---|---|
| 1, 0 or none | Comm Port |
| 2 | Printer Port |
Ps2
determines the data bit.
| Ps2 | Data Bit |
|---|---|
| 1, 0 or none | 8 bits |
| 2 | 7 bits |
Ps3
determines the parity.
| Ps3 | Parity | Ps3 | Parity |
|---|---|---|---|
| 1, 0 or none | No Parity | 5 | Odd Parity, Unchecked |
| 2 | Even Parity | 6 | Mark Parity |
| 3 | Odd Parity | 7 | Space Parity |
| 4 | Even Parity, Unchecked |
Ps3 selections 4 and 5 are not available for the printer port.
Ps4
determines the stop bit.
| Ps4 | Stop Bit |
|---|---|
| 1, 0 or none | 1 bit |
| 2 | 2 bits |