|
HD6433802H Datasheet, PDF (304/435 Pages) Hitachi Semiconductor – Single-Chip Microcomputer | |||
|
◁ |
12.2 Register Descriptions
12.2.1 A/D Result Registers (ADRRH, ADRRL)
Bit
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
ADR9 ADR8 ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0 â â â â â â
Initial value Not Not Not Not Not Not Not Not Not Not â â â â â â
fixed fixed fixed fixed fixed fixed fixed fixed fixed fixed
Read/Write R R R R R R R R R R â â â â â â
ADRRH
ADRRL
ADRRH and ADRRL together comprise a 16-bit read-only register for holding the results of
analog-to-digital conversion. The upper 8 bits of the data are held in ADRRH, and the lower 2
bits in ADRRL.
ADRRH and ADRRL can be read by the CPU at any time, but the ADRRH and ADRRL values
during A/D conversion are not fixed. After A/D conversion is complete, the conversion result is
stored as 10-bit data, and this data is held until the next conversion operation starts.
ADRRH and ADRRL are not cleared on reset.
12.2.2 A/D Mode Register (AMR)
Bit
7
6
5
CKS
â
â
Initial value
0
0
1
Read/Write
R/W
R/W
â
4
3
2
1
0
â
CH3 CH2 CH1 CH0
1
0
0
0
0
â
R/W
R/W
R/W
R/W
AMR is an 8-bit read/write register for specifying the A/D conversion speed, external trigger
option, and the analog input pins.
Upon reset, AMR is initialized to H'30.
286
|
▷ |