Infrared Radiation (IR)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
305
15.3.1
IR Clock Control Register
15.3.1.1
IR_CLK_DIV
Name:
IR clock division register
Size:
32 bits
Address offset:
0x0000
Read/write access:
read/write
This register is used for IR Tx carrier clock and Rx sample clock.
31
30
29
28
…
15
14
13
12
11
10
9
…
2
1
0
RSVD
IR_CLK_DIV
R/W
Bit
Name
Access
Reset
Description
31:12
RSVD
N/A
0
Reserved
11:0
IR_CLK_DIV
R/W
0
IR_CLK = IO_CLK/(1 + IR_CLK_DIV)
Tx mode: divider number to generate IrDA modulation frequency.
For example: sys_clk = 100MHz, modulation_freq = 455kHz, IR_DIV_NUM =
(sys_clk/modulation_freq) - 1
Rx mode: waveform sample clock.
IR_DIV_NUM = (sys_clk/sample clock) - 1
For example: sample clock = 100MHz, IR_DIV_NUM = 0; sample clock = 50MHz,
IR_DIV_NUM = 1
15.3.2
IR Tx Registers
15.3.2.1
IR_TX_CONFIG
Name:
IR Tx configuration register
Size:
32 bits
Address offset:
0x0004
Read/write access:
read/write
31
30
29
28
27
26
25
24
IR_MODE_SEL
IR_TX_START
RSVD
IR_TX_DUTY_NUM
R/W
R/W
R/W
23
22
21
20
19
18
17
16
IR_TX_DUTY_NUM
R/W
15
14
13
12
11
10
9
8
RSVD
IR_TX_OUTPUT_I
NVERSE
IR_TX_DE_INVER
SE
IR_TX_FIFO_LEVEL_TH
R/W
R/W
R/W
7
6
5
4
3
2
1
0
RSVD
IR_TX_IDLE_STAT
E
IR_TX_FIFO_OVE
R_INT_MASK
IR_TX_FIFO_OVE
R_INT_EN
IR_TX_FIFO_LEVE
L_INT_MASK
IR_TX_FIFO_EMP
TY_INT_MASK
IR_TX_FIFO_LEVE
L_INT_EN
IR_TX_FIFO_EMP
TY_INT_EN
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Access Reset Description
31
IR_MODE_SEL
R/W
0x0
0: Tx mode
1: Rx mode
30
IR_TX_START
R/W
0x0
0: FSM stops at idle state.
1: FSM runs.
29:28
RSVD
N/A
0x0
Reserved
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03