摘要
A/D转换器是一种能把输入模拟电压或电流变成与其成正比的数字量的电路芯片,它广泛应用在单片机的前向输入通道中。文章采用ADC0804单通道8位并行接口芯片作为A/D转换器完成数据转换,控制器使用美国ATMEL公司的增强型AT89C52单片机,对转换完成后得到的数字量经过单片机P1口输出到8个LED发光二极管上显示。使用Keil C51编程软件,编译成功后,用Proteus仿真软件设计电路原理图,实现A/D转换过程并显示转换结果。
A/D converter is a circuit chip that can convert input analog voltage or current into digital quantity proportionally.It is widely used in the forward input channel of the single-chip microcomputer.Using ADC0804 single channel 8-bit parallel interface chip as the A/D converter and ATMEL company's enhanced AT89 C52 single-chip microcomputer as the controller,this paper makes the conversion of digital quantity,which is output to the LED light through the P1 port of the single-chip microcomputer.Using Keil C51 as the main programming software and Proteus simulation software to design the circuit schematic diagram,a realization of A/D conversion process was presented.
引文
[1]张毅刚,赵光权,刘旺.单片机原理及应用[M].第3版.北京:高等教育出版社,2016.
[2]杜树春.51单片机很简单—Proteus及汇编语言入门与实例[M].北京:化学工业出版社,2017.