Preliminary
Architecture
www.ti.com
19.2.4.2.3 Programming Models
Example 19-3. Receive IrDA
Receive IrDA frame with no parity, baud-rate = 1.152 Mbs, FIFOs disabled.
•
MDR1 = 04h
–
MDR1[2:0] = 100b: MIR mode
•
LCR = 86h
–
LCR[7] = 1: access to write DLL and DLH
–
LCR[2] = 1: set number of stop bits to 2 (default: 1)
–
LCR[1:0] = 10b: set word length to 7 bits (default: 5)
•
DLL = 01h: 1.152 Mbs
•
DLH = 0h: 1.152 Mbs
•
LCR = 06h: LCR[7] = 0 disables access to DLL and DLH and gives access to MCR, FCR, IER, BLR,
EBLR, RHR
•
MCR =03h: forces DTR and RTS output to active (low).
•
optional: IER = 1: enable RHR interrupt
Example 19-4. Transmit IrDA
Transmit IrDA 60 bytes frame with no parity, baud-rate = 1.152 Mbs, FIFOs disabled.
•
MDR1 = 04h
–
MDR1[2:0] = 100b: MIR mode
•
LCR = 82h
–
LCR[7] = 1: access to write DLL and DLH
–
LCR[1:0] = 10b: set word length to 7 bits (default: 5)
–
optional: LCR[2] = 1: set number of stop bits to 2 (default: 1)
•
DLL = 01h: 1.152 Mbs
•
DLH = 0h: 1.152 Mbs
•
LCR = 02h: LCR[7] = 0 disables access to DLL and DLH and gives access to MCR, FCR, IER, BLR,
EBLR, THR
•
MCR =01h: force DTR output to active (low)
•
optional: IER = 02h: enable THR interrupt
•
TXFLL = 3Ch: transmit frame length is 60 bytes
•
optional: EBLR = 08: transmit 8 additional starts of frame (MIR mode requires 2 starts anyway)
•
optional: set ACREG[3] = 1: SIP sends at the end of transmission
•
THR = desired data to be transmitted
1694
UART/IrDA/CIR Module
SPRUGX9 – 15 April 2011
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...