Bei jing 100080, China)
Figure 1 is a peripheral circuit diagram that uses a three-wire connection method to eliminate the influence of the temperature sensor wire resistance.
MODE (6) pin is grounded: it means that the pulse SCLK (1) that controls serial data reading and writing is an input pin and is controlled by an external MCU; MODE (6) is connected to a high level, which means that SCLK is an output pin, and the MCU should read and write serial data according to the output pulse of SCLK.
RTD1 (9) and RTD2 (10) are a pair of 200μA current sources with an initial relative error of less than 1% and a temperature drift tracking accuracy of 3×10-6/℃. The temperature sensor shown in the figure adopts a three-wire connection method. The lengths of the three wires are basically the same, and the resistance is r, so the same common-mode voltage is generated at the IN+ and IN- input terminals; the voltage signal after the differential input is only the voltage generated by the IC exciting Pt100. This eliminates the wire resistance and improves the test accuracy.
TFS=0: indicates that the MCU is allowed to output data to AD7711 (write permission), RFS=0 indicates read permission, but read/write cannot be valid at the same time. A0=0: indicates reading and writing of the control register; A0=1: indicates reading and writing of the data register or calibration register; the data register or calibration register is selected by the value of the upper three bits of the control register. The MCU completes its operation through six pins: SCLK(1)/A0(4)/TFS(19)/RFS(20)/DRDY(21)/SDATA(22). Figure 1 uses six IO ports of MCU (TMS320F240) to connect with AD7711. When reading the device, DRDY and SDATA are output pins, and the rest are input pins; when writing, SDATA is an input pin, and DRDY is still an output, but it has no effect on the write operation.
G2\G1\G0: Set the gain of the programmable amplifier. A=2g, g is (G2/G1/G0) binary converted to decimal.
CH: Select input channel (0: indicates differential channel (IN+\IN-); 1: indicates input channel IN2 (17)).
PD: Power control. 0: Normal operation; 1: Low power consumption.
WL: Setting the number of bits of AD conversion result. 0: 16-bit conversion result; 1: 24-bit conversion result.
RO: Excitation current supplied to the sensor. 0: Turn off 200μA excitation current; 1: Turn on 200μA excitation current. It is worth noting that when measuring the voltage across the platinum resistor, it is necessary to select channels 1 and 2 (CH=0, 1) respectively, and make RO=1; otherwise, there is no current output. BO: 4.5μA supply current to
judge whether the sensor is burned out. 0: Turn off; 1: Turn on. When the platinum resistor sensor is accidentally disconnected, by turning on the BO current, the AD conversion results are all 1, and the sensor is judged to be in a fault state of disconnection. In normal operation, BO=0 turns off the current.
B/U: AD conversion polarity selection. 0: Bipolar; 1: Unipolar.
FS11~FS0: filter frequency setting. The formula for setting the frequency of the on-chip low-pass filter is:
?
fclk is the frequency of the external crystal oscillator, generally 10MHz; code is the value of FS11~FS0 converted from binary to decimal. The calculated frequency is the frequency of the AD7711 conversion data refresh, which is about 3.8 times the cutoff frequency.
2.1 Reading and writing of the control register
Writing to the control register: The timing of writing to the control register is shown in Figure 2. A0(4)=0 selects the control register, TFS(19)=0/RFS(20)=1 indicates write permission, and SCLK is enabled. At the rising edge of the SCLK pulse, the data of SDATA(22) is sent to the control register, so the data sent on SDATA should be valid before the rising edge signal of SCLK. Each SCLK sends one bit, with the high bit first and the low bit last. 24 bits must be sent at a time. If it is less than 24 bits, the write command is invalid. If it is more than 24 bits, the excess part is ignored.
2.3 Reading the data register
The timing of reading the data register is shown in Figure 4. The data register stores the AD conversion result. DRDY=0 means that new result data is retained in it. If the data is not read out in time, the data in the data register will be updated in real time. When DRDY=0, the MSB is sent out first at the falling edge of RFS, and then the subsequent data is output from the data register to SDATA in sequence at the falling edge of SCLK. When the last bit of data is sent out, the DRDY output becomes high and the output of the SDATA signal is turned off.
The function is called twice to set the IN2 and IN1 (IN+, IN-) channels respectively. 3a50c4 means: MD2/MD1/MD0=0/0/1, that is, 0 input and full-scale input self-calibration; G2/G1/G0=1/1/0: amplification factor 26=64; WL=0 means 16-bit AD conversion, RO=1 turns on 200μA excitation current, filter frequency 10MHz/512/0x0c4=100Hz, and the corresponding cutoff frequency is 26Hz. It should be noted that even if only one channel is used, both channels must be set, otherwise the two high-precision follower current sources will not be turned on.
Previous article:Driver Design of Graphic LCD Module Based on SPCE061A Single Chip Microcomputer
Next article:Design of Intelligent Temperature Controller for Dry-Type Transformer Based on ATmega16 Single Chip Microcomputer
- Popular Resources
- Popular amplifiers
- New Concept Analog Circuit 1-Transistor [Text Version] (Yang Jianguo)
- Signal Integrity and Power Integrity Analysis (Eric Bogatin)
- Chip Manufacturing: A Practical Tutorial on Semiconductor Process Technology (Sixth Edition)
- Principles and Applications of Single Chip Microcomputers and Embedded Systems
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
- How does the Allwinner V853 chip support the ssh function?
- Tina ti cannot simulate LC oscillation circuit!
- USB network port module test based on TI Sitara Cortex-A8
- How to output multiple pulses?
- Network port control output TTL module
- Power charging circuit
- I don't understand the ref102 data sheet and the circuit diagram. Please help me.
- 【ufun learning】Part 1: Unboxing and drafting
- Can this diode be removed?
- FPGA soft core, hard core, solid core