Recompiled a project today that used a 16F1829 to use a 18F15Q40. Initially it didn't compile. Sigh.
The code I've always used for enabling the required pull ups looks a little like this:
SetNot_WPUEN=0'Enable pullups in general.SetWPUA0=0SetWPUA1=0SetWPUA2=0SetWPUA3=1SetWPUA4=1SetWPUA5=1SetWPUb4=1SetWPUb5=1SetWPUb6=0SetWPUb7=1SetWPUc0=0SetWPUc1=0SetWPUc2=0SetWPUc3=1SetWPUc4=1SetWPUc5=1SetWPUc6=1SetWPUc7=1
Turns out on the 18F15Q40 doesn't need (or at least doesn't have) the Not_WPUEN register. I removed that line, all appears to work with out it. Pull ups seem to be present as far as I can tell, my buttons click and are detected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Recompiled a project today that used a 16F1829 to use a 18F15Q40. Initially it didn't compile. Sigh.
The code I've always used for enabling the required pull ups looks a little like this:
Turns out on the 18F15Q40 doesn't need (or at least doesn't have) the Not_WPUEN register. I removed that line, all appears to work with out it. Pull ups seem to be present as far as I can tell, my buttons click and are detected.