công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

DSPIC33FJ12MC02ESS bảng dữ liệu(PDF) 148 Page - Microchip Technology

tên linh kiện DSPIC33FJ12MC02ESS
Giải thích chi tiết về linh kiện  High-Performance, 16-Bit Digital Signal Controllers
PDF  284 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC33FJ12MC02ESS bảng dữ liệu(HTML) 148 Page - Microchip Technology

Back Button DSPIC33FJ12MC02ESS Datasheet HTML 144Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 145Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 146Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 147Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 148Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 149Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 150Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 151Page - Microchip Technology DSPIC33FJ12MC02ESS Datasheet HTML 152Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 148 / 284 page
background image
dsPIC33FJ12MC201/202
DS70265B-page 146
Preliminary
© 2007 Microchip Technology Inc.
14.3
PWM Time Base
The PWM time base is provided by a 15-bit timer with
a prescaler and postscaler. The time base is accessible
via the PXTMR SFR. PXTMR<15> is a read-only status
bit, PTDIR, that indicates the present count direction of
the PWM time base.
• If PTDIR is cleared, PXTMR is counting upward.
• If PTDIR is set, PxTMR is counting downward.
The PWM time base is configured using the PxTCON
SFR. The time base is enabled or disabled by setting
or clearing the PTEN bit in the PXTCON SFR. PXTMR
is not cleared when the PTEN bit is cleared in software.
The PXTPER SFR sets the counting period for
PXTMR. The user application must write a 15-bit value
to PXTPER<14:0>. When the value in PXTMR<14:0>
matches the value in PXTPER<14:0>, the time base
will either reset to ‘0’ or reverse the count direction on
the next occurring clock cycle. The action taken
depends on the operating mode of the time base.
The PWM time base can be configured for four different
modes of operation:
• Free-Running mode
• Single-Shot mode
• Continuous Up/Down Count mode
• Continuous Up/Down Count mode with interrupts
for double updates
These four modes are selected by the PTMOD<1:0>
bits in the PXTCON SFR. The Up/Down Count modes
support center-aligned PWM generation. The Single-
Shot mode allows the PWM module to support pulse
control of certain Electronically Commutative Motors
(ECMs).
The interrupt signals generated by the PWM time base
depend on the mode selection bits (PTMOD<1:0>) and
the postscaler bits (PTOPS<3:0>) in the PXTCON SFR.
14.3.1
FREE-RUNNING MODE
In Free-Running mode, the PWM time base counts
upwards until the value in the PWM Time Base Period
register (PXTPER) is matched. The PXTMR register is
reset on the following input clock edge, and the time
base will continue to count upward as long as the PTEN
bit remains set.
When the PWM time base is in the Free-Running mode
(PTMOD<1:0> = 00), an interrupt event is generated
each time a match with the PXTPER register occurs
and the PXTMR register is reset to zero. The postscaler
selection bits can be used in this mode of the timer to
reduce the frequency of interrupt events.
14.3.2
SINGLE-SHOT MODE
In Single-Shot mode, the PWM time base begins
counting upward when the PTEN bit is set. When the
value in the PXTMR register matches the PXTPER reg-
ister, the PXTMR register will be reset on the following
input clock edge, and the PTEN bit will be cleared by
the hardware to halt the time base.
When the PWM time base is in Single-Shot mode
(PTMOD<1:0> = 01), an interrupt event is generated
when a match with the PXTPER register occurs. The
PxTMR register is reset to zero on the following input
clock edge and the PTEN bit is cleared. The postscaler
selection bits have no effect in this mode of the timer.
14.3.3
CONTINUOUS UP/DOWN COUNT
MODES
In Continuous Up/Down Count modes, the PWM time
base counts upward until the value in the PXTPER
register is matched. The timer will begin counting
downwards on the following input clock edge. The
PTDIR bit in the PXTMR SFR is read-only and
indicates the counting direction. The PTDIR bit is set
when the timer counts downward.
In the Up/Down Count mode (PTMOD<1:0> = 10), an
interrupt event is generated each time the value of the
PXTMR register becomes zero and the PWM time base
begins to count upward. The postscaler selection bits
can be used in this mode of the timer to reduce the
frequency of interrupt events.
Note:
If the PWM Period register is set to
0x0000, the timer will stop counting and
the interrupt and Special Event Trigger will
not be generated, even if the special event
value is also 0x0000. The module will not
update the PWM Period register if it is
already at 0x0000; therefore, the user
application must disable the module in to
update the PWM Period register.



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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