PIC18F458-E/P Microchip Technology, PIC18F458-E/P Datasheet - Page 136

IC MCU FLASH 16KX16 W/CAN 40 DIP

PIC18F458-E/P

Manufacturer Part Number
PIC18F458-E/P
Description
IC MCU FLASH 16KX16 W/CAN 40 DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F458-E/P

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
40-DIP (0.600", 15.24mm)
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
1536 B
Interface Type
SPI, I2C, USART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
33
Number Of Timers
4
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DV164136, DM163011
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 8 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F458-E/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F458-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
16.4
When configured in Single Output mode, the ECCP
module functions identically to the standard CCP
module in PWM mode as described in Section 15.4
“PWM Mode”. The differences in registers and ports
are as described in Section 16.2 “Capture Mode”. In
addition, the two Least Significant bits of the 10-bit
PWM
ECCP1CON<5:4>.
16.5
The Enhanced PWM mode provides additional PWM
output options for a broader range of control applica-
tions. The module is an upwardly compatible version of
the standard CCP module and is modified to provide up
to four outputs, designated P1A through P1D. Users
are also able to select the polarity of the signal (either
active-high or active-low). The module’s output mode
and
EPWM1M1:EPWM1M0 and ECCP1M3:ECCP1M0 bits
of the ECCP1CON register (ECCP1CON<7:6> and
ECCP1CON<3:0>, respectively).
FIGURE 16-1:
DS41159E-page 134
PIC18FXX8
Note:
Note:
ECCPR1H (Slave)
Duty Cycle Registers
polarity
Comparator
duty
ECCPR1L
Standard PWM Mode
Enhanced PWM Mode
PR2
TMR2
The 8-bit TMR2 register is concatenated with the 2-bit internal Q clock, or 2 bits of the prescaler, to create the 10-bit time base.
Comparator
When setting up single output PWM
operations, users are free to use either of
the processes described in Section 15.4.3
“Setup
Section 16.5.8 “Setup for PWM Opera-
tion”. The latter is more generic, but will
work for either single or multi-output PWM.
cycle
are
(Note 1)
for
SIMPLIFIED BLOCK DIAGRAM OF THE ENHANCED PWM MODULE
Clear Timer,
set ECCP1 pin and
latch D.C.
value
configured
ECCP1CON<5:4>
PWM
are
R
S
by
Operation”
represented
Q
setting
EPWM1M1<1:0>
the
or
by
ECCP1DEL
Controller
ECCP1/P1A
Output
2
P1C
P1D
P1B
Figure 16-1 shows a simplified block diagram of PWM
operation. All control registers are double-buffered and
are loaded at the beginning of a new PWM cycle (the
period boundary when the assigned timer resets) in
order to prevent glitches on any of the outputs. The
exception is the PWM Delay register, ECCP1DEL,
which is loaded at either the duty cycle boundary or the
boundary period (whichever comes first). Because of
the buffering, the module waits until the assigned timer
resets instead of starting immediately. This means that
Enhanced PWM waveforms do not exactly match the
standard PWM waveforms, but are instead offset by
one full instruction cycle (4 T
As before, the user must manually configure the
appropriate TRISD bits for output.
16.5.1
The EPWM1M<1:0> bits in the ECCP1CON register
allow one of four configurations:
• Single Output
• Half-Bridge Output
• Full-Bridge Output, Forward mode
• Full-Bridge Output, Reverse mode
The Single Output mode is the standard PWM mode
discussed in Section 15.4 “PWM Mode”. The Half-
Bridge and Full-Bridge Output modes are covered in
detail in the sections that follow.
The general relationship of the outputs in all
configurations is summarized in Figure 16-2.
ECCP1M<3:0>
4
TRISD<4>
TRISD<5>
TRISD<6>
TRISD<7>
PWM OUTPUT CONFIGURATIONS
© 2006 Microchip Technology Inc.
OSC
RD4/PSP4/ECCP1/P1A
RD5/PSP5/P1B
RD6/PSP6/P1C
RD7/PSP7/P1D
).

Related parts for PIC18F458-E/P