Hello Oliver,
Indeed, PIC18F27J13 could be a candidate. I overlooked this one too quickly (I already ranted about the parametric search tool on the µchip site :-{ )
I'll check for the other characteristics.
No internal OPAMP and internal VREF are a bit annoying, but if it's the only missing parts, it's ok.
Anyway, what about a PIC that would be programmed as a I²C generator with several independant channels, and I²C slave.
He would have nothing else to do than generating the signals.
Consider one channel:
- A register contains the value of its duty cycle (from 0 to 255)
- In the main loop, a 8-bit counter is incremented.
- At each increment, its value is compared to the duty cycle register, and if needed, the corresponding output is toggled.
You could generate as many PWM signals as there are IOs available.
The I²C-slave interface would be handled by the MSSP module with interrupts (yes, this could cause glitches in the PWM signals if the time needed to process the I²C processes is greater than the time it takes to increment the PWM counter by one, but if it is only to dim some LED's, I think I could live with it)
The frequency could be adjusted by changing the oscillator frequency and/or adding delays in the main loop when the main counter is incremented
Just for the sake of it, I think I will give it a try.....
Hoping I am not overlooking a major impediment
Thanks for your suggestion, Oliver (or Kiste ?)