PIC12C672-10/SM Microchip Technology, PIC12C672-10/SM Datasheet - Page 396

no-image

PIC12C672-10/SM

Manufacturer Part Number
PIC12C672-10/SM
Description
IC MCU OTP 2KX14 A/D 8-SOIJ
Manufacturer
Microchip Technology
Series
PIC® 12Cr
Datasheets

Specifications of PIC12C672-10/SM

Core Processor
PIC
Core Size
8-Bit
Speed
10MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
8-SOIC (5.3mm Width), 8-SOP, 8-SOEIAJ
For Use With
XLT08SO-1 - SOCKET TRANSITION 8SOIC 150/208AC164312 - MODULE SKT FOR PM3 16SOICISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1048 - ADAPTER 8-SOIC TO 8-DIP309-1047 - ADAPTER 8-SOIC TO 8-DIPAC124001 - MODULE SKT PROMATEII 8DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Other names
PIC12C672-10/SMR
PIC12C672-10/SMR
PICmicro MID-RANGE MCU FAMILY
21.7.1
21.8
DS31021A-page 21-12
Faster Conversion - Lower Resolution Trade-off
A/D Operation During Sleep
Not all applications require a result with 8-bits of resolution, but may instead require a faster con-
version time. The A/D module allows users to make the trade-off of conversion speed to resolu-
tion. Regardless of the resolution required, the acquisition time is the same. To speed up the
conversion, the clock source of the A/D module may be switched so that the T
the minimum specified time (see the applicable electrical specification). Once the T
lates the minimum specified time, all the following A/D result bits are not valid (see A/D Conver-
sion Timing in the Electrical Specifications section). The clock sources may only be switched
between the three oscillator versions (cannot be switched from/to RC). The equation to deter-
mine the time before the oscillator can be switched is as follows:
Since the T
ware loop, etc.) to determine when the A/D oscillator may be changed.
comparison of time required for a conversion with 4-bits of resolution, versus the 8-bit resolution
conversion. The example is for devices operating at 20 MHz (The A/D clock is programmed for
32T
The 2T
values.
Example 21-3:
The A/D module can operate during SLEEP mode. This requires that the A/D clock source be set
to RC (ADCS1:ADCS0 = 11). When the RC clock source is selected, the A/D module waits one
instruction cycle before starting the conversion. This allows the SLEEP instruction to be executed,
which eliminates all internal digital switching noise from the conversion. When the conversion is
completed the GO/DONE bit will be cleared, and the result loaded into the ADRES register. If the
A/D interrupt is enabled, the device will wake-up from SLEEP. If the A/D interrupt is not enabled,
the A/D module will then be turned off (to conserve power), although the ADON bit will remain
set.
When the A/D clock source is another clock option (not RC), a SLEEP instruction will cause the
present conversion to be aborted and the A/D module to be turned off, though the ADON bit will
remain set.
Turning off the A/D places the A/D module in its lowest current consumption state.
Note 1: A minimum T
T
T
T
AD
OSC
AD
Note:
Conversion time =
Where: N
OSC
+ N • T
2: If the full 8-bit conversion is required, the A/D clock source should not be changed.
OSC
), and assumes that immediately after 5T
AD
violates the minimum T
For the A/D module to operate in SLEEP, the A/D clock source must be set to RC
(ADCS1:ADCS0 = 11). To perform an A/D conversion in SLEEP, the GO/DONE bit
must be set, followed by the SLEEP instruction.
AD
is based from the device oscillator, the user must use some method (a timer, soft-
+ (10 - N)(2T
4-bit vs. 8-bit Conversion Times
=
AD
time of 1.6 s is required.
T
number of bits of resolution required.
AD
OSC
+ N • T
)
AD
AD
time since the last 4-bits will not be converted to correct
+ (10 - N)(2T
(MHz)
Freq.
20
20
20
AD
, the A/D clock is programmed for 2T
(1)
OSC
)
1.6 s
8.6 s
50 ns
4-bit
1997 Microchip Technology Inc.
Resolution
Example 21-3
AD
17.6 s
time violates
1.6 s
50 ns
8-bit
AD
time vio-
shows a
OSC
.

Related parts for PIC12C672-10/SM