hello, sorry if this has been covered before, but the search function fails me. I would like to do mulitple pwm oscillators off of an uno. The oscillators need to be locked in frequency, but able to have different "start points". Therefore, they would be out of phase with each other. The idea is to make something like a CMOS melody generator:
I figure if I have full flexibility of the oscillators, I can combine as many pwm channels as I want to make complex digital waveforms, sequences, or even just clock or trigger signals for other devices. Therefore, I need frequency control, pulse width control, and a phase (or start point delay) function.
I'm unsure whether I would attenuate each channel separately using a potentiometer or a VCA in the case of the waveform/melody generator. Yet, if it was able to be done in the microcontroller and give an analog output, I feel that would be superior.
Can anyone help point me in the right direction? so far, the pwm articles i've read say little about creating out of phase pwm channels. I feel like the tlc5940 is a good start since it'll give a max of 16 channels. Then I could make a 16 step analog sequencer with the same device! I'm not sure if the best approach is a ton of conditional statements or ________?
first microcontroller project if it isn't obvious