在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

電子發燒友App

硬聲App

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示
電子發燒友網>電子資料下載>電源技術>PIC18F4550_PWM_FUNCTIONS

PIC18F4550_PWM_FUNCTIONS

2014-06-12 | pdf | 5KB | 次下載 | 3積分

資料介紹

PWM FUNCTIONS 
Original by F.Zia, rewritten for the PIC18F4550 by M.F.v.Lieshout, March 2006 
Information sources: 
The information in this document is obtained from the following Microchip manuals: 
- PIC18F4550 Datasheet 
- PICmicro® 18C MCU Family Reference Manual 
- MPLAB C18 C Compiler Libraries 
Function Prototypes: 
For a detailed description of these functions, please see: 
Section 2.7 Pulse-Width Modulation Functions, in MPLAB C18 C Compiler Libraries manual. 
 
The PIC18F4550 has 2 PWM channels available, so x is 1 or 2 in this case. 
 
#include  
void OpenPWMx ( char PR2 ); // Configure PWM channel x. 
void SetDCPWMx ( unsigned int dutycycle ); // Write a new duty cycle value to 
PWM channel x. 
void ClosePWMx ( void ); // Disable PWM channel x. 
Notes: 
1. PR2 can be any value from 0x00 to 0xff. This value determines the PWM frequency by 
using the following formula: 
PWM period =[(PR2) + 1] x 4 x TOSC x TMR2 prescaler 
2. The value of dutycycle can be any 10-bit number. Only the lower 10-bits of dutycycle are 
written into the duty cycle registers. The duty cycle determines the high time of the PWM 
waveform. 
3. PWM uses TIMER2 for time base. In addition to opening the PWM, TIMER2 must also be 
opened with an OpenTimer2(...) statement before the PWM will operate. See the other 
manual for the timer functions. 
4. TIMER2 postscaler is not used in the determination of the PWM frequency. TIMER2 
postscaler could be used to generate TMR2 interrupts at a different frequency than the PWM 
output. 
5. On the PIC18F4550, also an enhanced PWM can be used. The enhanced PWM can be 
used for motor driving: half-bridge and full-bridge (forward and reverse). See the MPLAB C18 
C Compiler Libraries manual for the functions. 
下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1TC358743XBG評估板參考手冊
  2. 1.36 MB  |  330次下載  |  免費
  3. 2開關電源基礎知識
  4. 5.73 MB  |  6次下載  |  免費
  5. 3100W短波放大電路圖
  6. 0.05 MB  |  4次下載  |  3 積分
  7. 4嵌入式linux-聊天程序設計
  8. 0.60 MB  |  3次下載  |  免費
  9. 5基于FPGA的光纖通信系統的設計與實現
  10. 0.61 MB  |  2次下載  |  免費
  11. 651單片機窗簾控制器仿真程序
  12. 1.93 MB  |  2次下載  |  免費
  13. 751單片機大棚環境控制器仿真程序
  14. 1.10 MB  |  2次下載  |  免費
  15. 8基于51單片機的RGB調色燈程序仿真
  16. 0.86 MB  |  2次下載  |  免費

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234315次下載  |  免費
  3. 2555集成電路應用800例(新編版)
  4. 0.00 MB  |  33564次下載  |  免費
  5. 3接口電路圖大全
  6. 未知  |  30323次下載  |  免費
  7. 4開關電源設計實例指南
  8. 未知  |  21549次下載  |  免費
  9. 5電氣工程師手冊免費下載(新編第二版pdf電子書)
  10. 0.00 MB  |  15349次下載  |  免費
  11. 6數字電路基礎pdf(下載)
  12. 未知  |  13750次下載  |  免費
  13. 7電子制作實例集錦 下載
  14. 未知  |  8113次下載  |  免費
  15. 8《LED驅動電路設計》 溫德爾著
  16. 0.00 MB  |  6653次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935054次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉中文版)
  4. 78.1 MB  |  537796次下載  |  免費
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420026次下載  |  免費
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234315次下載  |  免費
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費
  11. 6電路仿真軟件multisim 10.0免費下載
  12. 340992  |  191185次下載  |  免費
  13. 7十天學會AVR單片機與C語言視頻教程 下載
  14. 158M  |  183279次下載  |  免費
  15. 8proe5.0野火版下載(中文版免費下載)
  16. 未知  |  138040次下載  |  免費
主站蜘蛛池模板: 一级不卡毛片 | www.午夜视频 | 久久精品国产精品亚洲红杏 | 国产卡1卡2卡三卡网站免费 | 91av免费观看| 色妇视频| 午夜影院404| 亚洲日本一区二区三区 | 五月婷婷爱| 在线观看日本一区 | 日日日天天射天天干视频 | 亚洲毛片基地4455ww | 永久免费在线观看视频 | 一级毛片免费不卡直观看 | 黄到让你下面湿的视频 | 在线黄视频 | 亚洲区 | 日韩免费视频一区 | 丁香婷婷久久大综合 | 天天干影视 | 亚洲你懂得 | 国产乱辈通伦影片在线播放亚洲 | yy8090韩国日本三理论免费 | 伊人久久成人爱综合网 | 国产黄色在线网站 | 国产成人精品亚洲日本在线观看 | 国产黄页 | 四虎一区二区三区精品 | 色多多在线观看 | 狠狠色噜噜狠狠狠狠97影音先锋 | 欧美成人eee在线 | 久久99热不卡精品免费观看 | 成人亚洲综合 | 狠狠色噜噜狠狠狠狠91 | 在线观看886影院成人影院 | 狠狠操综合| www.干| 色噜噜狠狠色综合欧洲selulu | 大色综合色综合网站 | 高清xxx | 免费观看黄a一级视频 |