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

X  

DSPIC30F0010AT-20E/PF Datasheet(PDF) 102 Page - Microchip Technology

Part # DSPIC30F0010AT-20E/PF
Description  High-Performance, 16-Bit Digital Signal Controllers
PDF  232 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC30F0010AT-20E/PF Datasheet(HTML) 102 Page - Microchip Technology

Back Button DSPIC30F0010AT-20E/PF Datasheet HTML 98Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 99Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 100Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 101Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 102Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 103Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 104Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 105Page - Microchip Technology DSPIC30F0010AT-20E/PF Datasheet HTML 106Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 102 / 232 page
background image
dsPIC30F6010A/6015
DS70150D-page 102
© 2008 Microchip Technology Inc.
15.11 PWM Output and Polarity Control
There are three device Configuration bits associated
with the PWM module that provide PWM output pin
control:
• HPOL Configuration bit
• LPOL Configuration bit
• PWMPIN Configuration bit
These three bits in the FBORPOR Configuration
register (see Section 21.6 “Device Configuration
Registers”) work in conjunction with the four PWM
Enable bits (PENxH and PENxL) located in the
PWMCON1 SFR. The Configuration bits and PWM
Enable bits ensure that the PWM pins are in the correct
states after a device Reset occurs. The PWMPIN
configuration fuse allows the PWM module outputs to
be optionally enabled on a device Reset. If
PWMPIN = 0, the PWM outputs will be driven to their
inactive states at Reset. If PWMPIN = 1 (default), the
PWM outputs will be tri-stated. The HPOL bit specifies
the polarity for the PWMxH outputs, whereas the LPOL
bit specifies the polarity for the PWMxL outputs.
15.11.1
OUTPUT PIN CONTROL
The PENxH and PENxL control bits in the PWMCON1
SFR enable each high PWM output pin and each low
PWM output pin, respectively. If a particular PWM
output pin is not enabled, it is treated as a general
purpose I/O pin.
15.12 PWM Fault Pins
There are two Fault pins (FLTA and FLTB) associated
with the PWM module. When asserted, these pins can
optionally drive each of the PWM I/O pins to a defined
state.
15.12.1
FAULT PIN ENABLE BITS
The FLTACON and FLTBCON SFRs each have 4
control bits that determine whether a particular pair of
PWM I/O pins is to be controlled by the Fault input pin.
To enable a specific PWM I/O pin pair for Fault
overrides, the corresponding bit should be set in the
FLTACON or FLTBCON register.
If all enable bits are cleared in the FLTACON or
FLTBCON registers, then the corresponding Fault input
pin has no effect on the PWM module and the pin may
be used as a general purpose interrupt or I/O pin.
15.12.2
FAULT STATES
The FLTACON and FLTBCON Special Function
Registers have eight bits each that determine the state
of each PWM I/O pin when it is overridden by a Fault
input. When these bits are cleared, the PWM I/O pin is
driven to the inactive state. If the bit is set, the PWM I/O
pin will be driven to the active state. The active and
inactive states are referenced to the polarity defined for
each PWM I/O pin (HPOL and LPOL polarity control
bits).
A special case exists when a PWM module I/O pair is
in the Complementary mode and both pins are
programmed to be active on a Fault condition. The
PWMxH pin always has priority in the Complementary
mode, so that both I/O pins cannot be driven active
simultaneously.
15.12.3
FAULT PIN PRIORITY
If both Fault input pins have been assigned to control a
particular PWM I/O pin, the Fault state programmed for
the Fault A input pin will take priority over the Fault B
input pin.
15.12.4
FAULT INPUT MODES
Each of the Fault input pins has two modes of
operation:
• Latched Mode: When the Fault pin is driven low,
the PWM outputs will go to the states defined in
the FLTACON/FLTBCON register. The PWM
outputs will remain in this state until the Fault pin
is driven high and the corresponding interrupt flag
has been cleared in software. When both of these
actions have occurred, the PWM outputs will
return to normal operation at the beginning of the
next PWM cycle or half-cycle boundary. If the
interrupt flag is cleared before the Fault condition
ends, the PWM module will wait until the Fault pin
is no longer asserted, to restore the outputs.
• Cycle-by-Cycle Mode: When the Fault input pin
is driven low, the PWM outputs remain in the
defined Fault states for as long as the Fault pin is
held low. After the Fault pin is driven high, the
PWM outputs return to normal operation at the
beginning of the following PWM cycle or
half-cycle boundary.
The Operating mode for each Fault input pin is selected
using the FLTAM and FLTBM control bits in the
FLTACON and FLTBCON Special Function Registers.
Each of the Fault pins can be controlled manually in
software.
Note:
The
Fault
pin
logic
can
operate
independent of the PWM logic. If all the
enable bits in the FLTACON/FLTBCON
register are cleared, then the Fault pin(s)
could be used as general purpose
interrupt pin(s). Each Fault pin has an
interrupt vector, Interrupt Flag bit and
Interrupt Priority bits associated with it.



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