introduction
In many applications of automatic control, it is necessary to sample and analyze the signal in real time, and then the DSP will perform the operation and control. AD chip is the most commonly used chip in sampling. This article mainly introduces the AD7862 chip of ADI Company, and designs a driving interface circuit for it. Since AD7862 cannot work automatically, it needs to be provided with relevant driving signals to trigger it to convert. This article uses FPGA chip to make an interface driving circuit for it, and introduces the design of the driving circuit program in detail. The designed circuit provides a very good driving effect for AD7862, and can make it work stably in actual application.
1. AD7862 chip introduction
AD7862 is a 12-bit high-speed, low-power converter produced by ADI Corporation of the United States, powered by a single 5V power supply. There are 4 analog input terminals, divided into two channels (A & B), which are selected by input terminal A0. Each channel has two input terminals (VA1 & VA2 or VB1 & VB2). The acceptable input range of analog signals is plus or minus 10V. However, the overvoltage protection of the analog signal input terminal allows the input voltage to reach plus or minus 17V. The principle block diagram is shown in Figure 1.
Figure 1. AD7862 block diagram.
The AD7862 chip has the following features:
(1) For each channel, it takes 3.6 s from the start of conversion to the completion of conversion.
(2) The chip is powered by a single 5 V power supply, with low power consumption, typically 60 mW when working. It has an automatic sleep mode, which automatically enters sleep mode after a conversion is completed to save power. It automatically wakes up when the next conversion cycle comes.
(3) Provides a high-speed parallel interface, making it easy to connect to microprocessors, microcontrollers and digital signal processors.
(4) The AD7862 series has three versions for three different input ranges. The AD7862-10 is for the standard industrial input range of +/-10V; the AD7862-3 is mainly for the normal signal input range of +/-2.5V.
The AD7862-2 is used for unipolar 0 to 2.5 V input range. For the AD7862-10 and AD7862-3, the 12-bit conversion output is two's complement, and for the AD7862-2, the output is 12-bit original code.
2. Interface circuit program design
In this design, AD7862??10 is used, and high-speed conversion mode is adopted. The typical conversion timing is shown in Figure 2.
Figure 2 High-speed conversion mode timing diagram.
The requirements for the corresponding time parameters in FIG. 2 are shown in Table 1 below.
Table 1 High-speed sampling mode timing parameters.
From the timing diagram in Figure 2, we can see that AD7862 starts conversion by inputting pulse signal CONVST. At the falling edge of CONVST signal, both track/hold on the chip are set to hold state at the same time, and two channels start to convert. The conversion clock is provided by the built-in crystal oscillator. BUSY signal indicates the end of conversion, and the conversion results of two channels can be read out at the same time. The value of A0 determines whether the first read value is VA1 or VB1, and the second read value is VA2 or VB2. When CS signal and RD signal are low, data is read from 12-bit parallel data line. In high-speed conversion mode, the conversion time of AD7862 is 3.6 us, and the track/hold collection time is 0.3 us. In order to ensure the best conversion effect, the reading operation cannot be performed during the conversion and 300 ns before the next conversion starts.
The above timing diagram corresponds to reading VA1 and VA2 first, then reading VB1 and VB2, and the corresponding signal A0 is first set to a low level and then pulled to a high level. In the process of designing the driving circuit, it is necessary to ensure that the designed timing meets the requirements of the above timing parameters, otherwise inaccurate sampling and errors may occur.
[page]
Combined with the conversion speed of AD7862, FPGA selects a processing clock of 10MHz. The control of the entire conversion process is completed by a state machine, which is divided into 12 states (idle, convert1, busy1, reada1, wait1, reada2, switchna, convert2, busy2, readb1, wait2, readb2), among which the idle state is the idle waiting conversion state; convert1 indicates the first conversion start state; busy1 indicates the first conversion state; read VA1 in the reada1 state; wait1 state is the waiting state between reading VA1 and VA2; read VA2 in the reada2 state; switchna state indicates switching to another channel for conversion; convert2 indicates the second conversion start state; the remaining states are similar to the previous ones, but for VB1 and VB2. The design code is as follows (only the VA1 and VA2 parts are described, the rest are similar):
process(clkdiv4,nrst)
beg in
if nrst = '0' then
adc_state <= id le;
e lsif( r ising _edge( clkd iv4) ) then
case adc_state is
when idle= >
ada0<='0';
adconv<='1';
adncs<='1';
adnrd<='1';
clkcnt<=0;
if( start = '1') then
adc_state<=convert1;
end if;
what convert1= >
ada0<='0';
adconv<='0';
if(adbusy='1') then
adc_state<=busy1;
end if;
what is busy1= >
adconv<='1';
if(adbusy='0') then
adc_state<=reada1;
end if;
when reada1= >
if ( c lkcnt = 2 ) then
addataa1<=0000 & adda tain;
end if;
if( c lkcnt = 4) then
adc_state<=wait1;
adncs<='1';
adnrd<='1';
clkcnt<=0;
else
clkcnt<=clkcnt+1;
adncs<='0';
adnrd<='0';
end if;
when wait1= >
adc_state <= reada2;
when reada2= >
if ( c lkcnt = 2 ) then
addataa2<=0001 & adda tain;
end if;
3 Simulation verification of the designed circuit
The final design was compiled and synthesized using Quartus 2 software and then tested on the board. The conversion data received by the FPGA interface circuit was transmitted to the DSP chip, and then the data received by the DSP was displayed using real-time monitoring software. Figure 3 shows the waveform displayed by the monitoring software when a 50 Hz sine wave signal is added to the AD input terminal (signals are added to three of the input terminals at the same time).
Figure 3 Software display waveform.
As can be seen from the waveform diagram in Figure 3, the interface driver circuit successfully controls the sampling process of the AD7862 chip, thereby verifying the correctness of the driver circuit design.
Previous article:Airborne video image real-time compression and processing system based on DSP
Next article:FPGA-based handling robot control system
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- What factors are related to the communication distance? Why is the module communication distance different from what the manufacturer advertises?
- Show off the goods + MIMXRT1010-EVK show off
- Force control modbus communication method modbus-tcp, modbus-rtu Modicon communication configuration steps
- The latest update of MicroPython optimizes the NeoPixel driver
- Interpretation of 5G modulation signals and continuous wave signals
- Do you know the future development trend of WiFi?
- ST's sensors can be purchased at the STM32 Tmall official flagship store
- "Dating in Spring" + "Just Strolling"
- How to build a Keil project using the LPC8xx ROM?
- C2000 CLA FAQ: Architecture and Configuration