PIC18F1230-I/SO Microchip Technology, PIC18F1230-I/SO Datasheet - Page 129

IC PIC MCU FLASH 2KX16 18SOIC

PIC18F1230-I/SO

Manufacturer Part Number
PIC18F1230-I/SO
Description
IC PIC MCU FLASH 2KX16 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F1230-I/SO

Core Size
8-Bit
Program Memory Size
4KB (2K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
16
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
Controller Family/series
PIC18
No. Of I/o's
16
Eeprom Memory Size
128Byte
Ram Memory Size
256Byte
Cpu Speed
40MHz
No. Of Timers
2
Package
18SOIC W
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
16
Interface Type
USART
On-chip Adc
4-chx10-bit
Number Of Timers
2
Processor Series
PIC18F
Core
PIC
Data Ram Size
256 B
Maximum Clock Frequency
40 MHz
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DV164136
Minimum Operating Temperature
- 40 C
Height
2.31 mm
Length
11.53 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
4.2 V
Width
7.49 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F1230-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
14.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 buffer 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 14-1:
EQUATION 14-2:
The PWM frequency is the inverse of period; or
EQUATION 14-3:
 2009 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
buffer is automatically loaded into the PTPER
register when the PWM time base is disabled
(PTEN = 0). Figure 14-9 and Figure 14-10 indicate
the times when the contents of the PTPER buffer
are loaded into the actual PTPER register.
PWM Period
PWM Frequency =
T
T
PWM
PWM
=
=
(PTPER + 1) x PTMRPS
(2 x PTPER) x PTMRPS
PWM PERIOD FOR
FREE-RUNNING MODE
PWM PERIOD FOR
CONTINUOUS UP/DOWN
COUNT MODE
PWM FREQUENCY
F
F
OSC
PWM Period
OSC
4
/4
1
The maximum resolution (in bits) for a given device
oscillator and PWM frequency can be determined from
the following formula:
EQUATION 14-4:
The PWM resolutions and frequencies are shown for a
selection of execution speeds and PTPER values in
Table 14-2. The PWM frequencies in Table 14-2 are
calculated for Edge-Aligned PWM mode. For Center-
Aligned
approximately one-half the values indicated in this
table.
TABLE 14-2:
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
Note:
5 MHz
5 MHz
5 MHz
4 MHz
4 MHz
4 MHz
F
OSC
PIC18F1230/1330
mode,
For
frequencies will be approximately 1/2 the
value indicated in the table.
MIPS
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 =
EXAMPLE PWM
FREQUENCIES AND
RESOLUTIONS
center-aligned
the
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
PWM
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
frequencies
F
F
PWM
OSC
operation,
DS39758D-page 129
PWM
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
will
PWM
be

Related parts for PIC18F1230-I/SO