Yes, Registers are what I meant. I just ordered a few PIC10F322 & 12F1840 chips (They are very small - 6 & 8 pin). I figure the best way to be sure I get the tones I want at a volume I expect would be to use one of these for each tone. One input pin to trigger, one output for the sound, and either two inputs to select 1 of 4 pre-set tones or one analog input to select a range of tones. the 6-pin SOT package wouldn't take up much board space and the price is right. I still plan on playing around with the CCP module of the 1938, but using a couple of these small chips seems to be the easiest way to go for this project.

I thank you for your help and will let you know the outcome of the testing.

Jim


Quote Originally Posted by HenrikOlsson View Post
Well, not the ports but the registers for the CCP modules(s), yes. Two-three registers per module maby, so four to six lines of code to have both running. The "trick" is to figure out what to write to the registers, the datasheet is key.


No, it's not SPI, more "like" async serial and yes the dutycycle of the fixed frequency output IS the only thing it controls - that's how it dims the LEDs.

It's not really clear what exactly you want to do. In the first post you mention generating two distinct tones but then you're talking about LED dimmers. Can you explain what you're trying to achieve?