Q-Code User Manual
Ver. 7.0 2021/11/30
225
4.17 IR Command
IR Command
IR_RX = data?Path IR_RX != data?Path [Rl,Rk,Rj,Ri] = IR_RX
4.17.1 IR_TX=data
Transmit data as IR Code directly.
Note: NY9T does not support this command.
Ex.
IR_TX=0xF or IR_TX=15
; IR Code = 0x0F.
Ex.
IR_TX=0xFFF or IR_TX=4095
; IR Code = 0xFFF.
Ex.
IR_TX=0xFFFF or IR_TX=65535
; IR Code = 0xFFFF.
4.17.2 IR_TX(Rl:Rk:Rj:Ri)
Transmit IR code using Ri, Rj, Rk and Rl. Ri=bit0 ~ 3, Rj=bit4 ~ 7, Rk=bit8 ~ 11, Rl=bit12 ~ 15.
Note: NY9T does not support this command.
Ex.
R0=0xF for 4-bit mode.
TR1: IR_TX(R0)
; IR Code = 0xF.
Ex.
R0=0xF, R1=0x3 for 8-bit mode.
TR1: IR_TX(R1:R0)
; IR Code = 0x3F.
Ex.
R0=0xF, R1=0xF, R2=0x1 for 12-bit mode.
TR1: IR_TX(R2:R1:R0)
; IR Code = 0x13F.
Ex.
R
0=0xF, R1=0x3, R2=0x01, R3=0x0 for 16-bit mode.
TR1: IR_TX(R3:R2:R1:R0)
; IR Code = 0x13F.
4.17.3 IR_TX(Xj:Xi)
Transmit IR code using Xi as high-byte and Xj as low-byte.
Note: NY9T does not support this command.
Ex.
X0=0x3F for 4-bit mode.
TR1: IR_TX(X0)
; IR Code = 0x0F.
Ex.
X0=0x3F for 8-bit mode.
TR1: IR_TX(X0)
; IR Code = 0x3F.
Ex.
X0=0x3F, X1=0x01 for 12-bit mode.
TR1: IR_TX(X1, X0)
; IR Code = 0x13F.