Jinx wrote... >Still no luck with the decay - new s/w and pic of RA3/RA4 results > >http://home.clear.net.nz/pages/joecolquitt/davedong.html > >Do you have a practical example ? > >If nothing else at least I've got another IRQ-based beep routine In this code fragment from the "Dave's ****" page (thank you, by the way...), at location stage2, are you sure you're accessing TRISA and not PORTA? I don't see where you're setting up RP0. loop1 nop ;loop here during "begin" IRQs btfss stage,tone ;jump out if ready for stage2 goto loop1 ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D stage2 movlw b'00001000' ;set RA3 to i/p movwf trisa ;and tone freq on RA4 loop2 nop ;loop here during "tone" IRQs btfss stage,finish ;jump out if ready for stage3 goto loop2 It's six in the morning, and I'm only half through my first cup of mud, so it's entirely possible I may have missed a "bsf status, rp0" somewhere; but I don't see it. Cheers, Dave -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body