99精品伊人亚洲|最近国产中文炮友|九草在线视频支援|AV网站大全最新|美女黄片免费观看|国产精品资源视频|精彩无码视频一区|91大神在线后入|伊人终合在线播放|久草综合久久中文

電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>電源技術(shù)>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. 
下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評(píng)論

查看更多

下載排行

本周

  1. 1常用電子元器件集錦
  2. 1.72 MB   |  24476次下載  |  免費(fèi)
  3. 2EMC電路設(shè)計(jì)工程師必備的EMC基礎(chǔ)
  4. 0.42 MB   |  6次下載  |  2 積分
  5. 3低壓降肖特基整流管SR340L數(shù)據(jù)手冊(cè)
  6. 0.78 MB   |  2次下載  |  免費(fèi)
  7. 4CPCI6310型復(fù)合視頻采集板資料
  8. 0.04 MB   |  1次下載  |  免費(fèi)
  9. 5W25X16W25X32\W25X64 數(shù)據(jù)手冊(cè)
  10. 1.02 MB   |  1次下載  |  1 積分
  11. 6LESD3Z5.0C系列 SOD-323塑料封裝ESD保護(hù)二極管規(guī)格書
  12. 1.92 MB   |  次下載  |  免費(fèi)
  13. 7DFN2020-3L塑料封裝ESD保護(hù)二極管SD15VHHU系列規(guī)格書
  14. 1.12 MB   |  次下載  |  免費(fèi)
  15. 8快恢復(fù)二極管FR101 THRU FR107數(shù)據(jù)手冊(cè)
  16. 0.86 MB   |  次下載  |  免費(fèi)

本月

  1. 1常用電子元器件集錦
  2. 1.72 MB   |  24476次下載  |  免費(fèi)
  3. 2三相逆變主電路的原理圖和PCB資料合集免費(fèi)下載
  4. 27.35 MB   |  111次下載  |  1 積分
  5. 3運(yùn)算放大器基本電路中文資料
  6. 1.30 MB   |  16次下載  |  免費(fèi)
  7. 4蘋果iphone 11電路原理圖
  8. 4.98 MB   |  11次下載  |  5 積分
  9. 5常用電子元器件介紹
  10. 3.21 MB   |  8次下載  |  免費(fèi)
  11. 6EMC電路設(shè)計(jì)工程師必備的EMC基礎(chǔ)
  12. 0.42 MB   |  6次下載  |  2 積分
  13. 7QW2893應(yīng)急燈專用檢測(cè)芯片
  14. 590.40 KB  |  4次下載  |  免費(fèi)
  15. 8相關(guān)協(xié)議信號(hào)總結(jié)
  16. 0.94 MB   |  4次下載  |  免費(fèi)

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935130次下載  |  10 積分
  3. 2開(kāi)源硬件-PMP21529.1-4 開(kāi)關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
  4. 1.48MB  |  420064次下載  |  10 積分
  5. 3Altium DXP2002下載入口
  6. 未知  |  233089次下載  |  10 積分
  7. 4電路仿真軟件multisim 10.0免費(fèi)下載
  8. 340992  |  191390次下載  |  10 積分
  9. 5十天學(xué)會(huì)AVR單片機(jī)與C語(yǔ)言視頻教程 下載
  10. 158M  |  183344次下載  |  10 積分
  11. 6labview8.5下載
  12. 未知  |  81591次下載  |  10 積分
  13. 7Keil工具M(jìn)DK-Arm免費(fèi)下載
  14. 0.02 MB  |  73816次下載  |  10 積分
  15. 8LabVIEW 8.6下載
  16. 未知  |  65989次下載  |  10 積分