Announcement

Collapse
No announcement yet.

Microchip CONFIG bits...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    2001 Mustang Convertible Worklog
    Indigo Custom Frontend (Flash/Delphi)
    Blog

    Qube v1.3 Now Available at the mp3Car Store!!!!!!
    The simplest IO controller you'll ever use!

  • #2
    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?

    Comment


    • #3
      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.
      2001 Mustang Convertible Worklog
      Indigo Custom Frontend (Flash/Delphi)
      Blog

      Qube v1.3 Now Available at the mp3Car Store!!!!!!
      The simplest IO controller you'll ever use!

      Comment


      • #4
        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)?

        Comment


        • #5
          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...
          2001 Mustang Convertible Worklog
          Indigo Custom Frontend (Flash/Delphi)
          Blog

          Qube v1.3 Now Available at the mp3Car Store!!!!!!
          The simplest IO controller you'll ever use!

          Comment


          • #6
            You should try to ICSP the DIP (just a socket and wire) to make sure that method works.

            Comment


            • #7
              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...
              2001 Mustang Convertible Worklog
              Indigo Custom Frontend (Flash/Delphi)
              Blog

              Qube v1.3 Now Available at the mp3Car Store!!!!!!
              The simplest IO controller you'll ever use!

              Comment


              • #8
                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.

                Comment


                • #9
                  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...
                  2001 Mustang Convertible Worklog
                  Indigo Custom Frontend (Flash/Delphi)
                  Blog

                  Qube v1.3 Now Available at the mp3Car Store!!!!!!
                  The simplest IO controller you'll ever use!

                  Comment


                  • #10
                    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...
                    2001 Mustang Convertible Worklog
                    Indigo Custom Frontend (Flash/Delphi)
                    Blog

                    Qube v1.3 Now Available at the mp3Car Store!!!!!!
                    The simplest IO controller you'll ever use!

                    Comment

                    Working...
                    X