Q-Code User Manual
Ver. 7.0 2021/11/30
54
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support Serial Control TX.
AutoDetect:
Using setting of 3 pins to decide which transfer protocol NY9T uses. Auto detect pin
settings are as below table.
AutoDetect Mode
Mode
Pin-3
Pin-2
Pin-1
IR_Trigger
X
VDD
X
NY3 Serial_Trigger
Pin-3 connected to Pin-1
X
Pin-3 connected to Pin-1
SPI_Like
No Connected
No Connected
No Connected
Ex.
SerialControl =
Auto
SerialControl_Pin1 =
PF.1
SerialControl_Pin2 =
PF.2
SerialControl_Pin3 =
PF.3
;
Auto detect communication protocol.
Note: When using Auto mode, 3 pins must use the same port.
SPI_Like:
Use 2 pins to achieve a SPI-like communication protocol.
Ex.
SerialControl =
SPI_Like
SerialControl_SPI_Clock =
PF.2
SerialControl_SPI_Data =
PF.3
SerialControl_SPI_ClockTrigger =
High or Low
; Triggered by rising or falling edge.
Note: When using SPI_Like mode, 2 pins must use the same port.
NY3 Serial_Trigger:
User can connect NY3 via the serial signal, and NY9T acted as NY3 trigger
buttons.
Ex.
SerialControl =
NY3
SerialControl_NY3_Reset =
PF.3
SerialControl_NY3_Data =
PF.2
IR_Trigger:
Use a pin to simulate IR transmission signal, and can be directly used to connect
current NY4/5/7 series with IR communication.