REV. 1.4.3 54 5.0 PROGRAMMING EXAMPLES These examples are for devices with top mark date codes of "GC YY" />
參數(shù)資料
型號: XR17C158CV-0A-EVB
廠商: Exar Corporation
文件頁數(shù): 50/67頁
文件大小: 0K
描述: EVAL BOARD FOR XR17C158-A 144TQF
標準包裝: 1
系列: *
XR17C158
xr
5V PCI BUS OCTAL UART
REV. 1.4.3
54
5.0 PROGRAMMING EXAMPLES
These examples are for devices with top mark date codes of "GC YYWW" and older.
5.1
UNLOADING RECEIVE DATA USING THE SPECIAL RECEIVE FIFO DATA WITH STATUS
It is suggested that before starting to read the Special Receive FIFO Data with Status to unload data from any
UART channel (address 0x180 for channel 0), do a dummy write to the Device ID (DVID) register in the Config-
uration Register of the device. The DVID register is a read-only register, so writing to it will not affect any of the
settings of the UART. The Special Receive FIFO Data with Status register can then be read multiple times sub-
sequently without any byte-swapping problem as long as no other register (except the Device ID register) is ac-
cessed in between data unload. If you must read or write to another register, make that dummy write to the
DVID register again and continue with data unloading.
A step by step procedure describing the sequence for a target channel is shown below. From the receive data
service routine:
Do a dummy write to Device ID (DVID) register. Address 0x8D in BYTE alignment or address 0x8C in DWORD
alignment.
Read the data byte and its associated error status from ‘Special Receive FIFO Data with Status’ register of the target
channel until done or empty when one of the LSR status byte bit-0=0.
NOTE: If you must do other Read/Write operations to other register(s) during data unloading, repeat steps 1 &
2 to continue unloading data plus status from the ‘Special Receive FIFO Data with Status’ register of the target
channel.
Some Examples of using the Special Receive FIFO Data with Status:
EXAMPLE I: POLLING
.....................
Read LSR
Write DVID
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)*
....................
EXAMPLE 2: INTERRUPT SERVICE USING INTERRUPT INFORMATION IN DEVICE CONFIGURATION REGISTER SET
.....................
Read Global Interrupt Register INT0 (address 0x080)
Read INT1 through INT3 registers to identify interrupting channel (address 0x081 through 0x083)
Write DVID
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)*
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)
................
EXAMPLE 3: INTERRUPT SERVICE USING INTERRUPT INFORMATION IN INDIVIDUAL CHANNELS REGISTERS
................
Read Global Interrupt Register INT0 (address 0x080)
Read ISR register of interrupting channel
Write DVID
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)*
Read Special Receive FIFO Data with Status (address 0x180 for channel 0, etc)
................
* In case some other registers need to be accessed in between ‘Special Receive FIFO Data with Status’ reads,
a ‘Write DVID’ instruction has to be inserted before resuming ‘Special Receive FIFO Data with Status’ read
operation.
相關(guān)PDF資料
PDF描述
SK221M025ST CAP ALUM 220UF 25V 20% RADIAL
M3TTK-1436J IDC CABLE - MSD14K/MC14G/MSD14K
CDB42L51 BOARD EVAL FOR CS42L51 CODEC
GMM11DRKI CONN EDGECARD 22POS DIP .156 SLD
UPJ1J151MHD6TO CAP ALUM 150UF 63V 20% RADIAL
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
XR17C158CV-F 功能描述:UART 接口集成電路 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
XR17C158CVTR-F 制造商:Exar Corporation 功能描述:UART 8-CH 64Byte FIFO 5V 144-Pin LQFP T/R 制造商:Exar Corporation 功能描述:XR17C158CVTR-F
XR17C158IV 功能描述:UART 接口集成電路 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
XR17C158IV-F 功能描述:UART 接口集成電路 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
XR17C158IVTR-F 制造商:Exar Corporation 功能描述:UART 8-CH 64Byte FIFO 5V 144-Pin LQFP T/R 制造商:Exar Corporation 功能描述:XR17C158IVTR-F