Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F1230-E/SOSQTP Datasheet(PDF) 125 Page - Microchip Technology

Part # PIC18F1230-E/SOSQTP
Description  18/20/28-Pin, Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
PDF  312 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F1230-E/SOSQTP Datasheet(HTML) 125 Page - Microchip Technology

Back Button PIC18F1230-E/SOSQTP Datasheet HTML 121Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 122Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 123Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 124Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 125Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 126Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 127Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 128Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 129Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 125 / 312 page
background image
PIC18F1230/1330
© 2006 Microchip Technology Inc.
Advance Information
DS39758B-page 123
13.5
PWM Period
The PWM period is defined by the PTPER register pair
(PTPERL and PTPERH). The PWM period has 12-bit
resolution by combining 4 LSBs of PTPERH and 8 bits
of PTPERL. PTPER is a double-buffered register used
to set the counting period for the PWM time base.
The PTPER buffer contents are loaded into the PTPER
register at the following times:
• Free-Running and Single-Shot modes: When the
PTMR register is reset to zero after a match with the
PTPER register.
• Continuous Up/Down Count modes: When the
PTMR register is zero. The value held in the PTPER
buffer is automatically loaded into the PTPER
register when the PWM time base is disabled
(PTEN = 0). Figure 13-9 and Figure 13-10 indicate
the times when the contents of the PTPER buffer
are loaded into the actual PTPER register.
The PWM period can be calculated from the following
formulas:
EQUATION 13-1:
PWM PERIOD FOR
FREE-RUNNING MODE
EQUATION 13-2:
PWM PERIOD FOR
CONTINUOUS UP/DOWN
COUNT MODE
The PWM frequency is the inverse of period; or
EQUATION 13-3:
PWM FREQUENCY
The maximum resolution (in bits) for a given device
oscillator and PWM frequency can be determined from
the following formula:
EQUATION 13-4:
PWM RESOLUTION
The PWM resolutions and frequencies are shown for a
selection of execution speeds and PTPER values in
Table 13-2. The PWM frequencies in Table 13-2 are
calculated for Edge-Aligned PWM mode. For Center-
Aligned
mode,
the
PWM
frequencies
will
be
approximately one-half the values indicated in this
table.
TABLE 13-2:
EXAMPLE PWM
FREQUENCIES AND
RESOLUTIONS
TPWM =
(PTPER + 1) x PTMRPS
FOSC/4
TPWM =
(2 x PTPER) x PTMRPS
FOSC
4
PWM Frequency =
1
PWM Period
PWM Frequency = 1/TPWM
FOSC
MIPS
PTPER
Value
PWM
Resolution
PWM
Frequency
40 MHz
10
0FFFh
14 bits
2.4 kHz
40 MHz
10
07FFh
13 bits
4.9 kHz
40 MHz
10
03FFh
12 bits
9.8 kHz
40 MHz
10
01FFh
11 bits
19.5 kHz
40 MHz
10
FFh
10 bits
39.0 kHz
40 MHz
10
7Fh
9 bits
78.1 kHz
40 MHz
10
3Fh
8 bits
156.2 kHz
40 MHz
10
1Fh
7 bits
312.5 kHz
40 MHz
10
0Fh
6 bits
625 kHz
25 MHz
6.25
0FFFh
14 bits
1.5 kHz
25 MHz
6.25
03FFh
12 bits
6.1 kHz
25 MHz
6.25
FFh
10 bits
24.4 kHz
10 MHz
2.5
0FFFh
14 bits
610 Hz
10 MHz
2.5
03FFh
12 bits
2.4 kHz
10 MHz
2.5
FFh
10 bits
9.8 kHz
5 MHz
1.25
0FFFh
14 bits
305 Hz
5 MHz
1.25
03FFh
12 bits
1.2 kHz
5 MHz
1.25
FFh
10 bits
4.9 kHz
4 MHz
1
0FFFh
14 bits
244 Hz
4 MHz
1
03FFh
12 bits
976 Hz
4 MHz
1
FFh
10 bits
3.9 kHz
Note:
For
center-aligned
operation,
PWM
frequencies will be approximately 1/2 the
value indicated in the table.
Resolution =
log(2)
log
FOSC
FPWM



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