1、D/A 转换实验一、 实验目的学习使用单片机控制 DAC0832 芯片进行数 /摸转换。二、实验原理图D01D23D45D67INT0WRD3D2D10 D45D67WRINT0XTAL218XTAL119ALE30EA31PSEN29RST9P0./AD039P0.1/A138P0.2/AD237P0.3/A336P0.4/AD435P0.5/A534P0.6/AD63P0.7/A732P1.01P1.2P1.23P1.34P1.45P1.56P1.67P1.78P3.0/RXD10P3.1/TX1P3.2/INT012P3./IT113P3.4/T014P3.7/RD17P3.6/W16P
2、3.5/T115P2.7/A1528P2.0/A821P2.1/A92P2./A1023P2.3/A124P2.4/A1225P2.5/A1326P2.6/A1427U1AT89C51234567891RP1RESPACK-8VREF8GND3 VC20CS1WR12DI34 I25DI16I07 FB9GND10 IOUT11I T212DI713I614DI515I416XFER17W218ILE(BY1/BY2) 19U2DAC0832 U3OPAMPABCD三、实验内容通过单片机控制 DAC0832 输出锯齿波,可以用 proteus 里的示波器观察 Iout1 端口的输出波形。四、实验参考程序#includesbit csda=P32;sbit dawr=P36;unsigned char a,j,k;void delay(unsigned char i)for(j=i;j0;j-)for(k=125;k0;k-);void main()csda=0;a=0;dawr=0;while(1)P0=a;delay(5);a+;