PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 202

IC MCU FLASH 4KX16 28-DIP

PIC18F2331-E/SP

Manufacturer Part Number
PIC18F2331-E/SP
Description
IC MCU FLASH 4KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2331-E/SP

Core Size
8-Bit
Program Memory Size
8KB (4K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
Number Of I /o
24
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC18
No. Of I/o's
24
Eeprom Memory Size
256Byte
Ram Memory Size
768Byte
Cpu Speed
40MHz
No. Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
I3-DB18F4431 - BOARD DAUGHTER ICEPIC3AC164035 - MODULE SKT FOR 18F2X31 28SOICDVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
PIC18F2331/2431/4331/4431
REGISTER 17-5:
17.7.2
The amount of dead time provided by the dead-time
unit is selected by specifying the input clock prescaler
value and a 6-bit unsigned value defined in the DTCON
register. Four input clock prescaler selections have
been provided to allow a suitable range of dead times
based on the device operating frequency. F
F
options available using the DTPS1:DTPS0 control bits
in the DTCON register.
After selecting an appropriate prescaler value, the
dead time is adjusted by loading a 6-bit unsigned value
into DTCON<5:0>. The dead-time unit prescaler is
cleared on any of the following events:
• On a load of the down timer due to a duty cycle
• On a write to the DTCON register; or
• On any device Reset.
DS39616C-page 200
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-0
OSC
comparison edge event;
DTPS1
R/W-0
/4, F
OSC
DEAD-TIME RANGES
DTPS1:DTPS0: Dead-Time Unit A Prescale Select bits
11 = Clock source for dead-time unit is F
10 = Clock source for dead-time unit is F
01 = Clock source for dead-time unit is F
00 = Clock source for dead-time unit is F
DT5:DT0: Unsigned 6-Bit Dead-Time Value for Dead-Time Unit bits
/8 and F
DTPS0
R/W-0
DTCON: DEAD-TIME CONTROL REGISTER
OSC
/16 are the clock prescaler
W = Writable bit
‘1’ = Bit is set
R/W-0
DT5
R/W-0
OSC
DT4
Preliminary
/2,
OSC
OSC
OSC
OSC
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
/16
/8
/4
/2
R/W-0
DT3
17.7.3
The dead-time counter is clocked from any of the Q
clocks based on the following conditions.
1.
2.
3.
4.
The dead-time counter is clocked on Q1 when:
• The DTPS bits are set to any of the following
• The PWM Time Base Prescale bits
The dead-time counter is clocked by a pair of Q
clocks when the PWM Time Base Prescale bits
are set to 1:1 (PTCKPS1:PTCKPS0 = 00,
F
the F
The dead-time counter is clocked using every
other Q clock, depending on the two LSbs in the
Duty Cycle registers:
• If the PWM duty cycle match occurs on Q1 or
• If the PWM duty cycle match occurs on Q2 or
When the DTPS1:DTPS0 bits are set to any of
the other dead-time prescaler settings (i.e.,
F
base prescaler is set to 1:1, the dead-time
counter is clocked by the Q clock corresponding
to the Q clocks on which the PWM duty cycle
match occurs.
OSC
OSC
dead-time prescaler settings: F
F
(PTCKPS) are set to any of the following
prescale ratios: F
Q3, then the dead-time counter is clocked
using every Q1 and Q3.
Q4, then the dead-time counter is clocked
using every Q2 and Q4.
OSC
OSC
/4) and the dead-time counter is clocked by
/4, F
DECREMENTING THE DEAD-TIME
COUNTER
/8, F
/2 (DTPS1:DTPS0 = 00).
R/W-0
OSC
DT2
OSC
/8 or F
/16
© 2007 Microchip Technology Inc.
OSC
OSC
x = Bit is unknown
/16, F
R/W-0
/16) and the PWM time
DT1
OSC
OSC
/64, F
/4,
OSC
R/W-0
DT0
/256
bit 0

Related parts for PIC18F2331-E/SP