dsPIC33 : If i enable a ADC peripheral, does each GPIO on the port become ADC-only?

Status
Not open for further replies.

PomPom

Junior Member level 3
Joined
Oct 9, 2012
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,522
https://ww1.microchip.com/downloads/en/DeviceDoc/70000657H.pdf
Datasheet for reference ^

i'm looking at this PIC because i like the large number of IO, as well as ADC/SPI available.

i'd like to have an ADC channel. there are up to 8 channels you can mux in to the ADC. my situation is: i only want 1 ADC channel. say AN0. will AN1-AN7 become unusable as GPIO if i enable the ADC module?

thank you
 

ANSELy register you can set which pins you want to use for ADC and which pin as GPIO pins.
 

dsPICs doesn't have ANSELx they have ADxCONx, ADxCNDxyz, ADxPCFG and mamy more registers to be configuted
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…