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

    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! :-)

  2. #2
    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.

  3. #3
    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! :-)

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rossfree View Post
    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 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
    You ain't the first one to pull off the ol' "flipped the D-sub around to the other side of the board the wrong way around in reverse" trick, or even do the same thing to a double row IDE connector. Good luck...

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


    Did you find this post helpful? Yes | No

    Default

    Happiness is a board that programs with the bootloader!

    That was the problem... the 876 is happy and computer is chitting at it merilly. It was the mirrored D-Sub. A mistake I can live with... but assure you will be corrected for future projects.

    Thank you Skimask for your comments. And thanks to those that helped out.

    Love the forum!

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

    I like that! :-)

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


    Did you find this post helpful? Yes | No

    Default Skimask, did you see that?

    Quote Originally Posted by rossfree View Post

    "Thank you Skimask for your comments." And thanks to those that helped out.
    Skimask, did you see that ?
    JS
    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.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Skimask, did you see that ?
    JS
    Yep...'bout crapped myself too

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