Another question about 12F675


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Thank You for such fast reply!
    So :
    If I connect pin 6 to VDD - it's correct ADCON0= %10001101.
    In this case, this code
    Code:
    adcin 3, read_volt
      	read_volt=read_voltage * 5000
      	read_volt=div32 1023
    it's correct ? It's possible to read so at AN3 the voltage between 0 and 5 volts(VDD)?
    I need to read maximum 1 volt...
    Some explanations: I intend to use ADC of 12F675 like "over-current detector" for one electrical motor. The montage is used in autovehicle,where, I think, it's spikes of voltage and I search the way to avoid PIC dammge.
    Attached Images Attached Images  
    Last edited by fratello; - 24th August 2010 at 14:40.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts