micropad
Member
The pic18 series have hardware 8x8 multiply.
This is the knowledge base question
In the hardware level multiplier, Can I have idea what happened inside
Please advice
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The pic18 series have hardware 8x8 multiply.
The other way is sample 5 times, then and add together... This gives a a reading 5115 ( Not quite 5 volts )...
The max ADC count (which corresponds to 5V if that is your reference) of a 10bit ADC is 1023. Multiply by 5 samples and you have 5 x 1023 = 5115 counts.Dear rogers,
Could you please guide me how did you get this 5115
Thanks in advance
Dear dougy83,
5 x 1023 = 5115 is now understand
"Multiply by 5 samples'
Why it should say "samples "
Please advice
hi micro,
A way I use is a simple resistive divider in the ADC input.
It drops the 5V down to 4.88V, which gives an ADC count of 1000 for 5V.
Then add 5 readings to give 5000 for 5Vinp.
E
hi micro,
A way I use is a simple resistive divider in the ADC input.
It drops the 5V down to 4.88V, which gives an ADC count of 1000 for 5V.
Then add 5 readings to give 5000 for 5Vinp.
E
This is really interesting, Thank you so much
hi,
Use 1% resistors or a 500R trim pot for the 240R
You have not said what the output impedance of your 5V test source is.???
Hi,It would be much appreciated if you can explain more theory related to the picture
Hi,
The question I asked you was, what is your expected RS value.?
E,
...I used 100k variable resistor for ADC, RIGHT pin for VCC and LEFT pin for GND and middle pin to RA2 of PIC ( Analog input)
Please advice
With the pot wiper at the middle, the Thevenin equivalent circuit is a 2.5V source in series with a 50K resistor (half the pot value). This clearly violates the maximum 10K source resistance spec for the PIC's A/D input pin.
As long as you're only using one analogue input then there's no real concern about the source impedance - the problem isn't the input impedance of the pin, but the time it takes to discharge or charge the sample and hold capacitor via the source impedance. This only really causes problems if you're switching between different inputs, you have to allow substantial time delays for the charging/discharging to fully take place.
But as you're just using a pot, why not use a sensible value one anyway? (4.7K/5K would be good).