16f886


Closed Thread
Results 1 to 5 of 5

Thread: 16f886

  1. #1
    Join Date
    Oct 2008
    Posts
    3

    Default 16f886

    I'm trying to put a display on an LCD using the '886. and am using a 4MHZ internal clock. I can't make it work. I can substitute a '876 in the same circuit with a Xtal osc. and it works fine. Any ideas? My display is a LM044L, 20X4.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Could you post your whole code including your Configration Fuses?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Larry View Post
    I'm trying to put a display on an LCD using the '886. and am using a 4MHZ internal clock. I can't make it work. I can substitute a '876 in the same circuit with a Xtal osc. and it works fine. Any ideas? My display is a LM044L, 20X4.
    You need to read the datasheet regarding all of the PORTs used to control your LCD. The PORTs on the '88x line have new features, requiring new register settings. Unfortunately, the default register settings make them incompatible with old code without edits. I can't remember the settings off-hand, but I do know from experience that reading and setting each and every register setting will get it to work.

  4. #4
    Join Date
    Oct 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default 16F886 followup

    Thanks for the input on my last post. The port used to control the LCD was not set-up properly. I did a Trisb=0, making it all outputs, but apparently you have to set the ANSELH register to 0, which I interpreted as strictly for configuring the port for inputs. Setting the port for digital I/O is required. Again, thanks for the input.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Keep this link handy
    http://www.picbasic.co.uk/forum/showthread.php?t=561

    I also recommend you download the document i'd suggest at the above link too.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. 16f886 interrupt on portB problem
    By antonjan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th October 2008, 21:06
  2. 16F886 running out of SRAM ?
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th August 2008, 00:01
  3. 16f886
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 27th May 2008, 06:06
  4. PIC Basic Pro Ver 2.47 Can't Do 16F886
    By NO2K in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th April 2008, 20:02
  5. Setting Fuses using Microcode Studio Plus
    By NO2K in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th May 2007, 00:14

Members who have read this thread : 1

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