EasyManua.ls Logo

Cmsemicon CMS32L051 - Irda Control Register (IRCR)

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 15 IrDA
www.mcu.com.cn 570 / 703
15.2.2 IrDA control register (IRCR)
This is the register that controls the IrDA function. Selects for polarity switching of received and
transmitted data, clock selection for IrDA, and switching of serial input/output pin functions (typically
serial and IrDA functions). The IRCR register is set via an 8-bit memory operation command. After the
reset signal is generated, the value of this register becomes 00H.
Figure 15-3 Format of IrDA Control Register (IRCR)
Address: 40044000H After reset: 00HR/W
symbol
7
6
5
4
3
2
1
0
IRCR
IRE
IRCKS2
IRCKS1
IRCKS0
IRTXINV
IRRXINV
0
0
IRE
IrDA enable
0
Serial input/output pins are used as the usual serial function
1
The serial input/output pins are used as IrDA functions
IRCKS2
IRCKS1
IRCKS0
Clock selection for IrDA
0
0
0
B3/16 (B = bit rate).
0
0
1
f
CLK
/2
0
1
0
f
CLK
/4
0
1
1
f
CLK
/8
1
0
0
f
CLK
/16
1
0
1
f
CLK
/32
1
1
0
f
CLK
/64
1
1
1
Disable settings
IRTXINV
Polarity switching of IrTxD data
0
IrTxD output of the transmitted data
1
Reverse the data sent for IrTxD output
IRRXINV
Polarity switching of IrRxD data
0
Use the input data from the IrRxD pin as the receive data
1
The data after inverting the input data of the IrRxD pin is used as the received data
Note 1 You must set bit1 and bit0 to 0.
2. IRCKS [2:0] bits, IRTXINV bits, and IRRXINV bits can be set only when the IRE bit is 0.

Table of Contents

Related product manuals