參數(shù)資料
型號(hào): XR88C192CV
廠商: EXAR CORP
元件分類: 微控制器/微處理器
英文描述: DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER
中文描述: 2 CHANNEL(S), 1M bps, SERIAL COMM CONTROLLER, PQFP44
封裝: TQFP-44
文件頁(yè)數(shù): 23/32頁(yè)
文件大?。?/td> 186K
代理商: XR88C192CV
XR88C92/192
23
Rev. 1.31
PROGRAMMING EXAMPLES
The following examples show how to initialize the XR88C92/192 for various operating conditions:
A) The first example will initialize channel A of an XR88C92 device for regular RX/TX. The operating parameters will
be 9600 baud, 8 word length, no parity and 1 stop bit.
Operation Register
Value
Remarks
Write
Write
Write
Write
Write
Write
Write
Write
Write
Read
CRA
CRA
CRA
CRA
MR0A
MR1A
MR2A
CSRA
CRA
SRA
0x20
0x30
0x40
0xB0
0x00
0x13
0x07
0xBB
0x05
; reset RX (receiver)
; reset TX (transmitter)
; reset error status
; reset MR pointer to MR0
; use normal baud rate table. Now MR pointer points to MR1
; select word length & parity. Now MR pointer points to MR2
; normal mode (not loopback) & 1 stop bit
; 9600 baud for RX & TX - clock source is XTAL1
; enable RX & TX
; should get a value 0x0C
B) This example will show how to use hardware flow control for both RX (RTS via OP0) and TX (CTS via IP0):
Write
Write
Write
CRA
MR1A
MR2A
0x10
0x93
0x17
; reset MR pointer to MR1
; select auto RTS control. The -RTS signal is sent via output OP0
; select auto CTS control. The input IP0 serves as the -CTS signal
C)This example will configure clock sources for TX and RX of both channels and C/T. Specifically, XTAL1 will be
used as channel A's TX clock; IP4 as channel A's 16X RX clock; IP5 as channel B's 1X TX clock and XTAL1 as
channel B's RX clock. Also, the C/T will be initialized in the timer mode and IP2 will be used as its clock source.
Some of these will be programmed to appear at the multi-purpose output pins:
Write
ACR
0x40
; C/T initialized in timer mode & IP2 chosen as its clock source
; also, bit-7 = 0, therefore baud rate Set1 has been selected
; It is essential to program CTPU & CTPL before programming OP3
; as C/T output (see below)
; channel A RX clock source: IP4-16X, TX clock source: XTAL1 (if MR0A
; bits 2 and 0 = 0, the TX baud rate is 9600)
; channel B RX clock source: XTAL1 (9600 baud), TX clock source: IP5-1X
; Start the C/T
; C/T output appears at OP3 and channel A's TX 1X clock (this is XTAL1
; clock divided by 16) at OP2.
Write
Write
Write
CTPU
CTPL
CSRA
0x00
0x05
0xEB
Write
Read
Write
CSRB
STCR
OPCR
0xBF
0x06
D) The next example will show how to configure and run channel B's transmitter in a multi-drop application. Note that
all other relevant parameters should be configured already, like baud rate etc.
Write
Write
Write
Write
Write
Write
Write
CRB
MR1B
CRB
TXB
CRB
MR1B
TXB
0x10
0x1B
0x04
address
0x10
0x13
data
; reset MR pointer to MR1
; word length = 8 and use A/D tag in the place of parity
; Enable transmitter of channel B
; Send the address first (A/D tag = 1)
; reset MR pointer to MR1
; change A/D tag = 0
; You can load the data (A/D tag = 0) immediately after the address. There
; is no need to wait till the transmitter is empty. Load all the data.
; Check to see if the transmitter is empty & ready. You need to do this
; before you can load the next address.
; Repeat the last 5 steps to load different addresses and their data.
Read
SRB
相關(guān)PDF資料
PDF描述
XR88C192IJ DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER
XR88C192IP DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER
XR88C192IV DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER
XR88C92 XTAL MTL SMT HC49/USM
XRD4460 CCD IMAGE DIGITIZERS WITH CDS, PGA, AND 10-BIT A/D
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
XR88C192CV-0A-EVB 功能描述:界面開發(fā)工具 Supports 88C192 44ld TQFP, ISA Interface RoHS:否 制造商:Bourns 產(chǎn)品:Evaluation Boards 類型:RS-485 工具用于評(píng)估:ADM3485E 接口類型:RS-485 工作電源電壓:3.3 V
XR88C192CV-F 功能描述:UART 接口集成電路 Dual Channel UART RoHS:否 制造商:Texas Instruments 通道數(shù)量:2 數(shù)據(jù)速率:3 Mbps 電源電壓-最大:3.6 V 電源電壓-最小:2.7 V 電源電流:20 mA 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:LQFP-48 封裝:Reel
XR88C192IJ 制造商:EXAR 制造商全稱:EXAR 功能描述:DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER
XR88C192IJ-F 功能描述:UART 接口集成電路 Dual Channel UART RoHS:否 制造商:Texas Instruments 通道數(shù)量:2 數(shù)據(jù)速率:3 Mbps 電源電壓-最大:3.6 V 電源電壓-最小:2.7 V 電源電流:20 mA 最大工作溫度:+ 85 C 最小工作溫度:- 40 C 封裝 / 箱體:LQFP-48 封裝:Reel
XR88C192IP 制造商:EXAR 制造商全稱:EXAR 功能描述:DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER