![Sino Wealth SH69K55A Скачать руководство пользователя страница 44](http://html1.mh-extra.com/html/sino-wealth/sh69k55a/sh69k55a_manual_1283061044.webp)
SH69P55A/K55A
44
Systems Register for ADC Data:
Address Bit
3
Bit
2
Bit 1
Bit 0
R/W
Remarks
$3AD
-
-
A1
A0
R
ADC data low nibble register
$3AE
A5
A4
A3
A2
R
ADC data middle nibble register
$3AF
A9
A8
A7
A6
R
ADC data high nibble register
Systems Register:
Address Bit
3
Bit
2
Bit 1
Bit 0
R/W
Remarks
$2F
GO/ DONE TADC1 TADC0
- R/W
Bit2-1: A/D Conversion Time control register
Bit3: ADC startup/status flag register
X
0
0
X
R/W A/D Conversion Time = 13 t
OSC
*
X
0
1
X
R/W A/D Conversion Time = 52 t
OSC
*
X
1
0
X
R/W A/D Conversion Time = 208 t
OSC
*
X
1
1
X
R/W A/D Conversion Time = 416 t
OSC
*
0 X X X
R/W A/D
conversion
is
complete or not in processing
1 X X X
R/W Set 1 to start A/D conversion, keep GO/ DONE = 1
when A/D conversion is in processing
*: t
OSC
is the OSC clock. If the PLL is enable, t
OSC
is the PLL frequency otherwise t
OSC
is the OSC clock.
A/D Coverter
V
DD
PORTG.2
/V
REF
Input voltage
V
REF
PORTB.0/AN0
PORTB.1/AN1
PORTB.2/AN2
PORTB.3/AN3
PORTJ.0/AN4
PORTJ.1/AN5
PORTJ.2/AN6
PORTJ.3/AN7
0000
0001
0010
0011
0100
0101
0110
0111
CH3:CH0
V
REFS
PORTG.3/AN8
1xx0
PORTG.1/AN9
1xx1
A/D Converter Block Diagram
Notes:
- Select A/D Conversion Time, make sure that A/D Conversion Time
≧
25
µ
s.
- When the A/D conversion is complete, an ADC interrupt occurs (if the ADC interrupt is enabled).
- The analog input channels must have their corresponding PXCR (X = B, J, G) bits selected as inputs.
- If select I/O port as analog input, the I/O functions and pull-high resistor are disabled.
- Bit GO/ DONE is automatically cleared by hardware when the A/D conversion is complete.
- Clearing the GO/ DONE bit during a conversion will abort the current conversion.
- The A/D result register will NOT be updated with the partially completed A/D conversion sample.
- 4tosc wait is required before the next acquisition is started.
- The ADC could keep on working in the HALT mode, and would stop automatic while executing “STOP” instruction.
- The ADC could wake-up the device from the HALT mode (if the ADC interrupt is enabled).