PIC14000T-20I/SO Microchip Technology, PIC14000T-20I/SO Datasheet - Page 57
![IC MCU OTP 4KX14 A/D 28SOIC](/photos/6/59/65909/150-28-soic_sml.jpg)
PIC14000T-20I/SO
Manufacturer Part Number
PIC14000T-20I/SO
Description
IC MCU OTP 4KX14 A/D 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 14r
Datasheets
1.PIC16LF627A-IP.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC14000-04SO.pdf
(153 pages)
4.PIC14000-04SO.pdf
(5 pages)
Specifications of PIC14000T-20I/SO
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C
Peripherals
POR, Temp Sensor, WDT
Number Of I /o
20
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 6 V
Data Converters
Slope A/D
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SOIC (7.5mm Width)
Data Bus Width
8 bit
Data Ram Size
192 B
Interface Type
SPI, UART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
22
Number Of Timers
1
Operating Supply Voltage
2.7 V to 6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
On-chip Adc
14 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
Details
8.0
8.1
The PIC14000 includes analog components to create a
slope A/D converter including:
• Comparator
• 4-bit programmable current source
• 16-channel analog mux
• 16-bit timer with capture register
Each channel is converted independently by means of
a slope conversion method using a single precision
comparator. The programmable current source feeds
an external 0.1 F (nominal) capacitor to generate the
ramp voltage used in the conversion.
8.2
These are the steps to perform data conversion:
• Clear REFOFF (SLPCON<5>) and ADOFF
• Initialize ADCON1<7:4> to initialize the program-
• Set ADRST (ADCON0<1>), for a minimum of 200
• The A/D timer (ADTMR) increments from 0000h
• To start a conversion, clear ADRST through soft-
• When the ramp voltage exceeds the analog input,
• This transition causes a capture event and copies
• An interrupt is generated to the CPU if enabled.
1996 Microchip Technology Inc.
(SLPCON<0>) bits to enable the A/D module.
mable current source.
capacitor to ground.
to FFFFh and must be initialized before each con-
version.
ware, it will allow the timer to begin counting and
the ramp capacitor to begin charging.
the comparator output changes from high to low.
the current A/D timer value into the 16-bit capture
register.
Note:
s to stop the timer and fully discharge the ramp
ANALOG MODULES FOR A/D
CONVERSION
Overview
Conversion Process
The A/D timer continues to run following a
capture event.
This document was created with FrameMaker 4 0 4
Preliminary
The maximum A/D timer count is 65,536. It can be
clocked by the on-chip or external oscillator. At a 4 MHz
oscillation frequency, the maximum conversion time is
16.38 ms for a full count. A typical conversion should
complete before full-count is reached. A timer overflow
flag is set once the timer rolls over (FFFFh to 0000h),
and an interrupt is sent to the CPU, if enabled.
End-user calibration is simplified or eliminated by mak-
ing use of the on-chip EPROM. Internal component val-
ues are measured at factory final test and stored in the
memory for use by the application firmware.
Periodic conversion cycles should be performed on the
bandgap
Section 9.0) to compensate for A/D component drift.
Measurements for the reference voltage count are
equated to the voltage value stored into EPROM during
calibration. All other channel measurements are
compensated for by ratioing the actual count with the
bandgap count and multiplying by the bandgap voltage
value stored in EPROM. Since all measurements are
relative to the reference, offset voltages inherent in the
comparator are cancelled out. See AN624, “PIC14000
A/D Theory and Implementation” for further details of
A/D operation.
The analog components used in the conversion and
the A/D timer can be disabled during idle periods for
maximum power savings. Power-saving can be
achieved via software and/or hardware control
(Section 10.8).
8.3
The A/D timer (ADTMR) is comprised of a 16-bit up
timer, which is incremented every oscillator cycle.
ADTMR is reset to 0000h by a power-up reset; other-
wise the software must initialize it after each conver-
sion. A separate 16-bit capture register (ADCAP) is
used to capture the ADTMR count if an A/D capture
event occurs (see below). Both the A/D timer and cap-
ture register are readable and writable. The low byte of
the A/D timer (ADTMRL) is accessed at location 0Eh
while the high byte (ADTMRH) is accessed at location
0Fh. Similarly, the low byte of the A/D capture register
(ADCAP) is accessed at location 15h, and the high byte
is located at 16h.
A/D Timer (ADTMR) Module
and
slope
references
PIC14000
DS40122B-page 57
(described
in