库升汽车网
您的当前位置:首页基于ATS52和MAX038的程控信号发生器的设计

基于ATS52和MAX038的程控信号发生器的设计

来源:库升汽车网




基于ATS52MAX038的程控信号发生器的设计

Mechanical and electrical engineering in 2008, 37 (10) mechanical andelectrical engineering in 2008, 37 (10) figure 1 signal
generatorhardware design block diagram based on ATS52 devices and the designof the programmable signal generator MAX038 Xiong Chunru, ju-fang hu,guo-bing huang (at the college of mechanical and automationengineering, jiangxi at 338031) abstract date: 2008-04-23 abstract:the design based on MCU ATS52 and MAX038 signal generator,frequency and amplitude can be used to produce
programmablesine wave, square wave and triangular wave signal. MAX038 functiongenerator with a small amount of peripheral device responsible forgenerating waveform, the waveform after LM6361 broadband poweramplifier circuit output voltage amplification and leve1. The maincontroller ATS52 is responsible for the selection of waveform,frequency modulation, output amplitude modulation, LCD display,keyboard operation, etc.

Key words: signal generator;ATS52

;MAX038Chinese library classification number: TN741 literatureidentification code: B article number: 1009-9492 10-0069-041 (2008)introduction MAXIM MAX038 chip is produced by our company

Ahigh-frequency, precise function generator, which only requires lessconnection

Theoutside device can produce 0. 1 Hz ~ 20MHz.

Thehighest

A trig of a 40MHz



Thesawtooth wave, the sine wave,

Thesquare wave is affected by the pulse wave and the frequency and

thecontrol of the air ratio

Iin going to do |_1independent]y.

Itcan be achieved by controlling MAX038 and other unit circuits by

singlechip ATS52

Controlthe type, frequency, output magnitude of the waveform,

etc?

Thischanges the lack of manual regulation of traditional signal

generators


Points? 2 signal generatorhardware circuit design 2. 1 hardware
circuit block diagramwhole circuit mainly by ATS52 singlechip

machine

Andpeople

Machineinterface (LCD and keyboard), power circuit,

Waveformgeneration and control circuit (signal generation circuit,

frequencycontrol circuit and

Switchcircuit), output drive circuit (adjustable voltage

amplifiercircuit and work





Thecomposition of the output leve1. The circuit diagram is shown infigure 1

Itis. 2. 2 unit hardware circuit design 2.2.1 man-machine interface

AdoptTG128E (128 x)

Thegraphic Chinese character of dual-use liquid crystal is explicit

Thedisplay tool, the inside of the LCD module?Whenthe program starts, the liquid first

The chip is initialized, which displays a welcome screen when it isturned on, and prompts for user action.

Then, accordingto user operation, the waveform type and frequency of signal outputare displayed in real time

Informationsuch as rate, step value and so on, the man-machine interface isfriendly, the graph is beautiful. The hardware for the

Usethe PO of ATS52 for the DBO ' DB7 data port of TG128E

ATS52P20 ~ P23 control port for control of LCD display.

Dueto the large number of buttons required, the application

ofhardware resources is considered





A4-by-4 matrix keyboard

Theline of the keyboard and the line are then attached to the

singlesheet

Plof the machine

Itis. 10 numeric keys 0 ' 9, a function key for waveform,

Thechoice of amplitude and frequency. Two buttons to add and

subtract,to adjust the frequency,

Theincrease and decrease of the step in the adjustment range?

2.2. 2 waveform generation and control circuit

The waveform generation and its control circuit consists ofthe
ATS52 chip and function signal
The generatorspecial chip MAX038 is made up of the module

transformerTLC5615

Frequencycontrol circuit, TC4066BP band switching circuit

Waveform,

Switchingcircuits. The relevant circuit is shown in figure 2

Itis.

Inthe waveform frequency control circuit,





ATS52MCU P32, P33, P35 respectively control the SPI serial

10research and development of TLC5615 d/a converters 69 mechanical

andelectrical engineering in 2008, 37 (10) mechanical and

electricalengineering in 2008, 37 (10) table

1max038 band distribution, frequency range and the choice of

electriccapacity

Band1

2

3

2type frequency range 10. 0 Hz1.000kHz

1, 000 kHz ?10.00 kHz
10.00 kHz ?100.0 kHz

100.0kHz 1.000 MHz capacitance C60. 1

UF

C70.01mu F

C81000pF

TheC9100pF serial clock inputs SCLK,

Theserial data entered DIN and TLC5615





Pickthe CS signal

Itis. The analog voltage of the D/A transformation is then TLC5615

The7th leg output is R1 50k

Theresistance of the Q into MAX038 10 feet

UN

Thefrequency of the output waveform can be controlled?

Thefrequency control algorithm is as follows: MAX038 output

frequencyis led by UN

The current of the foot, the charge of the coon for the earth and
the voltage of the fis? Letssay MAX038 is 10 feet UN input
voltage is Vin,

Concatenatedelectricity

Inthe case of Rin,

Thefrequency of the signals produced when the base 8 (fas) is

grounded

Theformula is: fo

Vin/(Rin x Cose) (1)

)





In:fo is the output frequency, the unit MHz; Vin is the input

Voltage,unit V; Rin is a series resistor

,theunit Q Thecosine of c is the output

Frequencyis strung into the capacitor value, unit pF [1]?

Asshown in figure 2, you can see that Rin 50k

Q,Vin the range of 0. 5 5v, so on

Ata certain capacity, it can provide 10 times sweep range (band 1

except), thus



Areasonable choice of the capacitor of the Cose can determine the

outputfrequency range

,thatis, the frequency band?

Theband switching circuit is TC4066BP?

Electronicanalog switch) and 4

Bandcapacitance C6 C9

Thefour electronic analog switches in TC4066BP, controlled by

singlechip P24 ?P27,are switched on or off

Choose different capacitors for MAX038,s 5 feet cosine of c.





I5m going to choose four

Samecosine of c

Thesignal is divided into four frequencies?

Coverthe requirements of the design.

Whenresistance Rin Q 50k, Vin range from 5 v to 0?5v, by

type(1) can be calculated for each frequency band distribution

Thecapacity choice for scopes and capacitors is shown in table 1

Itis. Output drive circuit design of 2.2.3 signal generator

Because the output of MAX038 is constant 2V (P - P),
And lose,

Thecurrent is not high, so the output of the signal generator must

bedesigned

Providesufficient output voltage and current to meet the design

requirementof 5V voltage

Amplitudeand drive 50

Qload requirements?Theoutput driver circuit is the signal

Oneof the main difficulties in designing the device?Becausethe

outputsignal has a maximum base frequency of 20 MHZ,





Thehigh harmonic components of the triangle wave and the rectangle waveare very high, so it's going to be

Toget the actual output waveform, the amplifier has a high frequency

Wide?Thesecond requirement is that the output signal is adjustable within arange of 0 ' 5V

Thestep interval is 0. 1 V,

Thisrequires the magnification of the amplifier to be designed

Controlled by single chip microcomputer?In addition, drive the

low resistance load, the output driver circuit

Thecurrent output capacity is also an important parameter, which is 50

Qload on the 5 v output signal, the output driver circuit continuouscurrent lose at least 100 ma

Theability.

SelectNationalSemiconductor?s high-speed broadband shipping LM6361 as a voltage amplifier

Theparameters are well suited to the design





Theresearch and development and its control circuit diagram in figure 2waveform 70 mechanical and electrical engineering in 2008, 37 (10)mechanical and electrical engineering in 2008, 37 (10) flow chart offigure 5 step to adjust output submenu

Figure3 outputs the drive circuit diagram

Thehighest signal frequency can be up to 50MHz [2]?

Inorder to enable the amplification of the voltage amplifier in LM6361to be controlled by a single chip,

In series with LM6361 negative feedback circuit connected to 100 tapCAT5113 programmable digital potentiometer, CAT5113 is a simple andeasy-to-use programmable digital electricity

inelectronic systems, it can completely replace mechanical
potentiometers and fine tuning

Resistance[3]?

UseATS52 14 feet, 16 and 17 feet respectively control CAT5113 1 footINC end (incremental control input), CAT5113 CS 3 foot end (piece ofinput used to activate CAT5112 control input) and

CAT51132 feet U/D (increasing/decreasing the control side)?

Giventhat the typical value of the output current of LM6361 is 5mA [2],

Unable to meet the requirements of direct drive 50 Q load, so the



LM6361voltage amplification

Thesecond stage of the device separately designed the

complementarysymmetrical power amplification circuit of QI and Q2,

withplus or minus 12V voltage

Electricitygreatly improves the load capacity of the output level.

Inthe 50

Qdrive current when the load reached more than 200 ma, can fully

meetthe design requirements of driving load

Ability?Theoutput driver of the design is shown in figure 3

It is. System software design system software design adopt modular
design, each
Low coupling and high cohesion betweenmodules? The program

Writein C in KEIL environment

Andspeed up the

Developmentspeed, facilitate structured programming, contemporary

Thecode is readable, easy to maintain, and portable?

Softwaredesign is divided into four modules: main program,

Preset the submenu program to display the output parameter





subdishes

Asingle program, step and output subroutine, which calls the other inthe main program

Threemodules?Themain program flowchart main program is shown as the main thread inthe menu

Toprovide the partial initialization of the system,

Thengo to the main menu and wait for the user command, which is shown infigure 4

? The pre-set submenu program isresponsible for the output signal frequency values

The voltage value of the keyboard setting and the output signal can
be set by the keyboard?

Theoutput parameter subroutine is responsible for keyboard scanning andfrequency, amplitude, and step

Real-timedisplay tasks for parameters such as input values.

Figure4 main program flow tutu research and development, 71 mechanical andelectrical engineering in 2008, 37 (10) mechanical and electricalengineering in 2008, 37 (10) the network address of a device must bein the hardware Settings, and the address of each site

Is the only one? The networkaddress of the upper-level machine is



throughthe extension slot of the upper machine

TheSA85 network adapter is set up

Itis. The network address of the PLC is set by two rotating

switchesafter the CPU module, and the frequency converter is

pluggedin

TheModbusplus communication card (vw3-a58302) on the converter is

set?Theweighing module of a loop for the 6ISP is included

Specialweighing module ISXISP

Y100;

Weight display unit TSXXBTH100; Process control program, connection

Box, etc? The ISXISPY100weight function is as follows

Itis.

1)the measurement input usually connects one or more load sensors,

weighingthe load

Thesensor provides a mV signal that is proportional to the

measurablematerial

,upto

Andthen eight loads of sensors





Theweighing module collects the data 50 times per second?2)with

twohigh speed discrete output, when the threshold voltage reaches

acertain value

Acontinuous response time and time operation is triggered?3)

Asealed digital connection, usually shown in the external display

unit

Theinstantaneous flow rate?4)

Itcan be installed on the PLC floor by slot?

Weighingmodules also provide the following functions: check, zero

preset,auto go


Skin, zero trace, transient measurement?Weighing modules with
microprocessors

Differentdata related to weighing, such as dynamic weighing

measurement,gross net weight, instantaneous

Flowrate, stability, zero, overload, manual tare, etc

Aswe 11 as the discrete value output, the tare value storage, and

soon. The software configuration IFIX3?5software runs on the

operatingplatform above Windows 2000

Areal 32-bit application

Usingthe powerful and practical variety built in it





Function,through the rich imagination and elaboration of the

developer,make the final

Theuser program will be able to match the application site to the

topmachine system

Tomonitor, control and manage the actual requirements, and to

display,control and

Communicationspeed, real time and compatibility are excellent

performance?

Basedon these advantages, the above monitoring software USES

IFIX3.5.

The standard man-machine interface was designed through the IFIX3.5
software, including the following aspects: 1) electroniccontrol
picture

Inthis image, the dynamic simulation shows the whole 360m2 burn

throughprogramming

Processflow of the machine system?Notonly can the operator be

monitored

Theoperation of the entire 360m2 sintering machine system

Youcan also follow the birth

Productionneeds to be made from different materials?Whenthe





devicefails, it's ok

Popup the alarm image and cause the operatorsattention. 2)

Instrumentcontrol picture

Thisimage shows the process parameters of the whole 360m2 sinteringmachine system

Itis. also

Thedesign of the mix of ingredients is designed for the operator to setthe matching parameters

A historical trend is designed to allow operators to navigatethrough, allowing operators to find out

Best controlmethod? The automatic batchingsystem is demonstrated in detail

Lotsof experiments and long hours

Thenormal operation of the room is successful and the system is in goodcondition

Well,it not only improves the automatic level of sintering, but alsoreduces maintenance and maintenance

Thelabor intensity of the worker, and the ability to reduce the returnrate, created the great classics





Thebenefit of the economy is therefore worth learning from?reference

[1]

DongBin Song Jie, DJ dee. Sintered disk batching belt scale
controlnew ideas [J]?Journalof sintered pellets, 2003, 28 (6) : 35 and 37. [2] jin-feng huang, lixian?Computerbatching system based on fieldbus [J]?Automation

Technologyand applications?2002,21 (3) : 35-36. [3_

Wang jianmin, sun tiqiang? The VClanguage development and microcomputer ingredients software forindustrial control software

Design [J]?Journal of hebei institute of technology 2002 (Zl) : 25-27?[4]yellow zun, peng xianwu. Cement raw microcomputer batching system[J]? Microcomputer letter

Rate,1998 (6) : 23-25. [5]

Shi1 in lock, wang tao, liu shunbo. Customer application implementationbased on the OPC specification

[J]?microcomputerinformation

2003(5) : 69-69. Introduction to the first author: song qiang, male, bornin 1974, shandong new Thai man, master, speaking





T.Research area: intelligent control and process contro 1. Ten

papershave been published

Itis. (editor: to fly) 3.

Step2: step by step adjustment and output subroutine to adjust the

outputsubroutine is mainly responsible for the selection of step

spacing,step

Thereduction in advance and step reduction, and the proportional

calculationof the internal parameters?step

Theflow diagram of the input output subroutine is shown in figure

5

It is. 4 conclusion compared with the traditional analog signal
generator, the signal generator based on single chipmicrocomputer
ATS52 and MAX038 design of low cost, waveform

Theadvantages of small distortion, programmable adjustment, human-

machineinterface friendly etc?Ithas been tested

Thefunction. 1)

Youcan produce the sine wave, the square wave, and the trig wave

waveform,

Theoutput signal frequency range is actually 1Hz 1MHz

Thecapacitance of other capacitors on MAX038,s COSC will allow

the frequency to expand





Showup to 0. 1 Hz ~ 20MHz [1],

Adjustableadjustment: in 10Hz 1kHzrange

Theinner step spacing is 10Hz;

In1kHz ~ 1MHz, the interval is lkllz and the output signal

frequencyis set by the keyboard?2)in 50 Q load conditions, the

outputsignal is the voltage peak - peak Vopp adjustable within the

rangeof 05V, adjust step interval is 0. 1 V, output

Thevoltage value of the number can be set by the keyboard?3)

Thetype, amplitude, and magnitude of the output signal can be

displayedin real time on the liquid crysta1.


Frequency and frequency step values with friendly human-machine
interface? reference

[1]MaximlntegratedProducts?High- FrequencyWaveformGener -

AtorMAX038Datasheet[Z]. 2003. [2]

NationalSemiconductorCorporation.LM6161 / LM6261 /

LM6361HighSpeed0perationalAmplifier[Z]. 1999. [3]

Guangzhouzhou ligong single-chip machine development co., LTD.

100tap programmable digital potentiometer

(DPPTM)-cat5113 [Z]?2005.Introduction to the first author





Hewas born in 1973 in fengcheng, jiangxi province

Seniorengineer

Itis. Research area: embedded system development applications.

Tenpapers have been published?(editor:to

fly)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Study and development 72





显示全文