In the abstract automatic control system, the proportion electro-magnet which controls by the microprocessor takes actuator’s application to be getting more and more widespread. This design is one interface circuit which controls by the C8051F005 monolithic integrated circuit, uses the PWM technology to carry on the control to the proportion electro-magnet; Simple practical, can satisfy in the automatic control system actuator’s control precision high, to respond the quick request, has certain use value.
The key word C8051F005 proportion electro-magnet controls PWM
Introduction
The proportion electro-magnet takes the functional element, is one of integration of machinery key products, widely applies in each kind of automation control system; The proportion electro-magnet’s thrust force is big, the structure is simple, maintains conveniently, the cost is inexpensive, is application very widespread electricity pneumatic machinery switch [1]; The proportion electro-magnet’s characteristic and the work reliability, has the very important influence regarding the entire control system, decides one of control system quality key components. The proportion electro-magnet takes the electricity pneumatic machinery transition element, its function is the electric current signal which loses to the proportional control amplifier, transforms the displacement or the strength signal output.
The proportion electro-magnet is suitable in the DC voltage is in 24 V proportional control amplifier’s control wiring, takes continuously, in proportion the control system functional element’s movement, the speed and the direction power part. The proportion electro-magnet’s with passes over its coil in its rated stroke scope thrust force the electric current to be proportional, may take the linear power part in other need action automatic control installment, like autothrottle control and so on. When the electro-magnet and the monolithic integrated circuit constitute a automatic control system together, because the electro-magnet working voltage is high, the operating current is big, therefore between the monolithic integrated circuit and the proportion electro-magnet interface circuit’s design is a key.
Along with the microelectronic technology and computer technology’s development, the proportion electro-magnet’s demand grows day by day, has the application in each control domain. Following introduction proportion electro-magnet control technology.
1 PWM actuation basic principle and characteristic
PWM (Pulse Width Modulation, pulse width modulation) the technology is uses the semiconductor switch component’s breakover and the shutdown, turns the voltage pulse row the DC voltage, and achieves the live pressure, frequency conversion goal one kind of control technology [2] through the control voltage pulse width and a pulse row cycle. Is also with the pulse width different a series and so on peak-to-peak value square pulses to approach the electric current which or the voltage signal an institute needs.
The PWM driving circuit, is widely applies in the high accuracy control system’s actuation form. This kind of electric circuit can realize the wide scope speed and the position control, has the incomparable merit compared with the convention drive type. The PWM driving circuit line is simple, the rapidity is good, the linearity is good, the efficiency high merit, causes it widely to apply in the survey, the correspondence, the power control and in transformation many domains. This design uses the PWM driving circuit to need the high efficiency controllable component to be few, the governor deflection width, the rapidity are good, the efficiency is high, the power loss low characteristic, with C8051F005 the monolithic integrated circuit direct output’s PWM signal after the driving circuit, then the coordination appropriate control algorithm (the PID algorithm or fuzzy control algorithm and so on) controls the proportion electro-magnet, may realize coupling’s accuracy control, has the very good reference value regarding the electrically controlled clutch control system’s research.
2 proportion electro-magnets and monolithic integrated circuit interface circuit
2.1 monolithic integrated circuit outlines
This control system uses the monolithic integrated circuit is C8051F005 which American Silabs Corporation promotes monolithic integrated circuit [3]. It is the composite signal system-level MCU chip which integrates completely, some 1 true 12 multichannel ADC, 1 increase the amplifier, 2 12 DAC, 2 voltage comparator, 1 voltage datum, 1 to have 32 KB programmable the Flash memory and with 8051 compatible micro controller essences, but also has the hardware to realize (is not in user software with position operation simulation) I2C/SMBus, UART, the SPI serial interface and 1 has 5 capture/comparison module programmable counter/timer array (PCA), as well as 4 general 16 timers and 4 byte wide general digital I/O port. C8051F005 has 2 304 byte RAM, carries out the speed to be possible to reach 25 MIPS; Has the internal VDD monitoring device, WDT and the clock oscillator, is can truly on the independent working piece the system, can manage the simulation and the digital peripheral device effectively. The Flash memory also has in the system programs ability, may use in the non-volatility data storage, and allows the scene to renew 8051 firmwares. MCU may close any or the complete peripheral device, reduces the power loss.
The C8051F005 monolithic integrated circuit may (- 45~ 85 ℃) in use 2.7~3.6 V voltage work in the industry temperature range. Port I/O, RST and the JTAG pin allows 5 V input signal voltage.
2.2 PWM signal output and proportion electro-magnet driving circuit
C8051F005 MCU has internal programmable counter/timer array PCA. PCA including 1 special-purpose 16 counter/timer time reference and 5 programmable capture/comparison module. Time reference’s clock may be under one of 4 clock sources: System clock /12, system clock /4, timer 0 overflows or external clock input (ECI).
Each capture/comparison module has own I/O line (the CEXn line), when permits it works, the CEXn line through the function selection switch company arrives at port’s some pin. Each capture/comparison module has 4 workings: Border triggering capture, software timer, high speed output, pulse width modulation (PWM). PCA capture/comparison module’s I/O and the external clock input may arrive at MCU through the digital overlapping switch company the port I/O pin.
Outputs 8 PWM signals by PCA (dutyfactor invariably) the procedure to be as follows:
$ include (c8051F005.inc)
ORG 0000H
LJMP MAIN
ORG 0073H; Timer 3 interrupt entrances
LJMP INTERT33
MAIN:
MOV WDTCN, #0DEH; Forbids the watch-dog timer
MOV WDTCN, #0ADH
MOV OSCICN, #84H; The choice internal neterodyne is 12 MHz
MOV XBR0, #08H; Chooses the CEX0 pin company to arrive at P0.0
MOV XBR2, #40H; Permission function selection switch
ORL PRT0CF, #00000001B; Chooses P0.0 is on rollers way
MOV TMR3RLL, #0B0H; For timer 3 low byte tax starting values
MOV TMR3RLH, #0A0H; For timer 3 high byte tax starting values
MOV PCA0CPH0, #0FFH; For PCA capture module high byte tax starting value
MOV PCA0CPL0, #0FFH; For PCA capture module low byte tax starting value
MOV PCA0MD, #08H; Chooses PCA the clock source is the system clock, forbids CF to interrupt
MOV PCA0CPM0, #42H; Chooses 8 pulse-duration modulation output mode, and starts the start
MOV PCA0CN, #40H; Permits the PCA work
MOV IE, #080H; CPU opens the interrupt
MOV EIE2, #1; T3 opens the interrupt
MOV TMR3CN, #00000110B; Starts the T3 work, T3 uses the system clock source
SJMP $
INTERT33:
MOV A, TMR3CN; Eliminates T3 flag bit TF3
ANL A, #7FH
MOV TMR3CN, A
DEC PCA0CPH0; Dutyfactor change
RETI
According to the system design need, through revises PCA0CPH0 to be possible to obtain the different dutyfactor PWM signal.
This control system uses C8051F005 monolithic integrated circuit’s PCA to realize 8 resolution PWM outputs by the software. The PWM signal arrives at MCU through the CEXn line from the function selection switch company the port I/O pin output, the PWM output signal may actuate the proportion electro-magnet through the driving circuit. In module capture/comparison register PCA0CPLn and PCA0CPHn deposits the PWM output signal dutyfactor high level time value. If needs to change the dutyfactor, may change PCA0CPHn in the movement the value, the proportion electro-magnet throwout lever displacement and the PCA0CPHn value becomes the proportion.
In the driving circuit needs the PWM output voltage signal conversion for the proportion electro-magnet controlling current signal, moreover must guarantee the good proportion characteristic relations. Using field effect tube’s jump characteristic [4], on the scene the effect tube when leaks between the source voltage VDS maintains is invariable, drain electrode electric current ID and between the grid source the voltage VGS relations are called “the jump characteristic”, its expression is:
