What's the voltage.

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was doing my programming on I/O ports and checking the voltage at particular pin of the port by using multimeter. Is there any method by which I can read the voltage using micro and display that value on to my console.

waiting for your views.

Thanks,
Anmol Kumar

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Steve,

actually thats a post generated by me and it's reply was not clear to me but now

Quote:

If you want to read a voltage level that is somewhere between Gnd and Vcc then bring it to one of the ADC pins. Enable the ADC, set the ADSC bit and wait for it to return to zero then read the ADCH/ADCL registers and you have a number between 0 and 1023 whish represents 1024 fractional steps between Gnd and Vcc (actually other references besides Vcc for the top end of the range are available to you)

i got the point and making my hands dirty.

Agains Thanks,
For hitting this link again.