Help with ADC &16F628A


Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Feb 2005
    Posts
    130

    Default Help with ADC &16F628A

    Im lost in only six lines of code, I type this on microcode/pbp2.46 (yes I set 16F628A in microcode studio)

    ADCON0 = 1
    lectura var byte
    mainloop:
    Adcin 0, lectura
    Goto mainloop
    End

    and I get errors during compile.

    Its been a while from my last programming, so maybe Im missing something obvious here.

    I would appreciate a working example of ADC for this pic or for 18f pics

    Thanks in advance
    Last edited by peu; - 16th January 2006 at 19:06.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. 10 bit ADC display on LCD using 16f873
    By pr2don in forum mel PIC BASIC
    Replies: 3
    Last Post: - 6th March 2010, 18:29
  3. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

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