Please help support the site by donating at the link below.https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8ZRU34U47BESW
list p=16f88 ; list directive to define processor #include <p16F88.inc> ; processor specific variable definitions
if button = 1 then ' wait till button is pressed goto StartRapidFire ' to start the rapid fire else goto Main
TRISIO = %00100000 ' GPIO.5 input (IR scanner button on 360)
delay_ms = 500 'wait till pic stableinput button if button = 1 then ' wait till button is pressed goto StartRapidFire ' to start the rapid fire else ' 0 means no connection to pin right??? goto CheckButton
sorry for the wait:I ordered 6 chips, 3 samples or the 12f683 and 12f675 from microchip. I am not using any resistors, just the chip, wires and the "sync" button of the xbox 360 controller. Im going to assume this:when the sync button is pressed, it creates a current (signal). and when this happens, this tells the chip to send output signals from 2 other pins (not power or ground pins) to the left and right trigger POTs. This will make the controller fire...rapid fire. But...the thing is, I don't know how to code something that says:if 'sync button' is pressed, then 'start rapid fire' (a subroutine)inside the subroutine there is another if command:if button is pressed, then goto start/main/check button status.Once I get that and how to send pulses after the button is pressed then I will be done. Im sorry if this post doesn't include a lot of info, but...I hope you get the point.Plz help out...btw...what compiler does kingmike use...does he code in basic, c, or asm?