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

X  

PIC18F1230-E/SOSQTP Datasheet(PDF) 127 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) 127 Page - Microchip Technology

Back Button 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 PIC18F1230-E/SOSQTP Datasheet HTML 130Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 131Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 127 / 312 page
background image
PIC18F1230/1330
© 2006 Microchip Technology Inc.
Advance Information
DS39758B-page 125
13.6
PWM Duty Cycle
PWM duty cycle is defined by the PDCx (PDCxL and
PDCxH) registers. There are a total of three PWM Duty
Cycle registers for four pairs of PWM channels. The
Duty Cycle registers have 14-bit resolution by combin-
ing the six LSbs of PDCxH with the 8 bits of PDCxL.
PDCx is a double-buffered register used to set the
counting period for the PWM time base.
13.6.1
PWM DUTY CYCLE REGISTERS
There are three 14-bit Special Function Registers used
to specify duty cycle values for the PWM module:
• PDC0 (PDC0L and PDC0H)
• PDC1 (PDC1L and PDC1H)
• PDC2 (PDC2L and PDC2H)
The value in each Duty Cycle register determines the
amount of time that the PWM output is in the active
state. The upper 12 bits of PDCx hold the actual duty
cycle value from PTMRH/L<11:0>, while the lower two
bits control which internal Q clock the duty cycle match
will occur. This 2-bit value is decoded from the Q
clocks, as shown in Figure 13-11, when the prescaler is
1:1 (PTCKPS<1:0> = 00).
In Edge-Aligned mode, the PWM period starts at Q1 and
ends when the Duty Cycle register matches the PTMR
register as follows. The duty cycle match is considered
when the upper 12 bits of the PDCx are equal to the
PTMR and the lower 2 bits are equal to Q1, Q2, Q3 or
Q4, depending on the lower two bits of the PDCx (when
the prescaler is 1:1 or PTCKPS<1:0> = 00)
.
Each compare unit has logic that allows override of the
PWM signals. This logic also ensures that the PWM
signals will complement each other (with dead-time
insertion) in Complementary mode (see Section 13.7
“Dead-Time Generators”).
FIGURE 13-11:
DUTY CYCLE COMPARISON
Note:
When
the
prescaler
is
not
1:1
(PTCKPS<1:0>
≠ ~00), the duty cycle
match occurs at the Q1 clock of the
instruction cycle when the PTMR and
PDCx match occurs.
Note:
To get the correct PWM duty cycle, always
multiply the calculated PWM duty cycle
value by four before writing it to the PWM
Duty Cycle registers. This is due to the two
additional LSBs in the PWM Duty Cycle
registers which are compared against the
internal Q clock for the PWM duty cycle
match.
PTMR<11:0>
PDCx<13:0>
Comparator
Unused
Unused
PTMRH<7:0>
PTMRL<7:0>
PTMRH<3:0>
PTMRL<7:0>
Q Clocks(1)
PDCxH<7:0>
PDCxL<7:0>
PDCxH<5:0>
PDCxL<7:0>
<1:0>
Note 1: This value is decoded from the Q clocks:
00
= duty cycle match occurs on Q1
01
= duty cycle match occurs on Q2
10
= duty cycle match occurs on Q3
11
= duty cycle match occurs on Q4



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