Description: source code is an example of adc and pwm program in atmega 8535. This code will make the microcontroller converts each input of the ADC pin and make it into OCR0 value. This OCR0 value will affect the shape of the generated pwm signal. OC0 pin on PORTB will be linked with a LED and will indicate changes in voltage or duty cycle on pin OC0.
specification:
Timer/Counter used = Timer/Counter 0
Input = port a
output = port b
channel ADC = 0
ADC mode = single conversion
PWN Mode = Fast PWM non inverting
To Search:
File list (Check if you may need any files):
adcpwm\adcpwm_!\adcpwm_!.aps
......\........\adcpwm_!.asm
......\........\adcpwm_!.aws
......\........\adcpwm_!.hex
......\........\adcpwm_!.map
......\........\adcpwm_!.obj
......\........\AvrBuild.bat
......\........\labels.tmp
......\adcpwm_!
adcpwm