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
It always surprises me that all of the rapid fire codes I have viewed the code of that they are all written in assembly, why doesn't anyone write them in C utilizing the timers or pwm control (forgot pwm can only drop to 62.125hz so that would be too fast for some and no burst). I would think that the code could be condensed and easier to write, maybe when I have some free time I will attempt to create a basic rf using C. I guess I just dun like writing assembly so I don't see the advantage of it so my curiosity may be uninformed.
i know a bit about assembly, the commands and what they do but putting it together is what i have trouble with.this is what i came up with after an hour last night, sorry if its hard to follow. list p=12F683 #include <p12F683.inc> errorlevel -302 __CONFIG _FCMEN_OFF & _IESO_OFF & _CP_OFF & _CPD_OFF & _BOD_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTOSCIO ;***Variables***STATUS equ 03hGPIO equ 05hTRISIO equ 85h;*********************** goto StartStart bsf STATUS,5 movlw b'100001' movwf TRISIO bcf STATUS,5Main btfss GPIO,5 goto Main goto LEDLED movlw 01h movwf GPIO,4 decfsz 2Bh,f goto StateState btfss GPIO,0 goto Continue goto BurstContinue btfss GPIO,5 goto State goto MainBurst bsf STATUS,5 movlw b'100000' movwf TRISIO bcf STATUS,5 movlw 01h movwf GPIO,0 decfsz 2Bh,f movlw 00h movwf GPIO,0 decfsz 2Bh,f movlw 01h movwf GPIO,0 decfsz 2Bh,f movlw 00h movwf GPIO,0 decfsz 2Bh,f movlw 01h movwf GPIO,0 goto State end