hey guys i am new to pic basic pro and or also to these forums I been loving it and i made a few simple led flashes on a 12f683 chip. I am a gamer to I play xbox 360. and There is this new thing called rapidfire it sends lots of ground pulses to the trigger which this enables it to fire lmuch faster than a humn at 15-33 times a second i have done this But What i needed help was on How to use the acuall triggers for rapidfire i was using a sperete switch for the rapidfire. My freind told me that each time you press a trigger once, it sends a analog pulse or somthing of that bature and when the pic Sees that analog pulse coming it sends the Rapidfire ground pulses actvating the rapidfire i needed help on that mabye some tutorials guys also...
_______________________________
my freind also said if any one knows asm to mbye show me ow to do this in pic basic.
Code:clrf GPIO clrf FLAGS ;clear outputs and code status register movlw 0x07 movwf CMCON0 ;comparators off bsf STATUS, RP0 ;bank 1 movlw 0x0F ;start with 0-3 inputs (ADC read) movwf TRISIO ;pin 0 & 1 & 5 out, all other inputs movlw 0x51 ;Fosc/16, pin 0 analog movwf ANSEL ;Right trigger is analog input movlw 0x04 movwf WPU ;enable week pullups bcf OPTION_REG, 7 ;enable all week pullups bcf STATUS, RP0 ;bank 0 movlw 0x01 ;Left just, Vdd, channel 0 movwf ADCON0 ;module on. movlw 0x10




Bookmarks