Texas Instruments TMS320C6A816 Series Technical Reference Manual page 1694

C6-integra dsp+arm processors
Table of Contents

Advertisement

Architecture
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
Preliminary
© 2011, Texas Instruments Incorporated
www.ti.com
SPRUGX9 – 15 April 2011
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents