12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    mackrackit

    Thanks for the speedy reply.

    Have I got this right? I can use the "PICBASIC PRO™ Compiler Demo from Melabs" and make some simple 12F675 projects without having to buy anything else.

    And then, when I get more confident I can buy the BASIC or PRO-programmer / compiler.

    Or do I have to buy the BASIC-programmer / compiler now before I can go any further.

    LEDave

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Unfortunately the demo will not work with the 675, but the PICkit1 will work with most any 14oin or 8pin PIC.
    Demo version PIC® MCU support:

    PIC12F683, 16F627(A), 16F628(A), 16F84(A), 16F688, 16F690, 16F87, 16F88, 16F870, 16F871, 16F872, 16F873(A), 16F874(A), 16F876(A), 16F877(A), 16F882, 16F883, 16F884, 16F886, 16F887
    And the demo is limited to 31 lines of code.

    Yes, try before you buy. That is what the demo is for.
    In my opinion if you are going to stay with MCU programming, get the pro version.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    mackrackit

    So if I buy the 'pro version' I can use my PICkit1 to load the hex file into my projects?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yes.

    PBP will generate the HEX. Then you will use the PICkit1 software to load the HEX onto the PIC. The PICkit does not care who or what makes the HEX.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    mackrackit

    So if I buy the 'pro version' I can use my PICkit1 to load any HEX files I create into my projects?

    What about the program Joe S wrote for me in this thread (Is it written in PICBASIC) how do I turn that into a HEX file and run it on my PICkit?

    Oop's sorry for double posting I lost my way there for a second.

    Also interesting website of yours.

    All very confusing right now but I'll get there.

    LEDave
    Last edited by LEDave; - 16th February 2010 at 18:53.

  6. #6
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    So if I buy the 'pro version' I can use my PICkit1 to load any HEX files I create into my projects?

    What about the program Joe S wrote for me in this thread (Is it written in PICBASIC) how do I turn that into a HEX file and run it on my PICkit? Will my MPLAB IDE convert it?

    Oop's sorry for double posting I lost my way there for a second.

    Also interesting website of yours.

    All very confusing right now but I'll get there.

    LEDave

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yes, the code Joe wrote is in done in PBP.

    BASICS....
    When you get your PBP CD there will be a program there called Micr Code Studio (MCS). This is where you will write your code. You can use other editors but MCS is probably best for starters.

    Copy Joe's code into MCS or write your own. There are config fuses that need set, Joe did not include that but we can go over that when you are ready.

    Once you are happy with the code there is e a "button" in MCS to click and PBP runs to compile the code into HEX. The HEX is saved in your project directory.

    The PICkit1 has software of its own. Open that and open the HEX created by PBP using MCS. There will be a "Write" button in the PICkit software. ( you already know about that I guess).

    My web site is a work in progress. I hope it will help someone along the way.
    Last edited by mackrackit; - 16th February 2010 at 19:04.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    "There will be a "Write" button in the PICkit software. ( you already know about that I guess)."

    Yes I've managed to load / erase and reload the demo HEX programs.

    So I need to save up some pennies then for the pro-version, all fascinating stuff though and I will get there.

    Like Arni, I will be back.........!

    Many thanks

    LEDave

  9. #9
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,
    I'll expand a bit on what's already been said. Not because any of it is wrong, just trying to help you get the picture.

    This is basically how the code gets from PBP syntax to a .hex file in your chip:
    IDE -> Compiler -> assembler -> device programmer -> PIC

    1) IDE. Integrated Development Enviroment (a fancy word for a text editor on steroids) This is where you actually write your PBP program, it can be Notepad or MicroCode Studio, which is included with PicBasicPRO when you buy it. The later is recomended but not needed.

    2) Compiler. This is PicBasicPro - it compiles or "translates" your BASIC statements and commands into assembly language that can then be converted to a .hex file by the...

    3) Assembler. There are two assemblers available, one comes with PBP and one comes with MPLAB. There are times when one needs to use the one over the other but lets not get into that at the moment. The assembler is what takes the assembler listing that the compiler produced and generates a .hex file that can be programmed into the PIC by the....

    4) Device programmer. This is the hardware devices and it's associated software used to get the .hex file fromt tha harddrive on the computer into the actual PIC chip. As you probably can see here it doesn't know or care how you got that .hex file.


    This may sound like a lot but if you use the MicroCodeStudio IDE it all happens behind the scene. You type in your BASIC program and hit the compile button and out comes a .hex file ready to be programmed into your PIC by the PICKit1 or any other device programmer supporting the PIC-chip you're using.

    If you're lucky the PicKit1 is even directly supported by MicroCodeStudio. IF that is the case you don't even need to launch the PicKit1 software to get the .hex file into the chip - MicroCodeStudio handles that for you as well. One single click get you from BASIC code in the IDE to a programmed chip.

    /Henrik.

  10. #10
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Thanks for that Henrik, very informative.

    What would you suggest I do now? Buy the PicBasicPRO and start learning or go another route in the interim.

    Dave

  11. #11
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Well, it depends on what your goal is. If all you want to do is turn an output on when an input goes high you can get away with the demo but I guess you're ultimately looking to do more (way more) than that.

    If you are taking this seriously then by all means buy PBP, it's worth every penny. There are other compilers, both BASIC and other languages (C, PASCAL etc) available but since this forum is aimed at the products from Melabs (PBC and PBP) specifically that is what we like to use and discuss "around here".

    As you know, it IS associated with a learning curve though so you SHOULD start small, just like with the example you posted. Blink a LED, blink two LEDs, get a LCD up an running etc etc - small steps. Trying to bite off too much at one time will only get you frustrated.

    Good luck!
    /Henrik.

  12. #12
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    Get PBP. You'll never regret the investment. I own/use 3 high-end C compilers, and do a lot of commercial work. I can push 99.9% of my embedded controls work out of here, all done with with PBP, and never have to worry about it working as expected 20 years down the road.

    It's rock solid, and a lot easier than using C. There's only 1 other basic compiler for the PIC that's worth a look, but it hasn't had anything but beta updates for the last several years. And you have to jump through hoops just to install each new beta version.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Yes, the code Joe wrote is in done in PBP.

    BASICS....
    When you get your PBP CD there will be a program there called Micr Code Studio (MCS). This is where you will write your code. You can use other editors but MCS is probably best for starters.

    Copy Joe's code into MCS or write your own. There are config fuses that need set, Joe did not include that but we can go over that when you are ready.
    Joe did not include those, because the "DEFAULT" config located in the 12F675.inc file will work and I did not want to add to his confusion, rather just to demonstrate how simple PBP really is, but I digress, Dave (mackrackit) is right, Configs are something you will have to deal with, regardless of your choice of compiler.
    In a nutshell _ _ _ You write a program in C or PBP and compile it into an assembly program, the Assembler, I E MPASM, turns it into a HEX File and your PICKit stuffs it into the PIC. And If you wrote it right then your PIC is Fat, Dumb and Happy Doing what you ordered it to do. And yeah, I know the demo does not support the 675, so 2 bucks? gets you a 12F683 which it does support. As for your programmer, it will stuff the hex from any of the methods available as long as it supports the chip you have chosen. My first programmer was a JDM clone from an eBay seller in Bulgaria for $8.00 US, used Iprog, or PonyProg or one of those freebie programs to operate it. The best part about PBP is this forum, nobody here will steer you wrong intentionally.
    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.

  14. #14
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    As ever many thanks to you all for your help and guidance.

    I'll download the demo tonight and try and convert the program Joe posted earlier in the thread into a HEX file and load it, Ill let you know how I get on, then take it from there.

    I do suspect there could be one or two more questions popping up along the way.

    Fascinating subject though with loads of possibilities.

    Dave

  15. #15
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    I've downloaded the demo program and I'm about to buy 10 of these chips.

    They are the right ones for Joe's LED program? Can anyone confirm please.

    http://uk.rs-online.com/web/search/s...duct&R=6230178

    Dave

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