i have changed the bank accordingly. the actual status of my project is, when i moved the data of ADRESL directly to the port it is showing some reading but when ever i moved to any buffer, no value is displayed.
hi. i could't understant the problem exactly but the code i sent should work...
perhaps you could't load correct values to ancon0 and adcon1...
don't forget: to load adresl register to any port, after taking asresl value to w, you have to pass bank0...otherwise you will change the tris register....
perhaps you should send your code.....
and i recomment that document: https://ww1.microchip.com/downloads/en/DeviceDoc/adc.pdf