mkstevo - 2022-03-03

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:

Set Not_WPUEN = 0 'Enable pullups in general.
Set WPUA0     = 0
Set WPUA1     = 0
Set WPUA2     = 0
Set WPUA3     = 1
Set WPUA4     = 1
Set WPUA5     = 1

Set WPUb4     = 1
Set WPUb5     = 1
Set WPUb6     = 0
Set WPUb7     = 1

Set WPUc0     = 0
Set WPUc1     = 0
Set WPUc2     = 0
Set WPUc3     = 1
Set WPUc4     = 1
Set WPUc5     = 1
Set WPUc6     = 1
Set WPUc7     = 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.