1ADS1210 Pins and Functions
ADS1210 is a new type of A/D converter with high precision, wide dynamic range, single 5V power supply and 24-bit resolution. The package types are 18-pin dual in-line and 18-pin surface mount. The pin function description is shown in Table 1.
●Instruction Register (INSR)
The instruction register is an 8-bit register that indicates whether the system is performing a read or write operation, and determines the byte length of the read/write operation and the starting address of the register for the read/write operation.
●Command Register (CMR)
The command register is the key to the ADS1210, and it controls all the features and functions of the ADS1210. Once the falling edge of the serial port clock writes the last bit of the data byte into the command register, the new mode takes effect. The command register controls the options and operating modes selected by the ADS1210, including the gain (G) setting of the programmable gain amplifier, the enhancement mode (TMR), the output data rate (Decimation), and the correction method, etc.
●Data Output Register (DOR)
The data output register stores the most recent conversion result. Before the "data ready signal" becomes low, the contents of the register are updated with a new result.
●Offset Register (OCR)
The offset register performs offset correction on the conversion result before it is placed in the data output register. In this application, the contents of the offset register may be the self-correction result or the system correction result, and the offset register can be read and written through the serial port.
● Full-scale correction register (FCR)
The full-scale correction register performs full-scale correction on the conversion result before it is placed in the data output register. The actual offset register value and the full-scale correction register value change with changes in structure, temperature and power supply. Therefore, the actual value of the offset register and the full-scale correction register in any state cannot be accurately predicted, that is, the correction of a given system cannot simply obtain a certain result by measuring the external error and writing it into the register as a correction factor.
Communication with ADS1210 starts after the data conversion is completed, that is, when the level is low. Usually, the instruction register is written first to indicate the starting address and byte length of the register to be operated next, and whether the system is reading or writing, thereby determining what type of communication is to be performed next. After that, with the generation of the appropriate clock pulse (the number of cycles of the SCLK clock is determined by the byte length specified by the instruction register), the register specified by the instruction register is operated, and after completion, the next low level of the pin is waited for, and this is repeated until the data acquisition is completed.
In actual measurement, power supply is an important factor affecting accuracy. In order to reduce its influence, the power supply must be stable and have low noise. Therefore, MAX666 is used as the voltage regulator chip of +5V voltage, and the voltage fluctuation is reduced by using the role of peripheral capacitors. In addition, ADS1210 can use its own correction register to calibrate the A/D conversion data through programming to further improve the measurement accuracy. Through the setting of CMR, the user can choose the appropriate correction mode. Under background correction, the correction is repeated at a fixed time interval. For other types, normal operation is restored once the correction operation is completed. This design adopts the background correction mode.
The hardware system design of the PIC series microcontroller is simple, and the instruction system design is refined. The PIC microcontroller integrates a wealth of peripheral modules, which can realize the control of peripheral modules by operating the internal registers.
The serial expansion communication interface is an important channel for data exchange between the microcontroller and other computers or modules. The PIC16F87X series microcontroller is mainly equipped with two forms of serial communication modules, namely the master synchronous serial communication MSSP and the universal synchronous/asynchronous receiver and transmitter USART. Among them, the MSSP module is mainly used for short-distance serial communication within the system, such as SPI and I2C modes; the USART module is mainly used for long-distance serial communication between systems. [page]
The data format used by USART in asynchronous mode is 1 start bit, 8 or 9 data bits, and 1 stop bit, without a parity check code, and the commonly used data is 8 bits. The 8-bit baud rate generator BRG provided on the chip can use the system clock signal to generate a standard baud rate frequency for serial transmission. USART has independent transmitters and receivers, but the data format and baud rate they use are the same. This design uses the USART asynchronous transmission function of the microcontroller to transmit the collected data to the host computer after necessary level conversion through the MAX232 chip.
The interface between ADS1210 and external devices includes two-wire, three-wire, four-wire and multi-wire. Here, the four-wire system is used to realize the interface with the microcontroller. The interface signals are data ready signal (), data input/output line (SDIO), data output line (SDOUT), and clock signal line (SCLK). See Figure 1 for details.
The flowchart of the PIC microcontroller program is shown in Figure 2.
Figure 3 is the software running interface used to receive data from the serial port, which serves as the test software for this design. The data displayed in the receiving area are several groups of data collected using this data collector, and the status bar RX at the bottom of the interface shows the number of groups of received data. Experiments have shown that this design can fully achieve an accuracy of more than 20 bits. This
design can be used in high-resolution measurement situations such as industrial process control, instrumentation, blood analysis, intelligent transmitters, potentiometers, quality standards, and pressure conversion. For example, it can be used for performance testing of capacitive pressure microsensors with high accuracy requirements, and has a certain degree of versatility.
Previous article:Interface Design between LCD Display and PIC Microcontroller
Next article:Realization of Rail Pressure Tester Based on PIC16F876A Single Chip Microcomputer
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
- [Evaluation of the popular N32G45XVL model of the National Technology M4 core] Part 6 Preparation for motor application development
- AR1021X uses hostapd to configure AP hotspots.
- Design method of adding soft start to DCDC chip
- The stm32 board runs normally online, but does not function normally when it is powered on again
- Four points of detailed description of field effect tube application
- High-frequency equivalent circuits and characteristic curves of resistors, capacitors and inductors
- The tree topology network structure of ZigBee module communication protocol
- Share videos of senior hardware engineers explaining resistors/capacitors/inductors/diodes/transistors and other electronic components---the key is that it is free
- EEWORLD University Hall----Switching power supply design technology and application examples
- Altium Designer 19 DRC check, it is clearly connected but it still shows Un-Routed Net, and NetAntennae via