Re: The FM Tube Modulator Jimi Loved
Posted: Mon Feb 15, 2016 9:34 am
Yeah its cool (h)
Actually there is 14 digital I/O so we could do 14 PWM output without the timers.
Problem is its alot of mathametical thinking and coding + loss of frequency and phase accuracy/jitter. (theres a good reason to using timers)
There is 6 pwm output and 3 timer, so the PWM output are paired for 2 PWM output per timers.
Like i said above i have to use the 16 bits timer1 for the timer interrupt(that make for very good frequency accuracy) so we are left with 4 PWM output.
Good news is that there is other atmega chip like the 2560 with 5-6 timers and 15 PWM output, that is fucking great .
With this one we will just need to duplicate the 3 analogwrite lines for 3 extra PWM output.
(just copy and paste).
The main problem is we use a 8 bit 16Mhz processor, 6 channel audio signal processing(depth, offset, frequency modulation) thats ressource heavy on this little thing(its far from a 32-bit ARM cortex running quadcore 1ghz lol). That the only limit. The more channel and resolution and signal processing we do, the maximum operating frequency decrease(the slow it gets).
Also i did another simulation with a better simulator and i can get up to 40hz(instead of 15)? So maby in real world we can actually do 20hz easily with 6 output .
Actually there is 14 digital I/O so we could do 14 PWM output without the timers.
Problem is its alot of mathametical thinking and coding + loss of frequency and phase accuracy/jitter. (theres a good reason to using timers)
There is 6 pwm output and 3 timer, so the PWM output are paired for 2 PWM output per timers.
Like i said above i have to use the 16 bits timer1 for the timer interrupt(that make for very good frequency accuracy) so we are left with 4 PWM output.
Good news is that there is other atmega chip like the 2560 with 5-6 timers and 15 PWM output, that is fucking great .
With this one we will just need to duplicate the 3 analogwrite lines for 3 extra PWM output.
(just copy and paste).
The main problem is we use a 8 bit 16Mhz processor, 6 channel audio signal processing(depth, offset, frequency modulation) thats ressource heavy on this little thing(its far from a 32-bit ARM cortex running quadcore 1ghz lol). That the only limit. The more channel and resolution and signal processing we do, the maximum operating frequency decrease(the slow it gets).
Also i did another simulation with a better simulator and i can get up to 40hz(instead of 15)? So maby in real world we can actually do 20hz easily with 6 output .