F886 & pgm


Closed Thread
Results 1 to 15 of 15

Thread: F886 & pgm

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232

    Default F886 & pgm

    I am working with the 16F886 for the first time. My compiler is PBP 2.60. After an hour trying to get the blinky light program to work (never had this problem on any other PIC) I looked for Post’s that may give me a hint as to what I may be doing wrong. I came across a Post on the 16F819 (another internal clock) that said it would not work unless PGM was tied low. I’ve never had this problem with an F819 but it solved the problem on my 886. If I remove the PGM low the PIC stops operating. I tried several 16F866 and all were the same results. This means I loose RB3 as an I/O. I haven’t tried using external oscillator on the F886 because I would like to use all I/O’s on this project. I’ve never seen any comments about this 886 charictoristec on any Post. Is there something I can do to eliminate the need for the PGM to ground?

    @ DEVICE INTRC_OSC_NOCLKOUT,MCLR_OFF,BOD_OFF,WDT_OFF

    comments will be appreciated!

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Add LVP_OFF to your config settings.
    Last edited by Bruce; - 8th February 2010 at 22:11.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Reply

    Thanks for your reply Bruce.
    No dice! I thought that would do it also. Once I pull the ground wire off RB3 the LED continues to blink for about five seconds then stops.

    There is also another strange thing going on. PORTA.6&7 when in digital output state drivers only 2.4V unloaded then drops to 1.3 & 1.9 respectfully under LED load. I’ve turned off everything I can think of that deals with OCS1&2.
    Code:
    @ DEVICE INTRC_OSC_NOCLKOUT,MCLR_OFF,BOD_OFF,WDT_OFF,LVP_OFF  
    OSCCON=$70
    ANSEL=$00
    ADCON0=$00

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This is for MPASM..
    Code:
    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF
    Notice the E on MCLR E
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If only RB3 causes your problem, then I suspect you're simply not getting LVP turned off.

    It would really help if you posted your code.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    You got analog all to heck on port B, shut off the comparators and don't forget anselh
    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.

Similar Threads

  1. HSERIN each character cost 3 pgm words
    By boban in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 7th April 2008, 16:49
  2. PGM for ICSP
    By dragons_fire in forum General
    Replies: 4
    Last Post: - 15th December 2007, 01:12

Members who have read this thread : 0

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