Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: cncmachineguy; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    9,647

    Re: ADC not working - I'm a new member

    Well now we need the basic stuff - lol. What pic? what version PBP? MPLAB or MCS? PM or MPASM? Internal osc or external? Some of it we don't need for this problem, but its a good idea to let us know...
  2. Replies
    12
    Views
    9,647

    Re: ADC not working - I'm a new member

    I don't have my book handy, but if you look at the ADCIN section of the PBP manual, there are several DEFINES you need in order to use the ADCIN command. Also to post code in the cool code box, you...
  3. Replies
    12
    Views
    9,647

    Re: ADC not working - I'm a new member

    I think your problem is here:


    Adcin 2, x ' Read ADC value on AN2 (PORTA.2)

    you are reading the value of AN2, then storing in x
    You should be storing in potval

    And WELCOME to the forum!!
Results 1 to 3 of 3