Find the C program of an Mcs51 microcontroller about the acquisition of A D conversion data

Updated on technology 2024-02-27
12 answers
  1. Anonymous users2024-02-06

    There is an ADC0804 acquisition program, Sensible electronic design VGZ

  2. Anonymous users2024-02-05

    Don't know what chip you choose? adc0809?

  3. Anonymous users2024-02-04

    It's not a big question, but you can talk about it.

  4. Anonymous users2024-02-03

    I'm really anxious for you, but do you think who will make software for you without hardware diagrams?

  5. Anonymous users2024-02-02

    Awesome, I'll only remember it tomorrow.

  6. Anonymous users2024-02-01

    The input voltage range of the A D chip is unipolar, and the input negative voltage is limited to a minimum value of 0V. You check the information of the A D chip to see if you can set the input voltage to bipolar, if not, you have to move the input voltage up to unipolar, and the data output by A D will be subtracted from the intermediate value after entering the single-chip microcomputer, and it will be restored to the bipolar voltage.

  7. Anonymous users2024-01-31

    It is enough to subtract the AD conversion value of the bias voltage from the data read by the microcontroller.

  8. Anonymous users2024-01-30

    ad_vo=float(ad_val)*;The resolution is eight bits 2 to the eighth power, so it's 256, which means that your reference voltage is 5V, and the number of the collected is AD Val (divide 5V into 256 parts), and AD Val is the fraction collected, so AD Val 256*5V gets the voltage value.

  9. Anonymous users2024-01-29

    ad val is an ad sample, not the actual value you want.

    AD VO is to convert your AD sampled value into an actual value.

  10. Anonymous users2024-01-28

    num=num*5*10/256;

    If it is num*5 256, it is the real voltage value, if it is num=num*5*10 256; This is to increase the voltage by a factor of ten, because if you don't define the variable as a floating point, then the result is only a single digit, and the decimal places are ignored.

  11. Anonymous users2024-01-27

    This means that you are 8-bit AD, the benchmark is 5V, each codeword represents 5 256V, and the other 10 is the multiplication factor you request.

  12. Anonymous users2024-01-26

    If you are willing to pay money, it is recommended that you go directly to the seller who sells PIC single-chip microcomputer development boards to buy.

Related questions
10 answers2024-02-27

time=th1*256+tl1;

This is to use the timer t1 to count, time=th1*256+tl1; This is to calculate the time according to the count value of the timer counter t1, th1 is the higher 8 bits of the counter, and the count result is of course multiplied by 256 times, plus the value of the lower 8 bits tl1. >>>More

5 answers2024-02-27

void timers() interrupt 0count++;

tr0=1; >>>More

16 answers2024-02-27

Isn't this thing just a digital tube displaying 16 digits? Prompt you 16 times to get there, let go after you think to press the stop button. If so, the procedure is available for reference: >>>More

6 answers2024-02-27

Not at all contradictory. The purpose of each port of the single-chip microcomputer is different, the structure is also different, you say that the current of the LED MA level can make it brighter, which refers to the rated brightness, different power has different brightness, you can't compare the 1 mm patch with the 10 mm one, can you understand? If you want to use LEDs at the P2 port, there are two ways. >>>More

19 answers2024-02-27

First of all, it is recommended that you use a serial port. >>>More