8-相关器件及程序设计.pptVIP

  • 0
  • 0
  • 约3.26千字
  • 约 12页
  • 2019-02-28 发布于浙江
  • 举报
* U P C 热电阻PT100 A/D转换器ADS7816 D/A转换器MAX518 主要器件介绍 U P C 热电阻PT100: 1.工作原理 热电阻是利用物质在温度变化时本身电阻也随着发生变化的特性来测量温度的。热电阻的受热部分(感温元件)是用细金属丝均匀地双绕在绝缘材料制成的骨架上,当被测介质中有温度梯度存在时,所测得的温度是感温元件所在范围内介质层中的平均温度。 2.主要技术参数 名称???? 铂电阻 分度号???? Pt100 测温范围????-200~500℃ 允许偏差????A级????±(0.15+0.002∣t∣)?℃ ???? B级????±(0.30+0.005∣t∣)?℃ U P C A/D转换器ADS7816: The ADS7816 is a 12-bit, 200kHz sampling analog-to-digital converter. It features low power operation with automatic power down, a synchronous serial interface, and a differential input. The reference voltage can be varied from 100mV to 5V, with a corresponding resolution from 24mV to 1.22mV. A falling CS signal initiates the conversion and data transfer. The first 1.5 to 2.0 clock periods of the conversion cycle are used to sample the input signal. After the second falling DCLOCK edge, DOUT is enabled and will output a LOW value for one clock period. For the next 12 DCLOCK DOUT will output the conversion result, U P C most significant bit first. After the least significant bit (B0) has been output, subsequent clocks will repeat the output data but in a least significant bit first format. After the most significant bit (B11) has been repeated, DOUT will tri-state. Subsequent clocks will have no effect on the converter. A new conversion is initiated only when CS has been taken HIGH and returned LOW. U P C A/D转换器ADS7816:时序图如下 U P C A/D转换器ADS7816:参考例程 ; Dclock=p1.3,Dout=p1.4, CS=p1.5 ; 模数转换子程序 AD7816: NOP CLR P1.3 ; READY to READ CLR P1.5 ; CS=0 SETB P1.3 ; CLR P1.3 ;时钟周期 SETB P1.3 CLR P1.3 SETB P1.3 MOV R1,#12 U P C ADLP: CLR P1.3 SETB P1.3 SETB P1.4 MOV C,P1.4 ; READ A BIT MOV A,DATL ;数据保存在DATL,DATH中, RLC A ;分别为低8位和高4位,一共12位

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档