Title:
the-source-code-of-electronic-scale Download
Description: (1) initial timer and interrupt control register, the initial LCD monitor, set the serial interface communication baud rate.
(2) start double integral AD transform process, read backward integration project cycle numerical N, according to type 3-7 calculate backward integration project duration T2, conversion, send out load weight value LCD display.
(3) every time a load weight after conversion value judgment, whether the measure range, load if more than 2 kg range, the system buzzer alarm. Start When load unloading to 2 kg, remove the alarm.
(4) if there is calibration button is press, the response to external interruption and inquires the key Numbers, 0 executes calibration procedures.
(5) if PC software STP_ISP send the online control command, the response, receiving and serial port interrupt judge ordered code, according to perform calibration procedures and command yards up a machine to send data.
To Search:
File list (Check if you may need any files):
the source code of electronic scale.c