AnsweredAssumed Answered

ADC interrupt in cosmic

Question asked by nik.navid on Nov 16, 2016
Latest reply on Nov 24, 2016 by John7
Dear all
I tried to read  ADC1 channels in stm8 in cosmic compiler, but still I could not. as far as the main program start to config the ADC1 initialization nothing happen. I do not know what the problem is with interrupts. there is no error in builder. hex files came out.
void ADC_CONFIG(void)
here is the configuration codes for ADC1. but unfortunately I can not see any result in interrupt function. the program has stopped here,

@interrupt void handleADCInt(void)
    GPIO_WriteHigh(GPIOD, GPIO_PIN_0);
    if(ADC1_GetFlagStatus(ADC1_FLAG_EOC) == SET)

I have defined the interrupt function in vector file.
many thanks for your help