| 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) 214 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 214 Page - Microchip Technology |
|
214 / 439 page ![]() • The PWM output is active (Exception: When the PWM duty cycle = 0%, the PWM output will remain inactive) • The PWMxDCH and PWMxDCL register values are latched into the buffers Important: The Timer2 postscaler has no effect on the PWM operation. 23.4 PWM Duty Cycle The PWM duty cycle is specified by writing a 10-bit value to the PWMxDCH and PWMxDCL register pair. The PWMxDCH register contains the eight MSbs and the two LSbs, PWMxDCL[7:6]. The PWMxDCH and PWMxDCL registers can be written to at any time. The equations below are used to calculate the PWM pulse width and the PWM duty cycle ratio. Equation 23-2. Pulse Width PulseWidtℎ= PWMxDCH:PWMxDCL7:6 •Tosc• TMR2PrescaleValue Note: TOSC = 1/FOSC Equation 23-3. Duty Cycle Ratio DutyCycleRatio= PWMxDCH:PWMxDCL7:6 4T2PR+1 The 8-bit timer T2TMR register is concatenated with the two Least Significant bits of 1/FOSC, adjusted by the Timer2 prescaler to create the 10-bit time base. The system clock is used if the Timer2 prescaler is set to 1:1. 23.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 255. The resolution is a function of the T2PR register value as shown below. Equation 23-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. Table 23-1. Example PWM Frequencies and Resolutions (FOSC = 20 MHz) PWM Frequency 0.31 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz Timer Prescale 64 4 1 1 1 1 T2PR Value 0xFF 0xFF 0xFF 0x3F 0x1F 0x17 Maximum Resolution (bits) 10 10 10 8 7 6.6 PIC16F15213/14/23/24/43/44 PWM - Pulse-Width Modulation © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 214 |
|
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 |