Electronic Components Datasheet Search
  English  ▼

X  

PIC16 Datasheet(PDF) 267 Page - Microchip Technology

Part # PIC16
Description  20-Pin Flash, 8-Bit Microcontrollers with XLP Technology
PDF  418 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16 Datasheet(HTML) 267 Page - Microchip Technology

Back Button PIC16 Datasheet HTML 263Page - Microchip Technology PIC16 Datasheet HTML 264Page - Microchip Technology PIC16 Datasheet HTML 265Page - Microchip Technology PIC16 Datasheet HTML 266Page - Microchip Technology PIC16 Datasheet HTML 267Page - Microchip Technology PIC16 Datasheet HTML 268Page - Microchip Technology PIC16 Datasheet HTML 269Page - Microchip Technology PIC16 Datasheet HTML 270Page - Microchip Technology PIC16 Datasheet HTML 271Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 267 / 418 page
background image
 2011-2013 Microchip Technology Inc.
DS40001609C-page 267
PIC16(L)F1508/9
23.1.5
PWM RESOLUTION
The resolution determines the number of available duty
cycles for a given period. For example, a 10-bit resolu-
tion will result in 1024 discrete duty cycles, whereas an
8-bit resolution will result in 256 discrete duty cycles.
The maximum PWM resolution is ten bits when PR2 is
255. The resolution is a function of the PR2 register
value as shown by Equation 23-4.
EQUATION 23-4:
PWM RESOLUTION
23.1.6
OPERATION IN SLEEP MODE
In Sleep mode, the TMR2 register will not increment
and the state of the module will not change. If the
PWMx pin is driving a value, it will continue to drive that
value. When the device wakes up, TMR2 will continue
from its previous state.
23.1.7
CHANGES IN SYSTEM CLOCK
FREQUENCY
The PWM frequency is derived from the system clock
frequency (FOSC). Any changes in the system clock fre-
quency will result in changes to the PWM frequency.
Refer to Section 5.0 “Oscillator Module (With
Fail-Safe Clock Monitor)” for additional details.
23.1.8
EFFECTS OF RESET
Any Reset will force all ports to Input mode and the
PWM registers to their Reset states.
Note:
If the pulse width value is greater than the
period the assigned PWM pin(s) will
remain unchanged.
Resolution
4PR2
1
+


log
2

log
------------------------------------------ bits
=
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
PR2 Value
0xFF
0xFF
0xFF
0x3F
0x1F
0x17
Maximum Resolution (bits)
10
10
10
8
7
6.6
TABLE 23-2:
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (FOSC = 8 MHz)
PWM Frequency
0.31 kHz
4.90 kHz
19.61 kHz
76.92 kHz
153.85 kHz
200.0 kHz
Timer Prescale
64
4
1
1
1
1
PR2 Value
0x65
0x65
0x65
0x19
0x0C
0x09
Maximum Resolution (bits)
8
8
8
6
5
5



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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