New project help rapidfire on 12f683


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    24


    Did you find this post helpful? Yes | No

    Default

    hey joe what mode should i use the turn the rapidfire off i can make it go to sleep. the most it can sleep for is 19 hours but i hihgly doubt anyone will play for that long also im a bit confused on that code


    what will i write to cheak for the button switch cause if i put it as main it will jsut restart thansk joe
    Last edited by thm ov3rkill; - 23rd December 2008 at 01:59.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by thm ov3rkill View Post
    hey joe what mode should i use the turn the rapidfire off i can make it go to sleep. the most it can sleep for is 19 hours but i hihgly doubt anyone will play for that long also im a bit confused on that code

    what will i write to cheak for the button switch cause if i put it as main it will jsut restart thansk joe
    First off, why not trying to type a bit slower or something, maybe add something like punctuation. Makes it just that much easier for the rest of us to read.
    Second...You might want to try and write out exactly what you want your 'buttons' to do, flowchart the whole thing.
    I'm reading through this and your other threads over at Microchip, and your ideas are half-structured at best. You seem to be hoping that somebody will just come up with the magic code for you and it'll all be done.
    Joe's code, a couple of posts above, is a good base for you to add onto. I think the end result that you desire is just as easy as what Joe has written up. Why not just try a few things here and there? Then, when things don't work as expected, post the code YOU wrote and the rest of us can help YOU figure out what YOU did wrong, rather than the other way around. As has been said here before, this isn't a 'drive-thru get your code' forum, although a few would be more than happy to write the code for you, I don't know of any.
    After that, you might want to hit the books a little bit and do some reading on the SLEEP command for putting your PIC into SLEEP mode.

  3. #3
    Join Date
    Dec 2008
    Posts
    24


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    First off, why not trying to type a bit slower or something, maybe add something like punctuation. Makes it just that much easier for the rest of us to read.
    Second...You might want to try and write out exactly what you want your 'buttons' to do, flowchart the whole thing.
    I'm reading through this and your other threads over at Microchip, and your ideas are half-structured at best. You seem to be hoping that somebody will just come up with the magic code for you and it'll all be done.
    Joe's code, a couple of posts above, is a good base for you to add onto. I think the end result that you desire is just as easy as what Joe has written up. Why not just try a few things here and there? Then, when things don't work as expected, post the code YOU wrote and the rest of us can help YOU figure out what YOU did wrong, rather than the other way around. As has been said here before, this isn't a 'drive-thru get your code' forum, although a few would be more than happy to write the code for you, I don't know of any.
    After that, you might want to hit the books a little bit and do some reading on the SLEEP command for putting your PIC into SLEEP mode.
    hey ski mask thanks.. Ill keep that in mind I been reading 2 books already so yup.. Ill try to get this code to work one question was if the same pin can read the low coming from the trigger and rapidfire on the same pin..

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


    Did you find this post helpful? Yes | No

    Default

    I thought you were trying to duplicate the the other guys chip, with separate mode and trigger inputs. And in your subroutines you can tell it to do what you want including sleep, then you have to figure out how to reawaken it with . . . an interrupt ? It is why I said at the beginning, buy the other guy's chip and then work on your own too, he put a lot of effort into that including storing the on/off status in eprom. If you are as new as you appear, you are looking @ 2 years to success, a little less if you are young. That said, none of are getting any younger, so post the code you PMed me and let's have at it!
    Last edited by Archangel; - 23rd December 2008 at 05:03.
    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.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    First off, why not trying to type a bit slower or something, maybe add something like punctuation. Makes it just that much easier for the rest of us to read.
    Second...You might want to try and write out exactly what you want your 'buttons' to do, flowchart the whole thing.
    I'm reading through this and your other threads over at Microchip, and your ideas are half-structured at best. You seem to be hoping that somebody will just come up with the magic code for you and it'll all be done.
    What's it going to take skimask?

    People come here for help, and the purpose of this forum is to try to provide that.
    Ridicule and belittling, are NOT part of the program.

    If you have no help to offer, then you have no reason to post.
    <br>
    DT

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    What's it going to take skimask?

    People come here for help, and the purpose of this forum is to try to provide that.
    Ridicule and belittling, are NOT part of the program.

    If you have no help to offer, then you have no reason to post.
    <br>
    I think I've got a pretty good template for him to work from, complete and everything, never thought it was worth anything since I've seen the same type of thing all over the internet.
    BUT, I'VE ALREADY BUILT A COUPLE OF THEM FOR A FRIEND AS A BIRTHDAY PRESENT ABOUT A YEAR AGO! NOT QUITE THE SAME, SINGLE-SHOT, 5 SHOT, CONTINUOUS, OFF, AND...NOT ONLY THAT, BUT EVENTUALLY, ONCE I SAW THAT THE GUY WAS ACTUALLY WORKING TOWARDS LEARNING HOW PBP WORKS, I WOULD HAVE UPLOADED THE WHOLE SHEBANG, THE WHOLE LOT, SCHEMATICs FOR THE NEW AND THE OLD CONTROLLER, PBP SOURCE CODE FOR THE 12F683, HEX FILEs, AND MAYBE, JUST MAYBE, SINCE IT'S THE HOLIDAY SEASON AND ALL, I MIGHT HAVE SENT THE GUY A FINISHED, PROGRAMMED PIC AND A FEW PICTURES OF THE FINISHED PRODUCT.

    But, you know what...(and sorry there 'thm ov3rkill', but you've got DT to thank for this), skip it. Not gonna do it.

    Go ban yourself for awhile! Better yet...Put it to another vote like you did last year.

    But I will give the original poster a suggestion on the one question...
    Ill try to get this code to work one question was if the same pin can read the low coming from the trigger and rapidfire on the same pin..
    With some creative hardware, you might be able to get away with it. You could leave the pin floating, use one switch to pull it low thru a high value resistor, use the other switch to pull it high thru another high value resistor. There's an app note around somewhere that describes how to do that sort of thing.
    Another option is to plug the switches into an A/D input and use a couple of resistors as a voltage divider. One switch pulls the input down to, say 1v, the other switch pulls the input down to 2v, both switches 3v, or something to that effect.
    But since you've got unused pins, easier just to read two pins with one switch each, than read two switches on one pin.

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    No vote required.

    Thank you!
    DT

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sorry bout that!

    Maybe now, Joe can't get something accomplished here.

    I'll help if I can too.
    Might want to start a new thread though.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Maybe now, Joe <font color=red>can't </font color>get something accomplished here.
    Freudian slip, or are you telling me something here ?
    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.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. 12f683 help!!!! L@@K!!!
    By thm ov3rkill in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd December 2008, 22:46
  3. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  4. Help on coding/ selecting PIC chip for project
    By lovemeok in forum General
    Replies: 0
    Last Post: - 27th July 2006, 19:21
  5. A category for Project Ideas
    By Pic_User in forum Forum Requests
    Replies: 2
    Last Post: - 23rd June 2006, 07:29

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