ADC using c language programming and using PIC16f877a

Discussion in 'Embedded Systems and Microcontrollers' started by nurul farhan, Feb 9, 2012.

  1. nurul farhan

    Thread Starter New Member

    Feb 9, 2012
    2
    0
    my project is about to compare reference voltage and input voltage,reference voltage is 240V and variable input voltage, so the idea is when the input voltage less than reference voltage,the input will goes low and when input voltage is 240v it will be high..the ports is not so important because i'm using simulation only.

    anyone can help me?a.s.a.p

    thnk so much...
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Well, to begin, 240V is going to kill that poor PIC16F877A in a hurry.
     
    nurul farhan likes this.
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
    If all you want to do is compare two voltage levels then all you need is a voltage comparator, not a micro controller.

    You will need resistive dividers to drop down the large voltage inputs to something more suitable for low level signal applications (<±15V max, <+5V typical)
     
    nurul farhan likes this.
  4. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Is it 240 volt DC or AC ;)
     
    nurul farhan likes this.
  5. nurul farhan

    Thread Starter New Member

    Feb 9, 2012
    2
    0
    240AC voltage..
     
Loading...