PIC18LF4331-I/P Microchip Technology, PIC18LF4331-I/P Datasheet - Page 185
![IC PIC MCU FLASH 4KX16 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC18LF4331-I/P
Manufacturer Part Number
PIC18LF4331-I/P
Description
IC PIC MCU FLASH 4KX16 40DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC18F2331-ISO.pdf
(392 pages)
4.PIC18F2331-ISO.pdf
(8 pages)
5.PIC18F2331-ISO.pdf
(6 pages)
6.PIC18F2331-ISO.pdf
(16 pages)
7.PIC18LF2331-ISO.pdf
(4 pages)
8.PIC18LF2331-ISO.pdf
(40 pages)
9.PIC18F4331-EP.pdf
(400 pages)
Specifications of PIC18LF4331-I/P
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
36
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 9x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Controller Family/series
PIC18
No. Of I/o's
36
Eeprom Memory Size
256Byte
Ram Memory Size
768Byte
Cpu Speed
40MHz
No. Of Timers
4
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF4331-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18LF4331-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
- PIC16F616T-ISL PDF datasheet
- PIC16F818-ISO PDF datasheet #2
- PIC18F2331-ISO PDF datasheet #3
- PIC18F2331-ISO PDF datasheet #4
- PIC18F2331-ISO PDF datasheet #5
- PIC18F2331-ISO PDF datasheet #6
- PIC18LF2331-ISO PDF datasheet #7
- PIC18LF2331-ISO PDF datasheet #8
- PIC18F4331-EP PDF datasheet #9
- Current page: 185 of 392
- Download datasheet (4Mb)
18.5
The PWM period is defined by the PTPER register pair
(PTPERL and PTPERH). The PWM period has 12-bit
resolution by combining 4 LSBs of PTPERH and 8 bits
of PTPERL. PTPER is a double-buffered register used
to set the counting period for the PWM time base.
The PTPER register contents are loaded into the
PTPER register at the following times:
• Free-Running and Single-Shot modes: When the
• Continuous Up/Down Count modes: When the
The PWM period can be calculated from the following
formulas:
EQUATION 18-1:
EQUATION 18-2:
The PWM frequency is the inverse of period; or:
EQUATION 18-3:
2010 Microchip Technology Inc.
PTMR register is reset to zero after a match with
the PTPER register.
PTMR register is zero. The value held in the
PTPER register is automatically loaded into the
PTPER register when the PWM time base is
disabled (PTEN = 0).
Figure 18-10
of the PTPER register are loaded into the actual
PTPER register.
PWM Period
T
T
PWM Frequency =
PWM
PWM
indicate the times when the contents
=
=
(PTPER + 1) x PTMRPS
(2 x PTPER) x PTMRPS
PWM PERIOD FOR
FREE-RUNNING MODE
PWM PERIOD FOR
UP/DOWN COUNT MODE
PWM FREQUENCY
Figure 18-9
F
F
OSC
OSC
PWM Period
4
/4
1
and
PIC18F2331/2431/4331/4431
The maximum resolution (in bits) for a given device
oscillator and PWM frequency can be determined from
the following formula:
EQUATION 18-4:
The PWM resolutions and frequencies are shown for a
selection of execution speeds and PTPER values in
Table
calculated
Center-Aligned mode, the PWM frequencies will be
approximately one-half the values indicated in this
table.
TABLE 18-2:
Note:
40 MHz
40 MHz
40 MHz
40 MHz
40 MHz
40 MHz
40 MHz
40 MHz
40 MHz
25 MHz
25 MHz
25 MHz
10 MHz
10 MHz
10 MHz
5 MHz
5 MHz
5 MHz
4 MHz
4 MHz
4 MHz
F
OSC
18-2. The PWM frequencies in
For center-aligned operation, PWM frequencies
will be approximately 1/2 the value indicated in
the table.
MIPS
for
6.25
6.25
6.25
1.25
1.25
1.25
PWM Frequency = 1/T
2.5
2.5
2.5
10
10
10
10
10
10
10
10
10
1
1
1
Resolution =
Edge-Aligned
EXAMPLE PWM FREQUENCIES
AND RESOLUTIONS
PTPER
0FFFh
07FFh
03FFh
01FFh
0FFFh
03FFh
0FFFh
03FFh
0FFFh
03FFh
0FFFh
03FFh
Value
FFh
FFh
7Fh
3Fh
1Fh
0Fh
FFh
FFh
FFh
PWM RESOLUTION
log
Resolution
log(2)
14 bits
13 bits
12 bits
11 bits
10 bits
14 bits
12 bits
10 bits
14 bits
12 bits
10 bits
14 bits
12 bits
10 bits
14 bits
12 bits
10 bits
PWM
9 bits
8 bits
7 bits
6 bits
F
F
PWM
PWM
OSC
DS39616D-page 185
PWM
Table 18-2
mode.
Frequency
156.2 kHz
312.5 kHz
19.5 kHz
39.0 kHz
78.1 kHz
24.4 kHz
625 kHz
2.4 kHz
4.9 kHz
9.8 kHz
1.5 kHz
6.1 kHz
2.4 kHz
9.8 kHz
1.2 kHz
4.9 kHz
3.9 kHz
976 Hz
610 Hz
305 Hz
244 Hz
PWM
For
are
Related parts for PIC18LF4331-I/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: