Design of Data Acquisition Based on Single Chip Microcomputer

Publisher:紫菜包饭Latest update time:2013-02-17 Source: dzscKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
    1. Design requirements

  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

Schematic diagram of data acquisition based on single chip microcomputer

  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.

Keywords:MCU Reference address:Design of Data Acquisition Based on Single Chip Microcomputer

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

Design of Switching Power Supply Control Using MSP430 Single Chip Microcomputer in Power System
The MSP430 series single-chip microcomputer is a 16-bit ultra-low power mixed signal processor launched by Texas Instruments (TI) in 1996. It is highly praised by users for its ultra-low power consumption, powerful processing capability, high-performance analog technology, rich on-chip peripheral mod
[Power Management]
Brief introduction of interrupt request source of mcs51 microcontroller
(1) External interrupt request source: external interrupts 0 and 1 are introduced through external pins. There are two pins on the microcontroller, named INT0 and INT1, which are P3.2 and P3.3. There are four bits in the internal TCON that are related to external interrupts.  IT0: INT0 trigger mode control bit, whic
[Microcontroller]
Common brands of microcontrollers
  AVR MCU   ATMEL's AVR microcontroller is an enhanced RISC microcontroller with built-in Flash. The Flash memory on the chip is attached to the user's product and can be programmed and reprogrammed at any time, making it easy for the user to design products and update them. The AVR microcontroller adopts an enhanced
[Microcontroller]
Common brands of microcontrollers
Zero-point correction technology of infrared axle temperature detector based on C8051F single-chip microcomputer
Introduction In data acquisition systems, the zero drift of the preamplifier is the main source of detection errors, especially under harsh environmental conditions. For example, the infrared probe used for railway axle temperature detection must work reliably within the range of ambient temperature from -40℃
[Microcontroller]
Zero-point correction technology of infrared axle temperature detector based on C8051F single-chip microcomputer
Heat source automatic tester based on microcontroller control
  In the process of drug quality monitoring, temperature measurement of heat source reaction is an important content. Drug testing has its own particularities and has high requirements on the accuracy, stability, consistency, linearity and other indicators of the testing system. Most of the traditional old-fashioned i
[Microcontroller]
Commonly used 51 MCU UART 0 initialization program
#define MHz 1000000U // Define MHz #define gCLK (22.1184*MHz) // System clock frequency #define UART_BAUD 9600 // Define the baud rate used // Serial communication initialization function, called at the beginning of the program void serial_init(void) {     SCON = 0x50; // Mode 1: 8-bit UART, allow reception
[Microcontroller]
Design of paper jam detection system for folding machine based on single chip microcomputer
1. Introduction A folding machine is a post-press equipment that folds each large printed paper into a size suitable for daily binding and commonly seen by people. There are many types. It can fold the paper into four, eight, sixteen, and thirty-two folds. When a paper jam occurs during the folding process,
[Microcontroller]
A method of parallel communication between single-chip computers and multiple computers
1 Introduction   The single-chip multi-machine parallel communication system introduced in this article uses 89C51 as the host and multiple 89C2051 as slaves. (89C2051 is a 20-pin 300MIL package with a 2K FLASH E2PROM microcontroller. Except for two missing parallel ports, it has all the functions of the MCS-51 seri
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号