ADC_IN statement


Results 1 to 9 of 9

Threaded View

  1. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    <table><tr><td></td><td>
    Code:
    IF volt "<" oldvolt THEN
    well unless we don't use the same compiler, it must return a syntax error as well
    </td></tr></table>
    Code:
    If something=something_else then Label
    is the same thing as
    Code:
    If something=something_else then 
        goto Label
        endif
    At least here... so that's weird.

    Code:
    DEFINE ADC_SAMPLESUS 50
    the only valid syntax i know is
    Code:
    DEFINE ADC_SAMPLEUS 50
    Yeah, it doesn't return any syntax error... it's just ignored. Fortunately there's some default value
    pbppic14.lib
    Code:
    ;****************************************************************
    ;* Default Adcin values                                         *
    ;****************************************************************
    
        ifndef ADC_BITS		; ADC number of bits
    ADC_BITS EQU 8
        endif
        ifndef ADC_CLOCK		; ADC clock source = rc
    ADC_CLOCK EQU 3
        endif
        ifndef ADC_SAMPLEUS		; ADC sample time in microseconds
    ADC_SAMPLEUS EQU 50
        endif
    Last edited by mister_e; - 14th April 2007 at 18:32.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. newbe: IF..THEN statement
    By ShawnB in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th November 2009, 14:07
  2. 16F883 and Problems with HIGH statement
    By aaanekre in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th October 2009, 01:09
  3. END Statement
    By jderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th November 2008, 14:48
  4. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05
  5. getting around the basic IF - THEN statement
    By dw_pic in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th February 2006, 14:10

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