Max/232 Bootloader problems - Schematic attached...


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    Thank you for replying...

    I am not having trouble with the breadboard. It's my new circuit board that does not allow me to program the chip. On the breadboard, I can program just fine.

    I do have a pull-up resistor on the circuit board for the 876. I will have to add one for the 16f88 when I start working with that part of the circuit board.

    The circuit board has a jumper that allows me to chose which PIC I am programming. Both will have the "bootloader" programs in them.
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  2. #2
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Cool A picture is worth a thousand questions

    Hi Ross,
    Quote Originally Posted by rossfree View Post
    It's my new circuit board that does not allow me to program the chip.
    You may have to post pictures of your PCB.

    Did you etch it yourself?
    Double sided?
    Does it have plated through holes?
    Are there any solder bridges?
    Did you accidentally lay it out as a “mirror image”?
    Are all the PCB parts installed with correct polarity?
    Are external wires attached to the correct places?
    Is the MCLR resistor really 4.7k not 4.7 Ohms (4k7 not 4R7)?

    A picture is worth a thousand questions!

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default Artwork attached:

    To Pic_User,

    Thank you for your reply.

    Did you etch it yourself? No... PCB123. I made two boards. No solder-mask or SS. And I found a problem earlier... my metal can crystal was intermittantly touching traces under it. Ha! Fixed.

    Double sided? Yes.

    Does it have plated through holes? Yes.

    Are there any solder bridges? I've been over it carefully. Can't find any. Doesn't mean I didn't miss something. But it's not a huge board. I've checked voltages and ohm'd pins. Nothing stands out as blatantly wrong. Power supply is cool, no hot parts at all. 5 volts where expected. 12 volts where expected... etc.

    Did you accidentally lay it out as a “mirror image”? Nope.

    Are all the PCB parts installed with correct polarity? Silk screen was wrong on LEDs... put them all in backwards. Bother! :-) I corrected it earlier.

    Are external wires attached to the correct places? No external connections as yet. Only power supply, Max232, 876, and T/C amp on board. Trying to get this going before pushing on. One thing at a time. :-)

    Is the MCLR resistor really 4.7k not 4.7 Ohms (4k7 not 4R7)? Good question... I checked it earlier. It is correct. And the 100 ohm resistor on pin 9 is correct also.

    If I had pics of the board I would post. I'm including a PDF of the artwork and traces. Blue traces on bottom of board... Red on top.

    I have three operator push buttons and a POT on back side of board and an in-line connector strip for the LCD (also on back of board). The LCD is not connected. And I have not put the operator POT on the board yet either (R23).

    I know it is unlikely that you can do much... but just maybe someone will catch something I missed.

    HELP HELP HELP! :-)

    Thank you!!!
    Attached Images Attached Images
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Do you have 16F876 or 16F876A selected in your programmer, or which chip do you have?
    It's a thought...
    How about the PGM pin on the '876? Do you have the right pullup/pulldown on that? Are you using high voltage on the breadboard and low voltage on the PCB?

  5. #5
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    Do you have 16F876 or 16F876A selected in your programmer, or which chip do you have?

    I'm using a 16f876. Microcode Studio is also set to 16f876.



    It's a thought...
    How about the PGM pin on the '876? Do you have the right pullup/pulldown on that? Are you using high voltage on the breadboard and low voltage on the PCB?

    I am holding MCLR high with a 4.7k resistor. I don't think I need to do any more than that. I am using a MAX232 connected to TX and RX and pin 9 of the MAX is connected thru a 100ohm resistor to MCLR on the chip.

    It asks for a reset when I try to program... but pressing the reset button on my circuit board does nothing for programming the chip... it does pull pin1 of the 876 (MCLR) from 5vdc to gnd.

    I'm still checking voltages... and the thing that sticks out is that the voltages on the MAX232 on my circuit board are different from those on my breadboard. And all of this works on my breadboard... using the same MAX232 and the same 876. :-[

    One voltage that really stands out is on pin 8 of the MAX232. On my breadboard... with the serial cable plugged in (from my computer) and the breadboard powered up, I read -10vdc. On my circuit board... under same conditions, it reads 0vdc. There is something wrong there. I will look at it closer.

    If you haven't had a chance to look... I've posted a schematic and board layout in this thread.

    Thank you for helping out!

    Still looking for an answer.

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rossfree View Post
    I am holding MCLR high with a 4.7k resistor. I don't think I need to do any more than that. I am using a MAX232 connected to TX and RX and pin 9 of the MAX is connected thru a 100ohm resistor to MCLR on the chip.
    Ross
    Not MCLR-------PGM different pin, different function. It'll cause programming problems depending on method used to program.

  7. #7
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    I just checked the data sheet on the 876 (is everyone proud of me! :-)

    Using the bootloader and a MAX232, I am using high voltage programming? Yes? and the PGM pin is associated with Low Voltage Programming and In-Circuit Debugging. So I think I am ok there.

    I DID however find a major problem.

    Yep... I did it... I think I read the drawing of my 9-pin D-sub in reverse... all of my pins on the board are mirrored. :-P

    SOOoooooooo... I think I found my problem. Wierd that it should give me almost all of the same voltages on the MAX232 pins except one. ???

    I'll yank the D-Sub and flip it to the other side of the board and see if that cures my ills.

    Will get back shortly.

    The amateur in me is showing. :-)

    Thank again!

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. bootloader Freqout problems
    By handgio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2007, 13:38
  4. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29
  5. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51

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