Re: PIC24FV16KM202 ADC wont start sampling HELP!
OK i figured out what the problem was..
i have 2 mistakes:
First: the AD1CON1bits.SSRC bits was wrong (=1) , it should be AD1CON1bits.SSRC = 7;
second: the AD1CON5bits.ASEN bit was set and that's also wrong, it must be cleared because of the following strange note in the Datasheet...
(When using auto-scan with Threshold Detect (ASEN = 1), do not configure the sample clock source to
Auto-Convert mode (SSRC<3:0> = 7). Any other available SSRC selection is valid. To use auto-convert as
the sample clock source (SSRC<3:0> = 7), make sure ASEN is cleared.)