-
There is an ADC0804 acquisition program, Sensible electronic design VGZ
-
Don't know what chip you choose? adc0809?
-
It's not a big question, but you can talk about it.
-
I'm really anxious for you, but do you think who will make software for you without hardware diagrams?
-
Awesome, I'll only remember it tomorrow.
-
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.
-
It is enough to subtract the AD conversion value of the bias voltage from the data read by the microcontroller.
-
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.
-
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.
-
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.
-
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.
-
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.
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
void timers() interrupt 0count++;
tr0=1; >>>More
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
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
First of all, it is recommended that you use a serial port. >>>More