| 전자부품 데이터시트 검색엔진 |
|
MCP39F511 데이터시트(PDF) 44 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP39F511 데이터시트(HTML) 44 Page - Microchip Technology |
|
44 / 62 page ![]() MCP39F511 DS20005393B-page 44 2015 Microchip Technology Inc. 8.2 PWM Period The PWM period is specified by writing the PWM Period bits of the PWM Period register. The PWM period can be calculated using the following formula: Equation 8-1: The PWM Period is defined as 1/[PWM Frequency]. When PTIMER is equal to PWM Period, the following two events occur on the next increment cycle: • the PWM timer is cleared • the PWM pin is set. Exception: If the PWM Duty Cycle equals 0%, the PWM pin will not be set. 8.3 PWM Duty Cycle The PWM duty cycle is specified by writing to the PWM Duty-Cycle register. Up to 10-bit resolution is available. The PWM Duty-Cycle register contains the eight MSbs and the two LSbs. The following equations are used to calculate the PWM duty cycle as a percentage or as time: EQUATION 8-1: PWM Duty Cycle can be written to at any time, but the duty-cycle value is not latched until after a period is complete. The PWM registers and a two-bit internal latch are used to double-buffer the PWM duty cycle. This double-buffering is essential for glitch-less PWM operation. The maximum PWM resolution (bits) for a given PWM frequency is shown in Equation 8-2. EQUATION 8-2: MAXIMUM PWM RESOLUTION BASED ON A FUNCTION OF PWM FREQUENCY PWM Period = [(PWM_Frequency) + 1] × 2 × PTIMER × (Prescale Value) PWM Duty Cycle (%) = (PWM_DUTY CYCLE>)/(4 × PWM_FREQUENCY) PWM Duty Cycle (time in s) = (PWM_DUTY_CYCLE) × PWM_TIMER_PERIOD/2 × (Prescale Value) Note: If the PWM duty cycle value is longer than the PWM period, the PWM pin will not be cleared. 2F TIME R F PWM -------------------------- log 2 log ----------------------------------------bits = PWM Resolution (max) |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |