Infrared Radiation (IR)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
313
Idle
Carrier
No carrier
Idle
Original
Only change
IR_TX_IDEL_STATE
reg 4[6]
Only change
IR_TX_OUTPUT_INVERSE
reg 4[14]
Only change
IR_TX_DE_INVERSE
reg 4[13]
Fig 15-5 Tx output level
15.4.1.2
IR Learning
(1)
Enable IR clock, set RCC configure register.
(2)
Disable all interrupt.
(3)
Set sample clock use IR_CLK_DIV.
(4)
Set IR Rx work in auto mode and configure IR_RX_TRIGGER_MODE.
(5)
Set Rx FIFO threshold if needed.
(6)
Clear all interrupt.
(7)
Set IR work mode.
(8)
Set RX_TRIGGER_MODE
(9)
Start IR Rx FSM.
(10)
Read Data from Rx FIFO
15.4.2
Receiver Application
For receiver application, initialization process is the same as IR learning. It is important to note that diode input increases CPU load, because
software must de-module carrier signal.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03