27.4.1 ADCON0
Note:
- Available on 20-pin devices only (PIC16F15245).
Name: | ADCON0 |
Offset: | 0x09D |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CHS[5:0] | GO | ON | |||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W/HS/HC | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 7:2 – CHS[5:0] Analog Channel Select
CHS | Selected Channel |
---|---|
111111-011111 | Reserved |
011110 | FVR Buffer 1 |
011101-011100 | Reserved |
011011 | VSS |
011010-010110 | Reserved |
010101 | RC5 |
010100 | RC4 |
010011 | RC3 |
010010 | RC2 |
010001-010000 | Reserved |
001111 | RB7(1) |
001110 | RB6(1) |
001101 | RB5(1) |
001100-000110 | Reserved |
000101 | RA5 |
000100 | RA4 |
000011 | Reserved |
000010 | RA2 |
000001 | RA1 |
000000 | RA0 |
Bit 1 – GO ADC Conversion Status
Value | Description |
---|---|
1 | ADC conversion cycle in progress. Setting this bit starts an ADC conversion cycle. This bit is automatically cleared by hardware when the ADC conversion has completed. |
0 | ADC conversion completed/not in progress |
Bit 0 – ON ADC Enable
Value | Description |
---|---|
1 | ADC is enabled |
0 | ADC is disabled an consumes no operating current |