SWETA
Newbie level 6
i wud b glad if anyboby cud help me in providin a solution 2 dis querry of mine..
m using ATmega 8L for making a function generator..dere m usin PWM technique for generatin sin(4m luk up table),square and a ramp wave..i hv managed to develop all d 3,bt m facing problem in generatin waves of amplitude and frequency as per user's requirement..
what changes can i do to the timer's and control register's value,if requirin variable frequency and amplitude?
or i just need to use switch cases instead making changes as mentioned above?
m using ATmega 8L for making a function generator..dere m usin PWM technique for generatin sin(4m luk up table),square and a ramp wave..i hv managed to develop all d 3,bt m facing problem in generatin waves of amplitude and frequency as per user's requirement..
what changes can i do to the timer's and control register's value,if requirin variable frequency and amplitude?
or i just need to use switch cases instead making changes as mentioned above?