Q-Code User Manual
Ver. 7.0 2021/11/30
227
; Bit[11:8] to R2.
4.17.9 [Xj, Xi] = IR_RX
Write the received IR code to RAM. Xi=bit0~7, Xj=bit8~15.
Note:
1. NY9T does not support this command.
2. Using this command before receiving IR data will get unknown data.
Ex.
IR_Bit = 12
[X0] = IR_RX
; Write Bit[7:0] of IR code to X0.
[X1, X0] = IR_RX
; Bit[7:0] of IR code will be written to X0.
; Bit[11:8] of IR code will be written to X1 and
; X1[7:0] will be 0.
4.18 Serial Control TX Command
Serial Control Command
4.18.1 SC_TX(Mode, Parameter)
User can use the NY9T as the keys of MCUs.
Q-Code
provides 3 kinds of transfer protocols: SPI_Like,
NY3 Serial_Trigger and IR_Trigger. Only supports 16-bit mode.
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.
Mode
: Select communication protocol of Serial Control signal or use pins to auto detect the
communication protocol.
Auto Detect
Ex.
SC_TX(Auto, 0xFFFF)
SPI_Like
Ex.
SC_TX(SPI_Like, 0xFFFF)
NY3
Ex.
SC_TX(NY3, 0xFFFF)
IR_Trigger
Ex.
SC_TX(IR_Trigger, 0xFFFF)
Parameter
: Data transmission.
Data (support 16-bit)
Ex.
SC_TX(Auto, 0xFFFF)
Ri (support to 1 ~ 4 Ri)
Ex.
SC_TX(Auto, R3:R2:R1:R0)