PIC18F258 MICROCHIP [Microchip Technology], PIC18F258 Datasheet - Page 140

no-image

PIC18F258

Manufacturer Part Number
PIC18F258
Description
High Performance, 28/40-Pin Enhanced FLASH Microcontrollers with CAN
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F258-E/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F258-I/P
Manufacturer:
ST
Quantity:
320
Part Number:
PIC18F258-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC18F258-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2580
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F2580-E/ML
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2580-E/SO
Manufacturer:
Microchi
Quantity:
2 952
Part Number:
PIC18F2580-E/SP
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2580-I/SO
Manufacturer:
MICRO
Quantity:
10
Part Number:
PIC18F2580-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2580-I/SO
0
Part Number:
PIC18F2585-I/SO
Quantity:
2
PIC18FXX8
16.5.4
In half-bridge or full-bridge applications, where all
power switches are modulated at the PWM frequency
at all times, the power switches normally require longer
time to turn off than to turn on. If both the upper and
lower power switches are switched at the same time
(one turned on, and the other turned off), both switches
will be on for a short period of time until one switch
completely turns off. During this time, a very high cur-
rent (shoot-through current) flows through both power
switches, shorting the bridge supply. To avoid this
potentially destructive shoot-through current from flow-
ing during switching, turning on the power switch is nor-
mally delayed to allow the other switch to completely
turn off.
In the Half-Bridge Output mode, a digitally program-
mable deadband delay is available to avoid shoot-
through current from destroying the bridge power
switches. The delay occurs at the signal transition from
the non-active state to the active state. See Figure 16-3
for illustration. The ECCP1DEL register (Register 16-2)
sets the amount of delay.
16.5.5
When the ECCP module is used in the PWM mode, the
application hardware must use the proper external pull-
up and/or pull-down resistors on the PWM output pins.
When the microcontroller powers up, all of the I/O pins
are in the high-impedance state. The external pull-up
and pull-down resistors must keep the power switch
REGISTER 16-2:
DS41159B-page 138
bit 7-0
PROGRAMMABLE DEADBAND
DELAY
SYSTEM IMPLEMENTATION
ECCP1DEL REGISTER
EPDC<7:0>: PWM Delay Count for Half-Bridge Output Mode bits
Number of F
bit 7
Legend:
R = Readable bit
- n = Value at POR
EPDC7
R/W-0
OSC
EPDC6
R/W-0
/4 (T
OSC
*
EPDC5
4) cycles between the P1A transition and the P1B transition
R/W-0
Preliminary
W = Writable bit
’1’ = Bit is set
EPDC4
R/W-0
devices in the off state, until the microcontroller drives
the I/O pins with the proper signal levels, or activates
the PWM output(s).
16.5.6
Prior to enabling the PWM outputs, the P1A, P1B, P1C
and P1D latches may not be in the proper states.
Enabling the TRISD bits for output at the same time
with the ECCP1 module may cause damage to the
power switch devices. The ECCP1 module must be
enabled in the proper Output mode with the TRISD bits
enabled as inputs. Once the ECCP1 completes a full
PWM cycle, the P1A, P1B, P1C and 1PD output
latches are properly initialized. At this time, the TRISD
bits can be enabled for outputs to start driving the
power switch devices. The completion of a full PWM
cycle is indicated by the TMR2IF bit going from a ’0’ to
a ’1’.
16.5.7
The ECCP1M<1:0> bits in the ECCP1CON register
allow user to choose the logic conventions (asserted
high/low) for each of the outputs.
The PWM output polarities must be selected before the
PWM outputs are enabled. Charging the polarity con-
figuration while the PWM outputs are active is not rec-
ommended, since it may result in unpredictable
operation.
EPDC3
R/W-0
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
START-UP CONSIDERATIONS
OUTPUT POLARITY
CONFIGURATION
EPDC2
R/W-0
 2002 Microchip Technology Inc.
x = Bit is unknown
EPDC1
R/W-0
EPDC0
R/W-0
bit 0

Related parts for PIC18F258