In recent years, IC manufacturers have devised various methods of implementing interfaces, with particular emphasis on reducing the number of I/O pins on IC interfaces. One such device is the MAX187, a 12-bit analog-to-digital converter (ADC). You can use serial data communication techniques to create an interface with this ADC. The analog-to-digital conversion and data transfer of the MAX187 require only three digital I/O lines. You can use the Centronics printer port of a PC to create a simple interface between the MAX187 and a PC (Figure 1). You can enable or disable the MAX187 (pin 3) by setting the pin high or low, respectively. If you leave this pin open, the internal reference voltage (4.096V) is disabled, and you must apply an external reference voltage to the REF pin (pin 4). In other cases, this pin is connected to a 4.7μF bypass capacitor C1. Digital data from the MAX187 is transferred to the processing unit 1 bit at a time using an external clock pulse on the SCLK pin (pin 8).
A complete data transfer requires 13 external clock pulses. The falling edge of the first clock pulse latches the first data bit (MSB) at the DOUT pin (pin 6). The output data bit changes at the falling edge of the next external clock pulse, and the serial data bits can be read until the falling edge of the next clock cycle. The analog/digital conversion starts when the ADC pin (pin 7) becomes low. This pin must be
The software that controls the operation of the MAX187 is Turbo C++ version 3.0 (downloadable from the Web version of the "Design Examples" on the www.edn.com website). In the code, Port defines the Centronics port of the PC that interfaces with the MAX187. Write Port defines the port used to initialize the A/D conversion and generate external clock pulses. Read Port defines the port used to read EOC and serial data from the ADC. After pulling the CS pin and SCLK pin to a low level, the EOC loop checks the EOC state. If a valid EOC does not occur, the loop will continue to operate. Once a valid EOC occurs, the first of 13 clock cycles occurs and latches the first data bit (MSB). After this, the routine calls a subroutine (get_adc()). The subroutine generates the remaining external clock cycles to read the 12-bit serial data. The subroutine also converts the received serial data into parallel data (adc_val). This conversion is done by shifting adc_val left by one bit, thereby multiplying the previous data by 2, and if the value of the serial data bit is 1, 1 is added to the parallel data. Once the parallel data is ready, the subroutine returns this value and displays it on the screen.
Figure 1 It is easy to implement an interface between a 12-bit serial ADC and a PC.
Previous article:Schematic diagram of D/A converter and microcontroller interface (double buffer working mode)
Next article:A Design of CMOS Data Interface Circuit Based on PWM
- Popular Resources
- Popular amplifiers
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- [GigaDevice GD32F310 Review] + Light up the LED
- First time unboxing
- Did you guess the board that was unboxed yesterday? It was the Southchip SC8905 EVM. Let’s take a look at the detailed introduction~
- 【TI recommended course】# Master the design of flyback power transformer and circuit#
- Technical books and materials related to lighting LED power supply design
- HyperLynx High-Speed Circuit Design and Simulation (V) Transmission Line Crosstalk after Termination
- Suspicious signal from outer space
- 51 MCU header file added
- Download gift: USB Type C related development and test materials, read it when you have nothing to do, and you will become a master by accident
- Show your face, be careful not to scare people.