TMP91C824
91C824-180
3.11.1
Analog/Digital converter registers
The A/D converter is controlled by the two A/D mode control registers: ADMOD0 and ADMOD1. The
A/D conversion results are stored in 8 kinds of A/D conversion data Upper and Lower registers:
ADREG04H/L, ADREG15H/L, ADREG26H/L and ADREG37H/L.
Figure 3.11.2 shows the registers related to the A/D converter.
A/D Mode Control Register 0
7
6
5
4
3
2
1
0
Bit symbol
EOCF
ADBF
−
−
ITM0
REPEAT
SCAN
ADS
Read/Write
R
R/W
After Reset
0
0
0
0
0
0
0
0
Function
A/D
Conversion
End flag
0: conversion
in progress
1: conversion
complete
A/D
Conversion
Busy flag
0: conversion
stopped
1: Conversion
in progress
Note:
Always
fixed to 0
Note:
Always
fixed to 0
Interrupt
specification
in conversion
channel fixed
repeat mode
0: every
conversion
1: every fourth
conversion
Repeat mode
specification
0: Single
Conversion
1: Repeat
Conversion
Mode
Scan mode
specification
0: Conversion
Channel
Fixed Mode
1: Conversion
Channel
Scan Mode
A/D
conversion
start
0: Don’t care
1: start
conversion
Always 0
when read
A/D conversion start
0
Don’t care
1
Start A/D conversion
(note): Always read as 0.
A/D scan mode setting
0
A/D Conversion Channel Fixed Mode
1
A/D Conversion Channel Scan Mode
A/D repeat mode setting
0
A/D Single Conversion Mode
1
A/D Repeat Conversion Mode
Specify A/D conversion interrupt for Channel Fixed
Repeat Conversion Mode
Channel Fixed Repeat Conversion Mode
<SCAN>
=
“0”, <REPEAT>
=
“1”
0
Generates interrupt every conversion.
1
Generates interrupt every fourth conversion.
A/D Conversion Busy flag
0
A/D conversion stopped
1
A/D conversion in progress
A/D Conversion End flag
0
Before or during A/D conversion
1
A/D conversion complete
ADMOD0
(02B0H)
Figure 3.11.2 A/D Converter Related Register