Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LF4331-E/ML Datasheet(PDF) 188 Page - Microchip Technology

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

PIC18LF4331-E/ML Datasheet(HTML) 188 Page - Microchip Technology

Back Button PIC18LF4331-E/ML Datasheet HTML 184Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 185Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 186Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 187Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 188Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 189Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 190Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 191Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 192Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 188 / 392 page
background image
PIC18F2331/2431/4331/4431
DS39616D-page 188
 2010 Microchip Technology Inc.
18.6.2
DUTY CYCLE REGISTER BUFFERS
The
four
PWM
Duty
Cycle
registers
are
double-buffered to allow glitchless updates of the PWM
outputs. For each duty cycle block, there is a Duty
Cycle Buffer register that is accessible by the user and
a second Duty Cycle register that holds the actual
compare value used in the present PWM period.
In Edge-Aligned PWM Output mode, a new duty cycle
value will be updated whenever a PTMR match with the
PTPER register occurs and PTMR is reset as shown in
Figure 18-12. Also, the contents of the duty cycle buffers
are automatically loaded into the Duty Cycle registers
when the PWM time base is disabled (PTEN = 0).
When the PWM time base is in the Continuous
Up/Down Count mode, new duty cycle values will be
updated when the value of the PTMR register is zero
and the PWM time base begins to count upwards. The
contents of the duty cycle buffers are automatically
loaded into the Duty Cycle registers when the PWM
time base is disabled (PTEN = 0). Figure 18-13 shows
the timings when the duty cycle update occurs for the
Continuous Up/Down Count mode. In this mode, up to
one entire PWM period is available for calculating and
loading the new PWM duty cycle before changes take
effect.
When the PWM time base is in the Continuous
Up/Down Count mode with double updates, new duty
cycle values will be updated when the value of the
PTMR register is zero and when the value of the PTMR
register matches the value in the PTPER register. The
contents of the duty cycle buffers are automatically
loaded into the Duty Cycle registers during both of the
previously described conditions. Figure 18-14 shows
the duty cycle updates for Continuous Up/Down Count
mode with double updates. In this mode, only up to half
of a PWM period is available for calculating and loading
the new PWM duty cycle before changes take effect.
18.6.3
EDGE-ALIGNED PWM
Edge-aligned PWM signals are produced by the
module when the PWM time base is in the
Free-Running mode or the Single-Shot mode. For
edge-aligned PWM outputs, the output for a given
PWM channel has a period specified by the value
loaded in PTPER and a duty cycle specified by the
appropriate Duty Cycle register (see Figure 18-12).
The PWM output is driven active at the beginning of the
period (PTMR = 0) and is driven inactive when the
value in the Duty Cycle register matches PTMR. A new
cycle is started when PTMR matches the PTPER as
explained in the PWM period section.
If the value in a particular Duty Cycle register is zero,
then the output on the corresponding PWM pin will be
inactive for the entire PWM period. In addition, the out-
put on the PWM pin will be active for the entire PWM
period if the value in the Duty Cycle register is greater
than the value held in the PTPER register.
FIGURE 18-12:
EDGE-ALIGNED PWM
FIGURE 18-13:
DUTY CYCLE UPDATE TIMES IN CONTINUOUS UP/DOWN COUNT MODE
Period
Duty Cycle
0
PTPER
PTMR
Value
New Duty Cycle Latched
Active at
of Period
Beginning
PDCx
PDCx
(new)
(old)
PTMR Value
PWM Output
Duty Cycle Value Loaded from Buffer Register
New Value Written to Duty Cycle Buffer



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