Interface Design between Single Chip Microcomputer 89C51 and A/D Converter MAX195

Publisher:jingwenLatest update time:2009-12-02 Source: 龙人BDTIC Keywords:89C51  MAX195 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

MAX195 is a 16-bit successive approximation ADC. It combines high accuracy, high speed, low power consumption (current consumption is only 10μA) and shutdown mode. The internal calibration circuit corrects linearity and offset errors, so all rated performance indicators can be achieved without external adjustment. The capacitive DAC structure gives it a unique 85kbps track/hold function, and the conversion time is only 9.4μs. The three-state serial data output and pin-selectable unipolar (0~VREF) or bipolar (-VREF~+VREF) input range make it widely used in portable instruments, medical signal acquisition and multi-sensor measurement systems.

1 MAX195 Pinout and Description

MAX195 has 16 pins, which are arranged as shown in Figure 1.

MAX195 pinout diagram

2 MAX195 conversion principle and timing

The MAX195 chip contains a capacitive digital-to-analog converter (DAC) that can track and hold the analog input. The successive approximation register and comparator, under the control of the conversion clock CLK, convert the analog input into a 16-bit digital code and output it through the serial interface on the chip. The interface and control logic on the chip are easily connected to most microprocessors, reducing the need for external components.

The timing of its transformation and data output is shown in Figure 2.

Timing diagram of conversion and data output

It can be seen from the timing that the conversion starts at the effective CLK falling edge after at least three or more clock cycles have passed since the previous conversion ended (MAX195 requires 4 CLK cycles to track/hold and collect signals). At the same time, it becomes high at the next clock falling edge, and after 9.4μs (CLK is 1.7MHz) after the conversion is completed, it changes from high to low, giving a conversion end signal, which can be sent to an interrupt or be queried. The conversion end is output by the three-state serial port DOUT. During the conversion, the data is read out by CLK control, and the data can also be read out by the SCLK serial clock between two conversions. The maximum rate can reach 5Mbps. The latter is shown in Figure 2. After maintaining a low level, at each falling edge of SCLK, the DOUT terminal outputs one bit of data in the order of MSB first, otherwise, DOUT is in a high impedance state.

3 MAX195 Calibration

The MAX195 is automatically calibrated at power-up. To reduce the effects of noise, each calibration test is performed multiple times and the results are averaged. At a clock frequency of 1.7MHz, calibration takes approximately 14,000 clock cycles or 8.2ms. In addition to power-up calibration, pulling OUT to a low level will suspend the MAX195, and returning OUT to a high level will start a new calibration.

Note: Recalibration is only recommended when starting power-on calibration during the power-on delay period when the power supply has not yet stabilized or when there are significant changes in power supply voltage, ambient temperature, and clock frequency.

The software calibration reference subroutine is as follows:

Software Calibration Reference Routine

4 Interface Design between AT89C51 and MAX195

Figure 3 is the hardware circuit diagram of the interface between AT89C51 and MAX195.

Hardware circuit diagram of AT89C51 and MAX195 interface

In the figure, the ALE output signal of AT89C51 (equal to 1/6 crystal frequency fosc = 6MHz) is used as CLK conversion clock. P1.5 is used as the start control terminal of MAX195. The terminal is left floating to indicate that the analog signal can be bipolar input, or it can be connected to +5V as needed, which is a unipolar input; grounding, which is a shutdown mode.

According to Figure 3, the A/D sampling procedure is given as follows:

A/D Sampling Procedure

Note: The sampling results are saved in R2 and R33.

Keywords:89C51  MAX195 Reference address:Interface Design between Single Chip Microcomputer 89C51 and A/D Converter MAX195

Previous article:Temperature alarm system based on MSP430 embedded temperature sensor
Next article:Design of infrared communication interface based on Lingyang SPCEO61A

Recommended ReadingLatest update time:2024-11-17 02:39

Interface circuit between X25165 and 89C51
Interface circuit between X25165 and 89C51: This chip can be used in an 8051 microcontroller system according to the connection method in Figure 2. Software interface design According to the connection method in Figure 2, the author has written seven practical application interface programs for your reference. a. Se
[Microcontroller]
Development of lockable encryption keyboard for 89C51 computer
introduction In the fields of intelligent instruments and automatic control, embedded PCs have been widely used, such as PC/104 from Advantech and DIMM-PC from AMD. To meet the requirements of openness and modularity, embedded PCs have standard PC interfaces, such as VGA display control interface, Ethernet in
[Microcontroller]
Optimization Design of Switching Power Supply Based on 89C51 Single Chip Microcomputer
introduction The switching power supply is a new type of voltage-stabilized power supply that uses modern power electronics technology to control the ratio of the time when the power switch tube (MOSFET, IGBT) is turned on and off to stabilize the output voltage. Since the 1990s, switching power supplies have b
[Microcontroller]
Optimization Design of Switching Power Supply Based on 89C51 Single Chip Microcomputer
Using 89C51 single chip microcomputer to realize infrared communication interface circuit control
In communication systems, non-electrical signals are often used to transmit control signals and data to achieve remote control or telemetry functions. Infrared communication is a commonly used communication method with the characteristics of simple control, convenient implementation, and high transmission reliability.
[Microcontroller]
Using 89C51 single chip microcomputer to realize infrared communication interface circuit control
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号