| 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) 205 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 205 Page - Microchip Technology |
|
205 / 439 page ![]() Important: The Timer postscaler (see the “Timer2 Interrupt” section) is not used in the determination of the PWM frequency. 22.4.4 PWM Duty Cycle The PWM duty cycle is specified by writing a 10-bit value to the CCPRx register. The alignment of the 10-bit value is determined by the FMT bit (see Figure 22-5). The CCPRx register can be written to at any time. However, the duty cycle value is not latched into the 10-bit buffer until after a match between T2PR and T2TMR. The equations below are used to calculate the PWM pulse width and the PWM duty cycle ratio. Figure 22-5. PWM 10-Bit Alignment 7 6 5 4 3 2 1 0 CCP RxH 7 6 5 4 3 2 1 0 CCP RxL 7 6 5 4 3 2 1 0 CCP RxH 7 6 5 4 3 2 1 0 CCP RxL 9 8 7 6 5 4 3 2 10-bit Duty Cycle 1 0 FMT = 0 FMT = 1 Equation 22-2. Pulse Width PulseWidtℎ= CCPRxH:CCPRxLregistervalue •TOSC• TMR2PrescaleValue Equation 22-3. Duty Cycle DutyCycleRatio= CCPRxH:CCPRxLregistervalue 4T2PR+1 The CCPRx register is used to double buffer the PWM duty cycle. This double buffering is essential for glitchless PWM operation. The 8-bit timer T2TMR register is concatenated with either the 2-bit internal system clock (FOSC), or two bits of the prescaler, to create the 10-bit time base. The system clock is used if the Timer2 prescaler is set to 1:1. When the 10-bit time base matches the CCPRx register, then the CCPx pin is cleared (see Figure 22-4). 22.4.5 PWM Resolution The resolution determines the number of available duty cycles for a given period. For example, a 10-bit resolution will result in 1024 discrete duty cycles, whereas an 8-bit resolution will result in 256 discrete duty cycles. The maximum PWM resolution is 10 bits when T2PR is 0xFF. The resolution is a function of the T2PR register value, as shown below. Equation 22-4. PWM Resolution Resolution=log4T2PR+1 log2 bits Important: If the pulse-width value is greater than the period, the assigned PWM pin(s) will remain unchanged. PIC16F15213/14/23/24/43/44 CCP - Capture/Compare/PWM Module © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 205 |
|
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 |