Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LF4331-E/ML Datasheet(PDF) 196 Page - Microchip Technology

Part # PIC18LF4331-E/ML
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-E/ML Datasheet(HTML) 196 Page - Microchip Technology

Back Button PIC18LF4331-E/ML Datasheet HTML 192Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 193Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 194Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 195Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 196Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 197Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 198Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 199Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 200Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 196 / 392 page
background image
PIC18F2331/2431/4331/4431
DS39616D-page 196
 2010 Microchip Technology Inc.
18.10.3
OUTPUT OVERRIDE EXAMPLES
Figure 18-21 shows an example of a waveform that
might be generated using the PWM output override
feature. The figure shows a six-step commutation
sequence for a BLDC motor. The motor is driven
through a 3-phase inverter as shown in Figure 18-16.
When the appropriate rotor position is detected, the
PWM outputs are switched to the next commutation
state in the sequence. In this example, the PWM out-
puts are driven to specific logic states. The OVDCOND
and OVDCONS register values used to generate the
signals in Figure 18-21 are given in Table 18-4.
The PWM Duty Cycle registers may be used in con-
junction with the OVDCOND and OVDCONS registers.
The Duty Cycle registers control the average voltage
across the load and the OVDCOND and OVDCONS
registers
control
the
commutation
sequence.
Figure 18-22 shows the waveforms, while Table 18-4
and Table 18-5 show the OVDCOND and OVDCONS
register values used to generate the signals.
REGISTER 18-6:
OVDCOND: OUTPUT OVERRIDE CONTROL REGISTER
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
POVD7(1)
POVD6(1)
POVD5
POVD4
POVD3
POVD2
POVD1
POVD0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
POVD<7:0>:
PWM Output Override bits
1
= Output on PWM I/O pin is controlled by the value in the Duty Cycle register and the PWM time base
0
= Output on PWM I/O pin is controlled by the value in the corresponding POUT bit
Note 1:
Unimplemented in PIC18F2331/2431 devices; maintain these bits clear.
REGISTER 18-7:
OVDCONS: OUTPUT STATE REGISTER(1,2)
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
POUT7(1)
POUT6(1)
POUT5
POUT4
POUT3
POUT2
POUT1
POUT0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
POUT<7:0>:
PWM Manual Output bits
1
= Output on PWM I/O pin is active when the corresponding PWM output override bit is cleared
0
= Output on PWM I/O pin is inactive when the corresponding PWM output override bit is cleared
Note 1:
Unimplemented in PIC18F2331/2431 devices; maintain these bits clear.
2:
With PWMs configured in Complementary mode, the output of even numbered PWM (PM0,2,4) will be
complementary of the output of odd PWM (PWM1,3,5), irrespective of the POUT bit setting.



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