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

X  

PIC24FJ64GA104T-E/SS Datasheet(PDF) 159 Page - Microchip Technology

Part # PIC24FJ64GA104T-E/SS
Description  28/44-Pin, 16-Bit General Purpose Flash Microcontrollers with nanoWatt XLP Technology
PDF  308 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC24FJ64GA104T-E/SS Datasheet(HTML) 159 Page - Microchip Technology

Back Button PIC24FJ64GA104T-E/SS Datasheet HTML 155Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 156Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 157Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 158Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 159Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 160Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 161Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 162Page - Microchip Technology PIC24FJ64GA104T-E/SS Datasheet HTML 163Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 159 / 308 page
background image
 2010 Microchip Technology Inc.
DS39951C-page 159
PIC24FJ64GA104 FAMILY
14.3.1
PWM PERIOD
In edge aligned PWM mode, the period is specified by
the value of OCxRS register. In center aligned PWM
mode, the period of the synchronization source such as
Timer's PRy specifies the period. The period in both
cases can be calculated using Equation 14-1.
EQUATION 14-1:
CALCULATING THE PWM
PERIOD(1)
14.3.2
PWM DUTY CYCLE
The PWM duty cycle is specified by writing to the
OCxRS and OCxR registers. The OCxRS and OCxR
registers can be written to at any time, but the duty
cycle value is not latched until a period is complete.
This provides a double buffer for the PWM duty cycle
and is essential for glitchless PWM operation.
Some important boundary parameters of the PWM duty
cycle include:
• Edge-Aligned PWM
- If OCxR and OCxRS are loaded with 0000h,
the OCx pin will remain low (0% duty cycle).
- If OCxRS is greater than OCxR, the pin will
remain high (100% duty cycle).
• Center-Aligned PWM (with TMRy as the sync
source)
- If OCxR, OCxRS and PRy are all loaded with
0000h, the OCx pin will remain low (0% duty
cycle).
- If OCxRS is greater than PRy, the pin will go
high (100% duty cycle).
See Example 14-1 for PWM mode timing details.
Table 14-1 and Table 14-2 show example PWM
frequencies and resolutions for a device operating at
4 MIPS and 10 MIPS, respectively.
EQUATION 14-2:
CALCULATION FOR MAXIMUM PWM RESOLUTION(1)
EXAMPLE 14-1:
PWM PERIOD AND DUTY CYCLE CALCULATIONS(1)
PWM Period = [Value + 1] x TCY x (Prescaler Value)
Value = OCxRS in Edge-Aligned PWM mode
Where:
Note 1:
Based on TCY = TOSC * 2; Doze mode
and PLL are disabled.
and can be PRy in Center-Aligned PWM mode
(If TMRy is the sync source).
(
)
Maximum PWM Resolution (bits) =
FCY
FPWM • (Prescale Value)
log10
log10(2)
bits
Note 1: Based on FCY = FOSC/2; Doze mode and PLL are disabled.
1. Find the OCxRS register value for a desired PWM frequency of 52.08 kHz, where FOSC = 8 MHz with PLL (32 MHz device
clock rate) and a prescaler setting of 1:1 using Edge-Aligned PWM mode.
TCY = 2 * TOSC = 62.5 ns
PWM Period = 1/PWM Frequency = 1/52.08 kHz = 19.2
s
PWM Period = (OCxRS + 1) • TCY • (OCx Prescale Value)
19.2
s
= (OCxRS + 1) • 62.5 ns • 1
OCxRS
= 306
2.
Find the maximum resolution of the duty cycle that can be used with a 52.08 kHz frequency and a 32 MHz device clock rate:
PWM Resolution = log10(FCY/FPWM)/log102) bits
=(log10(16 MHz/52.08 kHz)/log102) bits
= 8.3 bits
Note 1: Based on TCY = 2 * TOSC; Doze mode and PLL are disabled.



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