Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.03 seconds.

  1. Thread: AD conversion

    by mister_e
    Replies
    8
    Views
    5,962

    Re: AD conversion

    Yup they all have the same register.

    ADCIN select the channel, perform the conversion, then read it from ADRESH/ADRESL register, then dump it to your variable.
  2. Thread: AD conversion

    by mister_e
    Replies
    8
    Views
    5,962

    Re: AD conversion

    OK, so you have the results left justified, it should work. BUT maybe you have some nifty noise on the line or something like that. Allow a certain error margin.



    test 0
    If pw<5 then
    ...
  3. Thread: AD conversion

    by mister_e
    Replies
    8
    Views
    5,962

    Re: AD conversion

    For debugging purpose I always suggest people use a LCD, ICD or use PC Terminal to see what's happen INSIDE the PIC.

    Also, post your PIC model, whole code so we see your ADC DEFINES. Is the ADC...
  4. Thread: AD conversion

    by mister_e
    Replies
    8
    Views
    5,962

    Re: AD conversion

    Bingo! 0-255 it is.
Results 1 to 4 of 4