【正文】
ove will word from sheba operators preach send to show, Implement. Monolithic machine and the number of 1602LCD between general P0 into change had to enter line, resistance for P0 mouth R9 R2 ~ the pullup resistors Section 4 The software design of the control of system This recorder controlling software design adopts modular thought. According to the function,w emake the controlling system software devide into two big modules: (1) ADC0832 driver module, to control the collection of voltage signal。 Convert the value after the unsigned int Int, Dec。t store in existence change LcdInitiate ()。 when the clock set After CLKDIV points of ADC conversion clock frequency. 3) interrupted. When DONE bits is 1, A/D conversion module to vector interrupt controller (VIC) issued an interrupt request in the VICIntEnable VIC, if Bit8 (A/D conversion interrupts enabled bits) make can, then can produce the interruption. Read ADDR will reset DONE bits. This paper mainly A/D acquisition C language driver section design is as follows: /*********************************** Function: A/D acquisition Entrance parameters: CH_i /*********************************** void AD_Change(unsigned char CH_i) { ADC0R = (1 CH_i) | / / choose channels I carry A/D acquisition ((Fpclk / 1,000, 0001) 8 | / / set convert clock (0 16) (0 19) | / / BURST = 0, software control conversion operations | / / normal A/D acquisition modes (0 27)。 DO = / / read take ADC and fruit, and clear except DONE mark bits while (1) . . } Section5 temperature measuring system of Proteus software simulation To ensure system on the hardware and software system, reliable work the Proteus software simulation. The basic process is first draw HaoTu 3 illustrates the simulation Electricity by road after Keil soft thing, Ed into the translation and born of dynamic soft thing ec flooding (files) : LPC2131 loaded. And Proteus software environment The simulation results ( + 3V corresponding full amount 30Kpa) the process design of the software and hardware the results show that the system is correct To ensure that the design of the software and hardware of soil detector is correct this paper designs proteus soft thing into line imitation true. The base this process is first draw had made good figure 2 shows simulation circuit, Keil software piled by again and to create system driver ( *. Wen pieces ) load: the monolithic machine, and will figure 2 virtual dc voltage signal generator set to 45mV. Then the simulation of voltage: enlarge V0 = 48 x = V, soil relative humidity should be: RH = by 100 = 45% RH. Start the simulation can see 1602LCD in figure 2 The simulation results show that the % RH (for the calculation and existing tiny According to convert error). The results show that the system software and hardware design are right. Section6 conclusion This paper introduces some machine oxygen pressure detection adjustment system design of the software and hardware square method. This set with set in A project into A/D turn changing mould pieces of high sexual can LPC2131 chip, tell the plus special A/D acquisition chip, simplified the peripheral circuit design. The system design is simple in structure, reliable in trial has obtained good effect. (1) this design using highly integrated humidity detector A/D conversion chip, SCM and LCD module, greatly simplifying the hardware circuit and significantly reduce the size and cost of A circuit board. (2) electric pressure