PDA

View Full Version : PIC16F886 Register Settings



aherrera
- 29th July 2009, 05:07
I am working in a fairly complicated PicBasic Pro project that includes a flash memory, real time clock, 4 line LCD, 5 push buttons and serial communication with a PC. I started the project with a PIC16F648A and got it working very well, but then I realized that I need more program memory so I ordered a PIC16F886. Can anyone help me with the register configuration (all ports are digital inputs and outputs and need pull-up resistors enabled if possible) i.e. ANSEL or VRCON, etc.
I am a little press with the delivery time and a little bit of help will be greatly appreciated.

aratti
- 29th July 2009, 09:43
I invite you to read the following thread : http://www.picbasic.co.uk/forum/showthread.php?p=73980#post73980, and download DT "AllDigital" file.

As Far as pullups setting is the same: OPTION_REG.7=0

Al.

Archangel
- 29th July 2009, 09:47
Give these a try:
OPTION_REG.7 = 0 'rbpu
ANSEL = 0 'ALL DIGITAL
CM1CON0 = 0
CM2CON0 = 0
CM2CON1 = 0
WPUB = 255 ' ALL PORTB PULLUPS ENABLED
VRCON.7 = 0 'VREF OFF
ADCON0.0 = 0

aherrera
- 29th July 2009, 17:52
Thanks a million for the quick response...