Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - 5 1 What is the conversion program of AD value collected by single chip microcomputer?
5 1 What is the conversion program of AD value collected by single chip microcomputer?
Last time I answered your question, was the best answer you chose useless?

-

0~2.5V, corresponding to AD _ data = 0 ~111...11(24-bit binary);

Then 1V is: 67 10886 (decimal).

Divide the 24-bit value AD_data by 67 10886, and the integer part is 0~5, which is the integer part of the voltage.

Divide the remainder just divided by 10, and take an integer to get 0~9, which is the first decimal place of the voltage;

Remainder, divided by 10, the integer will get 0~9, which is the second decimal place of the voltage;

……

Calculate as many decimal places as possible.

-

This algorithm has neither overflow nor calculation error, and has been used for many years.

Hehe, but in the past, we all handled it with 16 digits.

The landlord is now using 24-bit, with a resolution of 0. 15 microvolts, which is estimated to be useless.

It is better to discard the low 8 bits and only use the high and middle 8 bits, and process the data according to the number of 16. The accuracy can reach 0.038 millivolts, which is enough to meet the general requirements.

-

Hehe, there is absolutely no calculation error. This error is caused by insufficient display digits.