PIC18F2331-I/SP Microchip Technology, PIC18F2331-I/SP Datasheet - Page 247

IC PIC MCU FLASH 4KX16 28DIP

PIC18F2331-I/SP

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

Specifications of PIC18F2331-I/SP

Program Memory Type
FLASH
Program Memory Size
8KB (4K x 16)
Package / Case
28-DIP (0.300", 7.62mm)
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
24
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 ~ 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
24
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, ICE4000, ICE2000, DM183021, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
5-ch x 10-bit
Package
28SPDIP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
21.1
The A/D Converter has two types of conversions, two
modes of operation and eight different Sequencing
modes. These features are controlled by the ACONV
bit (ADCON0<5>), ACSCH bit (ADCON0<4>) and
ACMOD<1:0> bits (ADCON0<3:2>). In addition, the
A/D channels are divided into four groups as defined
in the ADCHS register.
sequence configurations as controlled by the ACSCH
and ACMOD<1:0> bits.
21.1.1
Two types of conversions exist in the high-speed 10-bit
A/D Converter module that are selected using the
ACONV bit. Single-Shot mode allows a single conversion
or sequence to be enabled when ACONV = 0. At the end
of the sequence, the GO/DONE bit will be automatically
cleared and the interrupt flag, ADIF, will be set. When
using
Simultaneous mode, STNM2, acquisition time must be
used to ensure proper conversion of the analog input
signals.
TABLE 21-1:
 2010 Microchip Technology Inc.
Multi-Channel Sequential Mode 1
(SEQM1)
Multi-Channel Sequential Mode 2
(SEQM2)
Multi-Channel Simultaneous Mode 1
(STNM1)
Multi-Channel Simultaneous Mode 2
(STNM2)
Single Channel Mode 1 (SCM1)
Single Channel Mode 2 (SCM2)
Single Channel Mode 3 (SCM3)
Single Channel Mode 4 (SCM4)
Single-Shot
Configuring the A/D Converter
CONVERSION TYPE
Mode
AUTO-CONVERSION SEQUENCE CONFIGURATIONS
mode
Table 21-1
and
configured
ACSCH ACMOD<1:0>
shows the
1
1
1
1
0
0
0
0
PIC18F2331/2431/4331/4431
for
00
01
10
11
00
01
10
11
Continuous Loop mode allows the defined sequence to
be executed in a continuous loop when ACONV = 1. In
this mode, either the user can trigger the start of
conversion by setting the GO/DONE bit, or one of the
A/D triggers can start the conversion. The interrupt flag,
ADIF, is set based on the configuration of the bits,
ADRS<1:0> (ADCON3<7:6>). In Simultaneous modes,
STNM1 and STNM2 acquisition time must be config-
ured to ensure proper conversion of the analog input
signals.
21.1.2
The ACSCH bit (ADCON0<4>) controls how many
channels are used in the configured sequence. When
clear, the A/D is configured for single channel conver-
sion and will convert the group selected by the
ACMOD<1:0> bits and the channel selected by the
GxSEL<1:0> bits (ADCHS register). When ACSCH = 1,
the A/D is configured for multiple channel conversion
and the sequence is defined by ACMOD<1:0>.
Groups A and B are sampled and converted
sequentially.
Groups A, B, C and D are sampled and converted
sequentially.
Groups A and B are sampled simultaneously and
converted sequentially.
Groups A and B are sampled simultaneously, then
converted sequentially. Then, Group C and D are
sampled simultaneously, then converted
sequentially.
Group A is sampled and converted.
Group B is sampled and converted.
Group C is sampled and converted.
Group D is sampled and converted.
CONVERSION MODE
Description
DS39616D-page 247

Related parts for PIC18F2331-I/SP