1 year ago

#331649

test-img

Charles Taylour

Call of function without prototype error message with Delay1TCYx (1) ( C language )

We have a project that were running using C and a PICkit 3. Our issu is that we remain getting the same error message and arent sure whta the issue is. Any help / advice would be great.

void main (void)
{
    ANSEL = 0;  //turn off all other analog inputs
    ANSELH = 0;
    ANSELbits.ANS0 = 1; // turn on RA0 analog
    ADCON0 = 1; // justify right

    ADC_Init();                  // Call ADC_Init function
    ADC_Convert();
    Delay1TCYx(1);           //delay 1 x 1 cycles 
    int reading0 = ADRESL + (ADRESH * 256); //convert result to 10 bits
    
    if (reading0 = 0b1000000011)
    {   
        readingsamples();
    }
while(1);
}

c

pic

0 Answers

Your Answer

Accepted video resources