PIC18F4431-I/P Microchip Technology, PIC18F4431-I/P Datasheet - Page 248
![IC PIC MCU FLASH 8KX16 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC18F4431-I/P
Manufacturer Part Number
PIC18F4431-I/P
Description
IC PIC MCU FLASH 8KX16 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
(40 pages)
8.PIC18F2431-ISP.pdf
(396 pages)
Specifications of PIC18F4431-I/P
Program Memory Type
FLASH
Program Memory Size
16KB (8K x 16)
Package / Case
40-DIP (0.600", 15.24mm)
Core Processor
PIC
Core Size
8-Bit
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
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 9x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
768 B
Interface Type
EUSART/I2C/SPI/SSP
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
36
Number Of Timers
4
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 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, ICE4000, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
9-ch x 10-bit
Package
40PDIP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP400 - DEVICE ADAPTER 18F4220 PDIP 40LD444-1001 - DEMO BOARD FOR PICMICRO MCUACICE0206 - ADAPTER MPLABICE 40P 600 MIL
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18F4431-I/P
Manufacturer:
ABB
Quantity:
240
Company:
Part Number:
PIC18F4431-I/P
Manufacturer:
MICROCHIP
Quantity:
769
Part Number:
PIC18F4431-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHIP
Quantity:
1 400
Company:
Part Number:
PIC18F4431-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
converts the selected Group B channel. The second
PIC18F2331/2431/4331/4431
21.1.3
The ACMOD<1:0> bits control the sequencing of the
A/D conversions. When ACSCH = 0, the A/D is
configured to sample and convert a single channel.
The ACMOD bits select which group to perform the
conversions and the GxSEL<1:0> bits select which
channel in the group is to be converted. If Single-Shot
mode is enabled, the A/D interrupt flag will be set after
the channel is converted. If Continuous Loop mode is
enabled, the A/D interrupt flag will be set according to
the ADRS<1:0> bits.
When ACSCH = 1, multiple channel sequencing is
enabled and two submodes can be selected. The first
mode is Sequential mode with two settings. The first set-
ting is called SEQM1, and first samples and converts the
selected Group A channel, and then samples and
mode is called SEQM2, and it samples and converts a
Group A channel, Group B channel, Group C channel
and finally, a Group D channel.
The second multiple channel sequencing submode is
Simultaneous Sampling mode. In this mode, there are
also two settings. The first setting is called STNM1, and
uses the two sample and hold circuits on the A/D
module. The selected Group A and B channels are
simultaneously sampled and then the Group A channel
is converted followed by the conversion of the Group B
channel. The second setting is called STNM2, and
starts the same as STNM1, but follows it with a
simultaneous sample of Group C and D channels. The
A/D module will then convert the Group C channel
followed by the Group D channel.
21.1.4
The PIC18F2331/2431/4331/4431 devices are capable
of triggering conversions from many different sources.
The same method used by all other microcontrollers of
setting the GO/DONE bit still works. The other trigger
sources are:
• RC3/INT0 Pin
• Timer5 Overflow
• Input Capture 1 (IC1)
• CCP2 Compare Match
• Power Control PWM Rising Edge
These triggers are enabled using the SSRC<4:0> bits
(ADCON3<4:0>). Any combination of the five sources
can trigger a conversion by simply setting the corre-
sponding bit in ADCON3. When the trigger occurs, the
GO/DONE bit is automatically set by the hardware and
then cleared once the conversion completes.
DS39616D-page 248
CONVERSION SEQUENCING
TRIGGERING A/D CONVERSIONS
21.1.5
The following steps should be followed to initialize the
A/D module:
1.
2.
3.
4.
5.
6.
Configure the A/D module:
a)
b)
c)
d)
e)
Configure the A/D interrupt (if required):
a)
b)
c)
d)
e)
f)
Turn on ADC:
a)
b)
Start the sample/conversion sequence:
a)
b)
Wait
complete using one of the following options:
a)
b)
c)
Read the A/D results, clear the ADIF flag,
reconfigure the trigger.
Configure the analog pins, voltage reference
and digital I/O.
Select the A/D input channels.
Select the A/D Auto-Conversion mode
(Single-Shot or Continuous Loop).
Select the A/D conversion clock.
Select the A/D conversion trigger.
Set the GIE bit.
Set the PEIE bit.
Set the ADIE bit.
Clear the ADIF bit.
Select the A/D trigger setting.
Select the A/D interrupt priority.
Set the ADON bit in the ADCON0 register.
Wait the required power-up setup time,
about 5-10 s.
Sample for a minimum of 2 T
the conversion by setting the GO/DONE bit.
The GO/DONE bit is set by the user in
software or by the module if initiated by a
trigger.
If T
then setting the GO/DONE bit starts a
sample period of the T
a conversion.
Poll for the GO/DONE bit to be cleared if in
Single-Shot mode.
Wait for the A/D Interrupt Flag (ADIF) to be
set.
Poll for the BFEMT bit to be cleared to
signify that at least the first conversion has
completed.
A/D MODULE INITIALIZATION
STEPS
for
ACQ
is assigned a value (multiple of T
A/D
conversion/conversions
2010 Microchip Technology Inc.
ACQ
value, then starts
AD
and start
AD
to
),