поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

48GA004 датащи(PDF) 136 Page - Microchip Technology

номер детали 48GA004
подробное описание детали  28/44-Pin General Purpose, 16-Bit Flash Microcontrollers
PDF  268 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

48GA004 датащи(HTML) 136 Page - Microchip Technology

Back Button 48GA004 Datasheet HTML 132Page - Microchip Technology 48GA004 Datasheet HTML 133Page - Microchip Technology 48GA004 Datasheet HTML 134Page - Microchip Technology 48GA004 Datasheet HTML 135Page - Microchip Technology 48GA004 Datasheet HTML 136Page - Microchip Technology 48GA004 Datasheet HTML 137Page - Microchip Technology 48GA004 Datasheet HTML 138Page - Microchip Technology 48GA004 Datasheet HTML 139Page - Microchip Technology 48GA004 Datasheet HTML 140Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 136 / 268 page
background image
PIC24FJ64GA004 FAMILY
DS39881D-page 136
 2010 Microchip Technology Inc.
14.3
Pulse-Width Modulation Mode
The following steps should be taken when configuring
the output compare module for PWM operation:
1.
Set the PWM period by writing to the selected
Timer Period register (PRy).
2.
Set the PWM duty cycle by writing to the OCxRS
register.
3.
Write the OCxR register with the initial duty cycle.
4.
Enable interrupts, if required, for the timer and
output compare modules. The output compare
interrupt is required for PWM Fault pin utilization.
5.
Configure the output compare module for one of
two PWM Operation modes by writing to the
Output
Compare
Mode
bits,
OCM<2:0>
(OCxCON<2:0>).
6.
Set the TMRy prescale value and enable the time
base by setting TON (TxCON<15>) = 1.
14.3.1
PWM PERIOD
The PWM period is specified by writing to PRy, the
Timer Period register. The PWM period 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 register. The OCxRS register can be written to
at any time, but the duty cycle value is not latched into
OCxR until a match between PRy and TMRy occurs
(i.e., the period is complete). This provides a double
buffer for the PWM duty cycle and is essential for glitch-
less PWM operation. In the PWM mode, OCxR is a
read-only register.
Some important boundary parameters of the PWM duty
cycle include:
• If the Output Compare x register, OCxR, is loaded
with 0000h, the OCx pin will remain low (0% duty
cycle).
• If OCxR is greater than PRy (Timer Period
register), the pin will remain high (100% duty
cycle).
• If OCxR is equal to PRy, the OCx pin will be low
for one time base count value and high for all
other count values.
See Example 14-1 for PWM mode timing details.
Table 14-1 shows example PWM frequencies and
resolutions for a device operating at 10 MIPS.
EQUATION 14-2:
CALCULATION FOR MAXIMUM PWM RESOLUTION(1)
Note:
This peripheral contains input and output
functions that may need to be configured
by
the
peripheral
pin select.
See
Section 10.4 “Peripheral Pin Select”
for
more information.
Note:
The OCxR register should be initialized
before the output compare module is first
enabled. The OCxR register becomes a
Read-Only Duty Cycle register when the
module is operated in the PWM modes.
The value held in OCxR will become the
PWM duty cycle for the first PWM period.
The contents of the Output Compare x
Secondary register, OCxRS, will not be
transferred into OCxR until a time base
period match occurs.
Note:
A PRy value of N will produce a PWM
period of N + 1 time base count cycles. For
example, a value of 7 written into the PRy
register will yield a period consisting of
8 time base cycles.
PWM Period = [(PRy) + 1] • TCY • (Timer Prescale Value)
PWM Frequency = 1/[PWM Period]
where:
Note 1:
Based on TCY = 2 * TOSC, Doze mode
and PLL are disabled.
(
)
Maximum PWM Resolution (bits) =
FCY
FPWM • (Timer Prescale Value)
log10
log10(2)
bits
Note 1:
Based on FCY = FOSC/2, 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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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