| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16F15213T-I/ST bảng dữ liệu(PDF) 213 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 213 Page - Microchip Technology |
|
213 / 439 page ![]() Figure 23-2. PWM Output Filename: PWM Output.vsdx Title: Last Edit: 2/3/2020 First Used: Notes: Rev. PWM Out put 2/3/2020 Pulse Width T2TMR = T2PR T2TMR reloaded with 0 T2TMR = Duty Cycle = PWMxDCH[7:0]:PWMxDCL[7:6] Period T2TMR = T2PR T2TMR reloaded with 0 For a step-by-step procedure on how to set up this module for PWM operation, refer to 23.9. Setup for PWM Operation Using PWMx Output Pins. 23.1 Fundamental Operation The PWM module produces a 10-bit resolution output. The timer selection for PWMx is TMR2. T2TMR and T2PR set the period of the PWM. The PWMxDCL and PWMxDCH registers configure the duty cycle. The period is common to all PWM modules, whereas the duty cycle is independently controlled. Important: The Timer2 postscaler is not used in the determination of the PWM frequency. The postscaler might be used to have a servo update rate at a different frequency than the PWM output. All PWM outputs associated with Timer2 are set when T2TMR is cleared. Each PWMx is cleared when T2TMR is equal to the value specified in the corresponding PWMxDCH (8 MSb) and PWMxDCL[7:6] (2 LSb) registers. When the value is greater than or equal to T2PR, the PWM output is never cleared (100% duty cycle). Important: The PWMxDCH and PWMxDCL registers are double-buffered. The buffers are updated when T2TMR matches T2PR. Care has to be taken to update both registers before the timer match occurs. 23.2 PWM Output Polarity The output polarity is inverted by setting the POL bit. 23.3 PWM Period The PWM period is specified by the T2PR register. The PWM period can be calculated using the formula of Equation 23-1. It is required to have FOSC/4 as the selected clock input to the timer for correct PWM operation. Equation 23-1. PWM Period PWMPeriod= T2PR +1 •4•Tosc• TMR2PrescaleValue Note: TOSC = 1/FOSC When T2TMR is equal to T2PR, the following three events occur on the next increment cycle: • T2TMR is cleared PIC16F15213/14/23/24/43/44 PWM - Pulse-Width Modulation © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 213 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |