MiiNePort E2/E3 Introduction to SCM (Serial Command Mode) Command Set
DIO initial mode
Command code: PM
Command parameters: DIO port index and initial mode (0 for input and 1 for output), separated by semicolon
(;). For MiiNePort E2, the index is as following:
Index DIO port MiiNePort E2 PIN number
0 DIO 0 PIN 15
1 DIO 1 PIN 16
2 DIO 2 PIN 17
3 DIO 3 PIN 18
Note that this configuration is valid only if the related PIN function is set to DIO.
Reply parameters: N/A
?SPM0;1
System sets dio0 mode as ‘output’ for this MiiNePort.
!SPM0
MiiNePort reports command executed successfully.
DIO initial state
Command code: PS
Command parameters: DIO port index and initial output state (0 for low and 1 for high).
Note that this configuration is valid only if DIO initial mode is set to output.
Reply parameters: N/A
?SPS0;1
System sets dio0 state as ‘high’ for this MiiNePort.
!SPS0
MiiNePort reports command executed successfully.
Serial command mode trigger
Command code: CT
Command parameters: serial command mode trigger index as shown in the following table
Note that this configuration is valid only if port 1’s operation mode is not set to MCSC.
Reply parameters: N/A
0 Disable
1 H/W control pin(DIO1)
2 Activated by characters
3 Activated by break signal
?SCT2
System sets serial command mode as ‘Activate by characters’.
!SCT0
MiiNePort reports command executed successfully.
Serial command mode trigger characters
Command code: CC
Command parameters: serial command mode trigger characters, in hex, separated by a semicolon (;).
Note that this configuration is valid only if serial command mode trigger method is set to `Activated by
characters’.
Reply parameters: N/A
?SCC45;66;67
System sets serial command mode trigger characters as `ABC’
(0x656667).
!SCC0
MiiNePort reports command executed successfully.