参数资料
型号: AD8802AR
厂商: ANALOG DEVICES INC
元件分类: DAC
英文描述: 12 Channel, 8-Bit TrimDACs with Power Shutdown
中文描述: 12, SERIAL INPUT LOADING, 0.6 us SETTLING TIME, 8-BIT DAC, PDSO20
封装: SOIC-20
文件页数: 10/16页
文件大小: 432K
代理商: AD8802AR
AD8802/AD8804
REV. 0
–10–
;
; This subroutine loads an AD8802/AD8804 DAC from an 8051 microcomputer,
; using the 8051’s serial port in MODE 0 (Shift Register Mode).
; The DAC value is stored at location DAC_VAL
; The DAC address is stored at location DAC_ADDR
;
; Variable declarations
;
PORT1
DATA
DAC_VALUE
DATA
DAC_ADDR
DATA
SHIFT1
DATA
SHIFT2
DATA
SHIFT_COUNT
DATA
;
ORG
DO_8802:
CLR
CLR
CLR
CLR
ORL
CLR
MOV
ACALL
MOV
ADDR_WAIT:
JNB
CLR
MOV
ACALL
MOV
VALU_WAIT:
JNB
CLR
SETB
RET
;
BYTESWAP:
MOV
SWAP_LOOP:
MOV
RLC
MOV
MOV
RRC
MOV
DJNZ
RET
END
90H
40H
41H
042H
043H
44H
;SFR register for port 1
;DAC Value
;DAC Address
;high byte of 16-bit answer
;low byte of answer
;
100H
SCON.7
SCON.6
SCON.5
SCON.1
PORT1.1,#00001110B
PORT1.1
SHIFT1,DAC_ADDR
BYTESWAP
SBUF,SHIFT2
SCON.1,ADDR_WAIT
SCON.1
SHIFT1,DAC_VALUE
BYTESWAP
SBUF,SHIFT2
SCON.1,VALU_WAIT
SCON.1
PORT1.1
;arbitrary start
;set serial
;data mode 0
;clr transmit flag
;/RS, /SHDN, /CS high
;set the /CS low
;put DAC value in shift register
;
;send the address byte
;wait until 8 bits are sent
;clear the serial transmit flag
;send the DAC value
;
;
;wait again
;clear serial flag
;/CS high, latch data
; into AD8801
SHIFT_COUNT,#8
A,SHIFT1
A
SHIFT1,A
A,SHIFT2
A
SHIFT2,A
SHIFT_COUNT,SWAP_LOOP
;Shift 8 bits
;Get source byte
;Rotate MSB to carry
;Save new source byte
;Get destination byte
;Move carry to MSB
;Save
;Done
Listing 1. Software for the 8051 to AD8802/AD8804 Serial Port Interface
+5V
P1.7
P1.6
P1.5
P1.4
1.5
1.6
1.7
PORT 1
8051 μC
1.4
CLK
V
REFL
SDI
O1
O12
CS
SHDN
GND
AD8804
V
DD
V
REFH
Figure 25. An AD8802/AD8804-8051
μ
C Interface Using
Parallel Port 1
to start the serial interface process. The DAC address is loaded
into the accumulator and four Rotate Right shifts are per-
formed. This places the DAC address in the 4 MSBs of the ac-
cumulator. The address is then sent to the AD8802/AD8804 via
the SEND_SERIAL subroutine. Next, the DAC value is loaded
into the accumulator and sent to the AD8802/AD8804. Finally,
the Chip Select input is set high to complete the data transfer
Unlike the serial port interface of Figure 24, the parallel port in-
terface only transmits 12 bits to the AD8802/AD8804. Also, the
BYTESWAP subroutine is not required for the parallel inter-
face, because data can be shifted out MSB first. However, the
results of the two interface methods are exactly identical. In
most cases, the decision on which method to use will be deter-
mined by whether or not the serial data port is available for
communication with the AD8802/AD8804.
相关PDF资料
PDF描述
AD8802ARU 12 Channel, 8-Bit TrimDACs with Power Shutdown
AD8804 12 Channel, 8-Bit TrimDACs with Power Shutdown(12通道,带电源关断8位D/A转换器)
AD8842 Precision, Quad, SPST Analog Switches
AD8842AN Precision, Quad, SPST Analog Switches
AD8842AR 8-Bit Octal, 4-Quadrant Multiplying, CMOS TrimDAC
相关代理商/技术参数
参数描述
AD8802AR-REEL 制造商:Analog Devices 功能描述:DAC 12-CH R-2R 8-bit 20-Pin SOIC W T/R
AD8802ARU 功能描述:IC DAC 8BIT 12CH W/SD 20-TSSOP RoHS:否 类别:集成电路 (IC) >> 数据采集 - 数模转换器 系列:TrimDAC® 标准包装:47 系列:- 设置时间:2µs 位数:14 数据接口:并联 转换器数目:1 电压电源:单电源 功率耗散(最大):55µW 工作温度:-40°C ~ 85°C 安装类型:表面贴装 封装/外壳:28-SSOP(0.209",5.30mm 宽) 供应商设备封装:28-SSOP 包装:管件 输出数目和类型:1 电流,单极;1 电流,双极 采样率(每秒):*
AD8802ARU-REEL 功能描述:IC DAC 8BIT 12CH W/SD 20-TSSOP RoHS:否 类别:集成电路 (IC) >> 数据采集 - 数模转换器 系列:TrimDAC® 产品培训模块:LTC263x 12-, 10-, and 8-Bit VOUT DAC Family 特色产品:LTC2636 - Octal 12-/10-/8-Bit SPI VOUT DACs with 10ppm/°C Reference 标准包装:91 系列:- 设置时间:4µs 位数:10 数据接口:MICROWIRE?,串行,SPI? 转换器数目:8 电压电源:单电源 功率耗散(最大):2.7mW 工作温度:-40°C ~ 85°C 安装类型:表面贴装 封装/外壳:14-WFDFN 裸露焊盘 供应商设备封装:14-DFN-EP(4x3) 包装:管件 输出数目和类型:8 电压,单极 采样率(每秒):*
AD8802ARUZ 功能描述:IC DAC 8BIT 12CH W/SD 20TSSOP RoHS:是 类别:集成电路 (IC) >> 数据采集 - 数模转换器 系列:TrimDAC® 标准包装:1 系列:- 设置时间:4.5µs 位数:12 数据接口:串行,SPI? 转换器数目:1 电压电源:单电源 功率耗散(最大):- 工作温度:-40°C ~ 125°C 安装类型:表面贴装 封装/外壳:8-SOIC(0.154",3.90mm 宽) 供应商设备封装:8-SOICN 包装:剪切带 (CT) 输出数目和类型:1 电压,单极;1 电压,双极 采样率(每秒):* 其它名称:MCP4921T-E/SNCTMCP4921T-E/SNRCTMCP4921T-E/SNRCT-ND
AD8802ARUZ-REEL 功能描述:IC DAC 8BIT 12CH W/SD 20TSSOP RoHS:是 类别:集成电路 (IC) >> 数据采集 - 数模转换器 系列:TrimDAC® 产品培训模块:LTC263x 12-, 10-, and 8-Bit VOUT DAC Family 特色产品:LTC2636 - Octal 12-/10-/8-Bit SPI VOUT DACs with 10ppm/°C Reference 标准包装:91 系列:- 设置时间:4µs 位数:10 数据接口:MICROWIRE?,串行,SPI? 转换器数目:8 电压电源:单电源 功率耗散(最大):2.7mW 工作温度:-40°C ~ 85°C 安装类型:表面贴装 封装/外壳:14-WFDFN 裸露焊盘 供应商设备封装:14-DFN-EP(4x3) 包装:管件 输出数目和类型:8 电压,单极 采样率(每秒):*