876A startup issue with PortC


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    Thanks for the quick response,

    I've tried this on a 866 chip as well using its internal oscillator with the same results.

    Are you saying that until the chip's oscillator settles or the Brown Out Detect Power Up Timer (which I am using) starts the pic that these pins are going to be high no matter what?

    My issue is I am driving a mosfet with these pins and the split second startup issue causes the mos to conduct which is not desirable if I can help it.

    Is there anyway to force the port definition to be the first thing that happens in the code other then making it the first item in the pbp code?

    Thanks again

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    All pins are inputs on power up - how about adding weak pull-downs to these pins to hold them low - you can then take charge with code. In this manner, they will be low during the power up process.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    I don't have a week pull down, so I will definitely be trying that.

    What has me confused is the simulator showing the pin being high.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    I had the same problem with a 16F819. I turned off the powerup timer & it went away.

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    PORTC = xxxxxxxx on POR or BOR (see datasheet as Skimask would say)
    where x = unknown (versus a known 1 or 0)

    Your simulator is probably set to let unknows be high since it has to be one or the other.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. MY FIRST scrolling 8X8 LED
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2008, 16:23
  2. How do I configure the PIC16F737?
    By LinkMTech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th November 2007, 23:05
  3. A little DTMF help
    By Travin77 in forum mel PIC BASIC Pro
    Replies: 48
    Last Post: - 30th May 2006, 01:31
  4. 18F1320 ... Strange Memory
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 9th April 2006, 09:55
  5. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06

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