PIC16F886 Register Settings


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Posts
    13

    Default PIC16F886 Register Settings

    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.

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I invite you to read the following thread : http://www.picbasic.co.uk/forum/show...3980#post73980, and download DT "AllDigital" file.

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

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Free Fish

    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
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jul 2009
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Thanks

    Thanks a million for the quick response...

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. Can anyone help a newcomer?
    By scopit in forum Schematics
    Replies: 18
    Last Post: - 20th October 2009, 09:23
  3. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  4. Register Settings
    By Archangel in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th September 2007, 00:28
  5. MX7705 or AD7705 experience
    By FM11 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th January 2006, 21:54

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts