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

    Is there a set of code instructions for THE PBP demo version?

    I'm trying to get an understanding of GPIO and the register TRISIO. If you set a TRISIO bit low you make the corresponding GPIO pin an output (I think) Except GP3 which is always an INPUT.

    I've got a very blurred picture of how this all fits together, one day the fog will lift.... I hope.

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    http://www.melabs.com/resources/index.htm#Manuals
    http://melabs.com/products/pbpis.htm
    I'm trying to get an understanding of GPIO and the register TRISIO. If you set a TRISIO bit low you make the corresponding GPIO pin an output (I think) Except GP3 which is always an INPUT.
    Now I see a mess up in my last code
    Code:
        GPIO = %11001111
        GPIO = %00010000
    should be
    Code:
        TRISIO = %11001111
        GPIO = %00010000
    I think.....
    Sorry about that.
    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

    Hi mackrackit

    Yes I ran that code and it compiled with no errors.

    I loaded the HEX code (confirmed write successful) but the LED's didn't light?

    I reloaded you earlier HEX file and all three LED's jogging along nicely.

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


    Did you find this post helpful? Yes | No

    Default

    Yup, different code for different PICs.
    When do your 12F683s arrive?
    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

    I changed the code from GPIO to TRISIO

    RE-compiled, re-loaded the HEX code file and away she ran.....!

    Time for me to pause here mackrackit. I need to break your program down and figure out exactly what's going on. That way I can move on.

    I'll try and figure it out and if you'd be so kind you can tell me how I got on.

    It's the only way for me to learn.

    As ever thanks for your help.

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    I'll try and figure it out and if you'd be so kind you can tell me how I got on.

    I like it when someone wants to learn.
    I will be here....
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    The 12F683's arrived today! I didn't order them until late last night, talk about service, I love the internet....:-)

    I changed the 12F675 PIC over to a 12F683 and it ran your program a treat.

    I've got a lot to learn still, a huge amount but really enjoying it.

    My first project (I'm getting ahead of myself here I know) but my first project will be to make a 12F683 OUTPUT binary coded decimal four bit words and drive a seven segment display. I figure with the 12F683 having six outputs this is a viable project.

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    "I like it when someone wants to learn.
    I will be here...."

    Thanks for that mackrackit I appreciate it. I hope I don't drive you insane during my learning curve.....!

    I'm off to bed now to dream of TRISO's.......

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    My first project (I'm getting ahead of myself here I know) but my first project will be to make a 12F683 OUTPUT binary coded decimal four bit words and drive a seven segment display. I figure with the 12F683 having six outputs this is a viable project.
    Well....
    I hate to tell you this but I think there is something wrong with your counting...
    Or mine
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Hi LEDDave,
    16F628A might be easier to drive 7 segment as no driver translator chip required ( because it has enough ports ). Your biggest challange will be due to 31 lines of code limitation, in the Demo program.
    I do not know if assembly code is counted in that limitation.
    If you have that problem I am sure Mackrackit and I would compile a few programs for you, enough so you believe this compiler is worth it's price.
    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.

  11. #11
    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 Joe S. View Post
    Hi LEDDave,
    16F628A might be easier to drive 7 segment as no driver translator chip required ( because it has enough ports ). Your biggest challange will be due to 31 lines of code limitation, in the Demo program.
    I do not know if assembly code is counted in that limitation.
    If you have that problem I am sure Mackrackit and I would compile a few programs for you, enough so you believe this compiler is worth it's price.
    Yup, I will help.
    Problem is, I can not find a "large" PIC that will work with the demo and the PICkit1. (14 pins)
    So LEDDave may have to get a 16F676 and one of us build the hex for that...
    Dave
    Always wear safety glasses while programming.

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