The 16f737 has an A/D module, and on some of the RB pins are analog inputs.
Look in the 16F737 data sheet under the "ANALOG-TO-DIGITAL CONVERTER (A/D) MODULE" section for the value to place in ADCON1 that allows these pins to function as digital I/O-pins.
Then you place ADCON1 = x in your code, (where x = the value shown in the data sheet) to turn off the A/D function for pins associated with the A/D module.
On power-up ADCON1 = %00000000 and this makes all pins (associated with the A/D module) analog inputs by default. You just need to change this to configure whatever pins you need as analog or digital.




Bookmarks