modify your code as bellow.
Code:Define ADC_BITS 10 ' résolution Define ADC_CLOCK 3 ' Source de l'horloge (3=rc) Define ADC_SAMPLEUS 50 ' Temps d'échantillonage en uS ;Define CCP1_REG GPIO ' PWM Output on gpio ;Define CCP1_BIT 2 ' Bit 2 ADCON0.7=1
modify your code as bellow.
Code:Define ADC_BITS 10 ' résolution Define ADC_CLOCK 3 ' Source de l'horloge (3=rc) Define ADC_SAMPLEUS 50 ' Temps d'échantillonage en uS ;Define CCP1_REG GPIO ' PWM Output on gpio ;Define CCP1_BIT 2 ' Bit 2 ADCON0.7=1
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks