Henrik,

Without hardware PWM I don't really need to go any further with this. It is working good enough for what I need it for and the tone range is good. I knew this would be a very small program, but I was hoping to have the capability of a constant tone for the duration of the trigger, but I can live with short sound bursts. I purchased 10F322 chips first, but PBP didn't support them and I couldn't figure out MPLAB-X.

I will be using two of these chips set to different tones so I can hear either or both when they trigger. Maybe at some future time I will figure out MPLAB and be able to program the 10F322's (Hardware PWM with adjustable Duty for LEDs or adjustable Freq for sound). I did figure I could just use ADRES directly, but I don't need to do anything else with these anyway.

Thanks for all your help.
Jim


Quote Originally Posted by HenrikOlsson View Post
That's correct, no CCP module in this one (I didn't check that previosuly). And there's no interrupts either.

What sort of frequencies are you talking about?

BTW, in your code, there's no real reason to waste one of the PICs 23 bytes of RAM, out of which PBP uses most, to copy ADRES to Tone - just use ADRES directly.

/Henrik.