I am sorry for my wrong source code. what I meant is by changing decimal value you can get what frequency you need starting .1 to .256. If maximum pulse is not good enough use higher resonator. I did this with my generator works ok. But if still I am wrong just simply trash this code. loop bsf porta,ra0 call delay bcf porta,ra0 goto loop delay movlw .100 ; DECIMAL VALUE IS YOUR FREQUENCY movwf count d decfsz count goto d retlw oo Andre