Results 1 to 10 of 10

Thread: Microchip CONFIG bits...

  1. #1
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798

    Microchip CONFIG bits...

    So I know a fair amount about microcontrollers and I designed a circuit equal to the fusionbrain but better (for my needs anyway).
    It uses all SMT components and has a very very slim design that even I am proud of. I hooked up my JDM programmer to the programming pins and programmed the code, but my config bits would not go whatsoever!

    Any idea why?

    The way I have it set up, there is a designated programming port on the 44-pin PIC18F4455 IC's that I planned on using for programming... but you can't program the FIRST time with those, so I have output pins used for the first program. I can't use my designated header unless I program in the CONFIG bit that says ICPRTS = ON...

    Help? The boards will be fantastic and I can't wait to use them, I just need to get the initial program loaded so that I can debug the rest of it. Thanks.

  2. #2
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    I seem to recall the config bits requiring a different programming voltage than the flash memory. I know the JDM doesn't do LVP. Maybe that will help figure it out at least?

  3. #3
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798
    Oh, I can program the DIP PIC18F4455... just not the surface mount one... TQFP package I believe...

    I tried my programmer to be sure and my code wrote to the DIP package but using the same outputs, I couldn't write the configs to the TQFP package...

    And its not really a JDM, its like a modded JDM2... mix of like 3 different schematics but it works beautifully.

  4. #4
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    OK, so it's programming all the config bits except that one or no bits? I'm still a little confused. It looks like all the chips use the same base address, but still the programmer usually has to be set to the correct device. What do you see when reading them back? default or all 1 (unprogrammed)?

  5. #5
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798
    They all default when read back and I set the right device. Same config as the DIP part but it just won't go. Im gonna try a different way tonight...

  6. #6
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    You should try to ICSP the DIP (just a socket and wire) to make sure that method works.

  7. #7
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798
    I use the exact same programmer on the DIP and it programs just fine.

    Then where the ZIF socket is for the DIP package, I put wires into the pin holes and attach them to the pins on the SMT socket to program it. The program goes in just fine for the DIP and the TQFP, however I can't get the config bits on the SMT package...

    Strange eh?

    Im going to make an empty file with just a stupid main() loop that triggers an LED or something, the very basics, and then in that file set the config bits for the basics with internal oscillator and stuff, then set ICPORT and see if that will work...

  8. #8
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Good idea. Maybe it's working but not reading the config bits back. Understanding all the bits at first is a little hard and like working in the dark. It won't run if just one thing is wrong.

  9. #9
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798
    So I wrote a quick little file with the exact same CONFIG bits as the main file I intended on using. I've made several circuits using very very similar CONFIG bits on a PIC18f2455, the only difference being the ICPORTS is enabled. I have to try it later on tonight and see if I can program it properly.

    I hate those bits They are like working in the dark, I pretty much google them every time because I constantly forget what half of them do...

  10. #10
    Vendor - Qube colin's Avatar
    Join Date
    Dec 2006
    Posts
    798
    So I tried to program them and...
    nothing.

    I keep getting errors with the stupid software. When I erase the chip, it doesn't erase, just resets the config bits. When I go to program, it says that 0x0000 didnt verify and then stops programming. When I read it back though, 0x0000 is what it should be...

    If I could force the software to continue... maybe Ill just downgrade if I can find the old version of WinPic800 I used to use... I think that's the problem... perhaps the new versions dont support my programmer quite as nicely...

Similar Threads

  1. Don't show config window on startup
    By nbinder in forum Map Monkey
    Replies: 1
    Last Post: 05-24-2006, 02:31 PM
  2. RR install and config PDF
    By accentsound in forum Road Runner
    Replies: 2
    Last Post: 08-21-2005, 07:27 PM
  3. Questions about RR config
    By Enforcer in forum Road Runner
    Replies: 8
    Last Post: 07-21-2005, 11:48 AM
  4. Store keypress config? and remote config troubles.
    By lilmansplace in forum Media Engine
    Replies: 1
    Last Post: 04-08-2005, 05:07 PM
  5. FS: Craftsman Router, Router Table, Router Bits
    By tbird2340 in forum Classified Archive
    Replies: 32
    Last Post: 10-19-2004, 06:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •