New project help rapidfire on 12f683


Results 1 to 28 of 28

Threaded View

  1. #9
    Join Date
    Dec 2008
    Posts
    24


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Looks like you are trying to create a 3 round burst fire simulation, correct? If so you must also create a Virtual Disconnector too, a subroutine loop to stay in while waiting for the trigger to be released. Put it's call in the 3 round subroutine. Something like . . .
    Code:
    main:
    If Trigger then fire
    goto main
    
    fire: 
    . . . code to flash led 3 times
    goto Disconnect
    
    Disconnect:
    if trigger = 1 then
    goto  disconnect
    else
    goto main
    endif


    thank you very much joe I see what your saying WIth the triggers But for now that code up there was orginally for no triggers just external buttons that send the rapid low pulses. the loop one is rapidfire auto and loop 2 is burst. What i want to know if i attach a switch to ground than gpio.3 and when the switch is hit once it will go into loop1 or mode 1 which is auto rapidfire and if the swithch is hit one more time it goes in loop2 or mode 2 for the burst so its basically a 2 mode rapidfire and agin the 2 mode is external after i get it working it will move on to the orignal triggers. thanks joe

    EDIT: On the code you wrote can I add a option to turn on and of the rapid fire I mean I know I can jsut do this for example
    if buttoncheak = 1 than
    sleep 6
    else
    goto main something like thta but where would i add it.
    Last edited by thm ov3rkill; - 22nd December 2008 at 02:42.

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