实验五12位的A/D转换一、设计目的:实现12位的模拟量到数字量的转换.二、设计任务:1、12位A/D通过一个开关控制能够完成单/双极性转换;2、能够完成自动和手动转换控制;自动时即能够把模拟量转换数字量(000H~FFFH);手动时,要求通过改变电阻值来改变电压,然后通过开设转换的按钮开始转换,输出转换后的数字量(用3个LED观察输出量);3、用3个LED数码管显示输出的数字量.功能流图如下:三、原理框图:四、操作流图:1、自动转换控制操作步骤:(1)点击proteus的开始按钮(2)开关K1转到自动(3)若是双极性:K2,K3,K4转到双极性,K5是双极性的正电压和负电压(4)若是单极性:K2,K3,K4,K5转到单极性2、手动转换控制操作步骤:(1)点击proteus的开始按钮(2)开关K1转到自动(3)若是双极性:K2,K3,K4转到双极性,K5是双极性的正电压和负电压(4)若是单极性:K2,K3,K4,K5转到单极性五、接线图P3.0P3.0Q0Q0Q1Q1ALEALEP1.7P1.6P1.5P1.4P1.3P1.2P1.1P1.0P2.7P2.6P2.5P2.4P0.0P0.1P0.2P0.3P0.4P0.5P0.6P0.7P2.4P2.5P2.6P2.7P0.4P0.5P0.6P0.7P0.0P0.1P0.2P0.3P0.4P0.5P0.6P0.7P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7P0.0P0.0P0.1P0.1P0.2P0.2P0.3P0.3P0.4P0.4P0.5P0.5P0.6P0.6P0.7P0.7XTAL218XTAL119ALE30EA31PSEN29RST9P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P1.0/T21P1.1/T2EX2P1.23P1.34P1.45P1.56P1.67P1.78P3.0/RXD10P3.1/TXD11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD17P3.6/WR16P3.5/T115P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427U1AT89C5212/82CS3A04CE6R/C5REFOUT8REFIN1020VIN1410VIN13AGND9STS28DB1127DB1026DB925DB824DB723DB622DB521DB420DB319DB218DB117DB016VAS7VEE11BIPOFF12U2AD16742K+10VD03Q02D14Q15D27Q26D38Q39D413Q412D514Q515D617Q616D718Q719OE1LE11U474LS373-15V+15V234567891+5VU5NAND_2+10V100+88.8VoltsU6(CAP)-10VCAP7COMMON4STROBE5101522.53V+8Vbg6+15V-10V-15V手动自动双极性单极性单极性双极性(正)双极性(负)单极性双极性单极性双极性采样保持器整流K1K3K4K5K2正弦波滑动变阻器