Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LF4331 Datasheet(PDF) 198 Page - Microchip Technology

Part # PIC18LF4331
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 Datasheet(HTML) 198 Page - Microchip Technology

Back Button PIC18LF4331 Datasheet HTML 194Page - Microchip Technology PIC18LF4331 Datasheet HTML 195Page - Microchip Technology PIC18LF4331 Datasheet HTML 196Page - Microchip Technology PIC18LF4331 Datasheet HTML 197Page - Microchip Technology PIC18LF4331 Datasheet HTML 198Page - Microchip Technology PIC18LF4331 Datasheet HTML 199Page - Microchip Technology PIC18LF4331 Datasheet HTML 200Page - Microchip Technology PIC18LF4331 Datasheet HTML 201Page - Microchip Technology PIC18LF4331 Datasheet HTML 202Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 198 / 392 page
background image
PIC18F2331/2431/4331/4431
DS39616D-page 198
 2010 Microchip Technology Inc.
18.11 PWM Output and Polarity Control
There are three device Configuration bits associated
with the PWM module that provide PWM output pin
control defined in the CONFIG3L Configuration
register. They are:
•HPOL
•LPOL
•PWMPIN
These three Configuration bits work in conjunction with
the three PWM Enable bits (PWMEN<2:0>) in the
PWMCON0 register. The Configuration bits and PWM
enable bits ensure that the PWM pins are in the correct
states after a device Reset occurs.
18.11.1
OUTPUT PIN CONTROL
The PWMEN<2:0> control bits enable each PWM
output pin as required in the application.
All PWM I/O pins are general purpose I/O. When a pair
of pins are enabled for PWM output, the PORT and
TRIS registers controlling the pins are disabled. Refer
to Figure 18-23 for details.
18.11.2
OUTPUT POLARITY CONTROL
The polarity of the PWM I/O pins is set during device
programming via the HPOL and LPOL Configuration
bits in the CONFIG3L Configuration register. The
HPOL Configuration bit sets the output polarity for the
high side PWM outputs: PWM1, PWM3, PWM5 and
PWM7. The polarity is active-low when HPOL is
cleared (= 0), and active-high when it is set (= 1).
The LPOL Configuration bit sets the output polarity for
the low side PWM outputs: PWM0, PWM2, PWM4 and
PWM6. As with HPOL, they are active-low when LPOL
is cleared and active-high when it is set.
All output signals generated by the PWM module are
referenced to the polarity control bits, including those
generated by Fault inputs or manual override (see
Section 18.10 “PWM Output Override”
).
The default polarity Configuration bits have the PWM
I/O pins in active-high output polarity.
FIGURE 18-23:
PWM I/O PIN BLOCK DIAGRAM
Data Bus
WR PORT
WR TRIS
RD PORT
Data Latch
TRIS Latch
P
VSS
I/O Pin
Q
D
Q
CK
Q
D
Q
CK
QD
EN
N
VDD
RD TRIS
Schmitt
Trigger
TTL or
0
1
PWM Pin Enable
PWM Signal from Module
Note:
I/O pin has protection diodes to VDD and VSS. PWM polarity selection logic not shown for clarity.



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