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

    Default 12f675_fuse_about_to_blow!

    Hi everyone. Oh boy do I need some help here!

    I've just purchased a PICkit1 Flash Starter Kit. I've loaded the MPLAB IDE software and the PICkit1 Classic program and been able to load and re-load the demo hex code.

    So, time for me to program the 12F675 to turn a single LED on, oh deary me.At this point several questions arise.

    1/ I notice that the PICKit demo program has two program files, one .ASM the other a 'C' program and also the Holy grail here an HEX output file. So question:

    What program language do I start to learn Assembler code or C programming?

    2/ I'd like for starters to write a program whereby I put 5v on input pin 4 and that makes an output pin 7 go +5v and lights an LED,no more complicated than that.

    Can anyone point me in the right direction here?

    All help really appreciated.

    LEDave

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi LEDave,

    Welcome to the PICBasic Pro forum. What language you want to learn? I personally wanted something easy and quick to allow me to turn ideas into actual working projects. Both assembly and C were too complicated for me. I started with PIC Basic with the Basic Stamps and after one great project I was hooked and moved up to PIC Basic (PBC) using PICs and then onto PICBasic Pro. I have made quite a few projects (and lots of money too!) that were relatively easy to create and implement. Ms. Melanie (site adminstrator) once said "as long as your project works the way you want it to what difference does it make what language you use".

    If you are interested in assembly or C you might want to check out the Microchip website. I think there are some other sites available also. Google should help you find what you are looking for.

    HTH,

    BobK
    Last edited by BobK; - 16th February 2010 at 03:55. Reason: correct spelling

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LEDave View Post
    What program language do I start to learn Assembler code or C programming?
    LEDave
    1. Assembler . . . zero cost, much brain damage, much tedious typing.
    2. C language, Can be High cost to about PBP cost, less typing, less brain damage, still much more of both than PBP.
    3. PBP near English syntax, no silly bracketing { . . . } Moderate to low cost, Cheap upgrades, which include new manual, less brain damage. There are things you will have to learn regardless of your choice, like how to interpret a data sheet, which is probably the steeper part of the curve. PBP is available in the UK from Crownhill
    Do not buy from an Unauthorized seller (I. E. Ebay ) as you will not be able to upgrade product.
    Code:
    DEFINE OSC 4
    GPIO = 0 ' set all outputs low
    TRISIO = %00000001 'Set GPIO.0 to input
    cmcon = 7 'Disable analog comparators
    ANSEL = 0 'disable analog select so ports work as digital i/o
    
    
    main:
    if GPIO.0 = 1 then GPIO.1 = 1 'turn it on
    pause 500
    gpio.1 = 0  'turn it off
    goto main
    
    end
    Here go for a test drive:
    http://melabs.com/pbpdemo.htm
    Last edited by Archangel; - 16th February 2010 at 07:59.
    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.

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


    Did you find this post helpful? Yes | No

    Default Thank you..............

    First off, many thanks for the replies Bob & Joe, very much appreciated I can assure you.

    So programming these devices in 'C' and Assembler is out and using PIC-BASIC seems the way to go right?

    A few more questions then if I may.

    1/ Can I still use my PICkit1 Flash Starter kit to load / run and test my programs even using PIC-BASIC (I'd hate to think I'd bought the kit for nothing). Or do I have to buy another evaluation board from Melabs as well as the program / compiler?

    2/ Just to make sure here, PIC-BASIC isn't included in my Microchip PICkit is it?

    3/ Will the PICBASIC PRO™ Compiler Demo from Melabs allow me to run and create a HEX code for the program that Joe posted for me? And can I then load the HEX code into my PICkit Starter Kit and into a 12F675 chip?

    I hope all my questions make sense and thanks for your time everyone.

    LEDave

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LEDave View Post
    So programming these devices in 'C' and Assembler is out and using PIC-BASIC seems the way to go right?
    Most of us here think PBP is the way to go Mix a little ASM in now and then and you will be able to do just about anything you can think of.
    1/ Can I still use my PICkit1 Flash Starter kit to load / run and test my programs even using PIC-BASIC (I'd hate to think I'd bought the kit for nothing). Or do I have to buy another evaluation board from Melabs as well as the program / compiler?
    All Pic Basic Pro is for is to make a HEX file. You will not need to buy another programmer until you out grow the PICkit1. Then get the PICkit2.
    2/ Just to make sure here, PIC-BASIC isn't included in my Microchip PICkit is it?
    No, it is not. All the PICkit is for is to take a HEX file and place it on the chip.
    3/ Will the PICBASIC PRO™ Compiler Demo from Melabs allow me to run and create a HEX code for the program that Joe posted for me? And can I then load the HEX code into my PICkit Starter Kit and into a 12F675 chip?
    Yes. I still use my PICkit1 now and then.
    Dave
    Always wear safety glasses while programming.

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

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

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

  9. #9
    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 17:53.

  10. #10


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LEDave View Post
    Hi everyone. Oh boy do I need some help here!

    I've just purchased a PICkit1 Flash Starter Kit. I've loaded the MPLAB IDE software and the PICkit1 Classic program and been able to load and re-load the demo hex code.

    So, time for me to program the 12F675 to turn a single LED on, oh deary me.At this point several questions arise.

    1/ I notice that the PICKit demo program has two program files, one .ASM the other a 'C' program and also the Holy grail here an HEX output file. So question:

    What program language do I start to learn Assembler code or C programming?

    2/ I'd like for starters to write a program whereby I put 5v on input pin 4 and that makes an output pin 7 go +5v and lights an LED,no more complicated than that.

    Can anyone point me in the right direction here?

    All help really appreciated.

    LEDave
    I think there is a big problem in your MPLAB IDE software . Try to look for an IT expert. He can surely do it.

  11. #11
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tiresmokindad View Post
    I think there is a big problem in your MPLAB IDE software . Try to look for an IT expert. He can surely do it.
    Are you sure you are just smoking tires? Have you read past post 1?

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


    Did you find this post helpful? Yes | No

    Default

    Are you sure you are just smoking tires? Have you read past post 1?
    Lol.......

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


    Did you find this post helpful? Yes | No

    Default

    A couple of the best pictures from last night.

    The 'device' is still working well.

    I can't wait for the IF_Led array to arrive.

    Dave
    Attached Images Attached Images   

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


    Did you find this post helpful? Yes | No

    Default

    Those pictures are going to be hard to beat.

    It almost looks like the badger is posing for you... Maybe it has figured out what you are up to.
    Smile for the camera, free food. That has never worked for me...
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 1

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