Home - Knowledge - Details

Control circuit design and software algorithms

Control circuit design and software algorithms

The voltage after signal processing is sent to the A/D conversion chip. Due to the fact that the 80C51 microcontroller is an 8-bit microcontroller and there is quantization error in the lowest bit of the A/D conversion chip, a 10 bit or 12 bit parallel A/D conversion chip should be used, with the upper 8 bits taken as input.

Due to the fact that 8 bits can generate a maximum of 256 quantization levels to the power of 2, each digital quantity corresponds to a temperature of 256/100=2.56 digital quantities/℃. For example, when the temperature is 30 ℃, the numerical value is 30 * 2.56 ≈ 4CH. From this, the corresponding temperature can be converted into code and used as a standard for temperature determination during program design.

The C51 series microcontroller has a total of 4 I/O interfaces (P0-P3), among which P3 can be used not only as a regular I/O interface, but also as interrupt control, counter input, etc. Due to the large number of external devices that need to be controlled in this system, interface reuse will be adopted.

Due to the fact that the system does not need to read data from the A/D conversion chip when setting temperature and time; During the automatic heating process of the system, temperature and time settings cannot be modified. So the P0 interface can be reused as a shared input and A/D conversion chip. Use two 74ls157 chips to complete multiplexing, and use the output of the P2 interface's setting/working state control bit as the multiplexing selection signal for 74ls157, ensuring that the setting and A/D input are not carried out simultaneously. Even in the event of misoperation, it will not affect the normal operation of the system.

The temperature and time display is completed by connecting four LED seven segment digital display tubes to four seven segment decoders, using the P1 interface as the output. The low 4 bits of P1 are used as the encoding output, and the high 4 bits are used as the chip selection signal. By sequentially selecting each seven segment decoder, temperature and time display can be achieved.

The P2 interface serves as the control output terminal. P2.0 serves as the heating control position. When it is high, the electronic switch group is turned on and heating begins; P2.1 serves as an LED synchronization signal to synchronize LED changes; P2.2 serves as the setting/working state control bit. To indicate the control status, two additional LEDs are connected to the heating control status bit and the setting control status bit, respectively.


Www.superbheater.comwwwsuperbheatercom

Send Inquiry

You Might Also Like