Q-Code User Manual
Ver. 7.0 2021/11/30
327
5.10 Serial Control Protocol
User can set the NY9T as the keys of MCUs.
Q-Code
provides 3 kinds of transfer protocols: SPI_Like,
NY3 Serial_Trigger and IR_Trigger. User can set to automatically detect or specific transfer protocol.
SPI_Like:
Use 2 pins to achieve a SPI-like communication protocol.
NY3 Serial_Trigger:
User can connect NY3 via the serial signal, and NY9T acted as NY3 trigger buttons.
Please refer to NY3C/3D series specification for the detailed connection usage.
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.
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
The timing charts of Serial Control transfer protocol are shown below.
SPI_Like Timing:
D1
D0
D15
D14
1500us
50us
25us
25us
2700us
Data
(Pin-3)
/Clock
(Pin-2)
Clock
(Pin-1)