Use the 0809 on the experimental instrument to do the A/D conversion experiment. The W1 potentiometer on the experimental instrument provides analog input. Write a program to convert the analog quantity into digital quantity and display it through the light-emitting diodes L1-L8.
2. Design Description
A/D converters are roughly divided into three categories: the first is the dual-integral A/D converter, which has the advantages of high precision, good anti-interference, low price, but slow speed; the second is the successive approximation A/D converter, which has moderate precision, speed and price; the third is the parallel A/D converter, which is fast and expensive. The ADC0809 used in the experiment belongs to the second category and is an 8-bit A/D converter. Each acquisition generally takes 100μs. Since the ADC0809 A/D converter automatically generates an EOC signal (high level is valid) after the conversion is completed, it is connected to the INT0 of the 8031 after being inverted, and the A/D conversion result can be read in interrupt mode.
3. Data acquisition schematic diagram
4. Design steps
① Connect the IN0 pin of channel 0 of A/D block 0809 to the center tap V01 jack (0-5V) of W1.
② Connect the CS terminal of A/D area 0809 to the decoding output terminal Y1 jack.
③The CLK jack of 0809 is connected to the frequency division output terminal T4.
④ Connect the input VIN of W2 to the +12V jack, and then connect the +12V jack to the +12 of the external power supply (this line is already connected when the power supply is built-in). Adjust W2 so that the V- (REF) terminal is +5V.
⑤ Connect the VREF of the A/D area to the output VREF end of W2.
⑥Insert a 74LS02 chip into EXIC1, insert a 74LS32 chip into EXIC2, and connect the relevant circuits according to the diagram.
⑦ Connect A/D area D0-D7 to BUS1 area XD0-XD7 with a flat cable.
⑧The simulation experiment system is in the "P....." state.
⑨ Run the program continuously from the starting address 06D0, and display the digital quantity converted from the currently collected voltage value on the light-emitting diodes L7-L0. Adjust W1, and L7-L0 will change accordingly with the voltage change. L7-L0 corresponds to the digital quantity D7-D0.
5. Procedure
Program Listing:
ORG 06D0H
START: MOV A,#00H
MOV DPTR,#9000H
MOVX @DPTR,A
MOV R7,#0FFH
H55S: DJNZ R7,H55S
MOVX A,@DPTR
MOV DPTR,#0A000H
MOVX @DPTR,A
SJMP START
END
References:
[1]. ADC0809 datasheet http://www.dzsc.com/datasheet/ADC0809_123186.html.
[2]. 74LS02 datasheet http://www.dzsc.com/datasheet/74LS02_961364.html.
[3]. 74LS32 datasheet http://www.dzsc.com/datasheet/74LS32_1054903.html.
Previous article:Relay control design and application based on single chip microcomputer
Next article:Development of fully automatic cross-cutting machine based on single chip microcomputer technology
Recommended ReadingLatest update time:2024-11-16 15:38
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- About GUI_Init stuck when emwin is ported to stm32f2
- DLP6500 light crafter uses USB synchronous trigger signal to play the next picture
- EEWORLD University Hall ---- Learn HLS with me
- I always get range check error when I import DDB files with AD09
- EEWORLD University Hall----Live Replay: TI takes you to experience the interconnected and efficient smart home solution
- Thank you all for your help. Thank you very much.
- Active RFID Design Based on MSP430 and CC1100
- I have a question about 7060 chip burning!
- Looking for a chip that drives multiple indicator lights
- Brief analysis of the application principles of common protective devices in security products