Skip to content

rcv911/Fast-PWM-controlling-by-ADC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Fast PWM controlling by ADC on ATmega16

Hardware fast PWM + ADC in ATmega16. The same task but now we should use ADC for change duty cycle.

I recommend use potentiometer/variable resistor with led for check.

Motivation

Basic structure of fast PWM mode controlling by ADC in ATmega16 for begginers. Don't forget to use datasheet!

Installation

  1. You can use another MCUs. All you need is datasheet. Don't forget change pins!
  2. Make project in AVR Studio choosing 8-bit MCU ATmega16.
  3. Copy code from pwm_adc.c into your main.c file.
  4. Build project.

License

Free

Releases

No releases published

Packages

No packages published

Languages