Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Embeded-SCM Develop SCM

Timer1_pwm

  • Category : SCM
  • Tags :
  • Update : 2012-11-26
  • Size : 127kb
  • Downloaded :0次
  • Author :kevin******
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
利用AVR单片机的定时器1分别从PB1(OC1A)和PB2(OC1B)两引脚输出PWM波形。为了演示PWM的功率调节功能,我们在PB1和PB2引脚分别接了发光二极管,用10K电位器模块从PC0引脚接入0- 5V电压。程序中,主循环内不断采集ADC端口0(PC0引脚)的电压值,根据变化改变OCR1A和OCR1B两个输出比较寄存器的值。PB1和PB2引脚上的PWM波形也随之发生改变,从而调节了送给发光二极管的电压,控制发光二极管的明暗。实验时,调节电位器的电阻值改变电压,会看到两个发光二极管明暗变化,但变化的方向相反,即一个越来越亮,一个越来越暗,反过来一样。这是因为OC1A和OC1B两个引脚输出的波形不一样,一个是升序计数,一个降序计数,连个波形是相互取反的
Packet file list
(Preview for download)
Timer1_pwm.docx
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.