PIC10F220EOT MICROCHIP [Microchip Technology], PIC10F220EOT Datasheet - Page 32

no-image

PIC10F220EOT

Manufacturer Part Number
PIC10F220EOT
Description
6-Pin, 8-Bit Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC10F220/222
7.7
The ADRES register contains the results of the last
conversion. These results are present during the sam-
pling period of the next analog conversion process.
After the sampling period is over, ADRES is cleared (=
0). A ‘leading one’ is then right shifted into the ADRES
to serve as an internal conversion complete bit. As
each bit weight, starting with the MSb, is converted, the
leading one is shifted right and the converted bit is
stuffed into ADRES. After a total of 9 right shifts of the
‘leading one’ have taken place, the conversion is com-
plete; the ‘leading one’ has been shifted out and the
GO/DONE bit is cleared.
If the GO/DONE bit is cleared in software during a con-
version, the conversion stops. The data in ADRES is
the partial conversion result. This data is valid for the bit
weights that have been converted. The position of the
‘leading one’ determines the number of bits that have
been converted. The bits that were not converted
before the GO/DONE was cleared are unrecoverable.
REGISTER 7-1:
DS41270B-page 30
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7
bit 6
bit 5-4
bit 3-2
bit 1
Note 1:
R/W-1
ANS1
2:
3:
4:
Analog Conversion Result
Register
When the ANS bits are set, the channel(s) selected are automatically forced into analog mode regardless of the pin
function previously defined.
CHS<1:0> bits default to 11 after any Reset.
If the ADON bit is clear, the GO/DONE bit cannot be set.
The ANS<1:0> bits are active regardless of the condition of ADON
ANS1: ADC Analog Input Pin Select bit
1 = GP1/AN1 configured for analog input
0 = GP1/AN1 configured as digital I/O
ANS0: ADC Analog Input Pin Select bit
1 = GP0/AN0 configured as an analog input
0 = GP0/AN0 configured as digital I/O
Unimplemented: Read as ‘0’
CHS<1:0>: ADC Channel Select bits
00 = Channel 00 (GP0/AN0)
01 = Channel 01 (GP1/AN1)
1X = 0.6V absolute Voltage reference
GO/DONE: ADC Conversion Status bit
1 = ADC conversion in progress. Setting this bit starts an ADC conversion cycle. This bit is automatically cleared
0 = ADC conversion completed/not in progress. Manually clearing this bit while a conversion is in process
R/W-1
ANS0
terminates the current conversion.
by hardware when the ADC is done converting.
ADCON0 REGISTER (ADDRESS 07h)
W = Writable bit
‘1’ = Bit is set
U-0
(3)
U-0
Preliminary
(4)
(1), (2)
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
CHS1
7.8
The function of the Internal Absolute Voltage Refer-
ence is to provide a constant voltage for conversion
across the devices V
verter is ratiometric with the conversion reference
voltage being V
0.6V (typical) will result in a result based on the voltage
applied to V
of this reference across the V
approximated by: Conversion Result = 0.6V/(V
Note:
Internal Absolute Voltage
Reference
The actual value of the Absolute Voltage
Reference varies with temperature and
part-to-part variation. The conversion is
also susceptible to analog noise on the
V
ing or sourcing of current on the I/O pins.
DD
DD
R/W-1
CHS0
of the device. The result of conversion
DD
pin and noise generated by the sink-
. Converting a constant voltage of
DD
© 2006 Microchip Technology Inc.
supply range. The A/D Con-
x = Bit is unknown
GO/DONE
R/W-0
DD
range can be
ADON
R/W-0
DD
/256)
bit 0

Related parts for PIC10F220EOT