
UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
174 of 268
NXP Semiconductors
UM10413
MPT612 User manual
[1]
Reset value reflects the data stored in used bits only. It does not include the content of reserved bits.
19.4.1 A/D Control register (AD0CR - 0xE003 4000)
Table 160: A/D Control register (AD0CR - address 0xE003 4000) bit description
Bit
Symbol
Value
Description
Reset
value
7:0
SEL
-
selects which of the AD7:0 pins is (are) to be sampled and converted. For AD0, bit 0
selects pin AD0, and bit 7 selects pin AD7. In software-controlled mode, only one of
these bits must be logic 1. In hardware scan mode, any value containing 1 to 8 1s. All 0s
is equivalent to 0x01.
0x01
15:8
CLKDIV
-
APB clock (PCLK) is divided by (this value plus one) to produce the A/D converter clock,
which must be less than or equal to 4.5 MHz. Typically, software must program the
smallest value in this field that yields a clock of 4.5 MHz or slightly less, but in certain
cases (such as a high-impedance analog source) a slower clock may be desirable.
0
16
BURST
1
ADC repeats conversions at the rate selected by CLKS field, scanning (if necessary)
through the pins selected by 1s in the SEL field. The first conversion after the start
corresponds to the least-significant 1 in the SEL field, then higher numbered 1 bits
(pins) if applicable. Repeated conversions can be terminated by clearing this bit, but the
conversion in progress when this bit is cleared is completed.
Remark:
START bits must be 000 when BURST = logic 1 or conversions will not start.
0
0
conversions are software controlled and require 11 clocks
19:17
CLKS
this field selects the number of clocks used for each conversion in Burst mode, and the
number of accuracy bits of the result in the RESULT bits of ADDR, between 11 clocks
(10 bits) and 4 clocks (3 bits)
000
000
11 clocks/10 bits
001
10 clocks/9bits
010
9 clocks/8 bits
011
8 clocks/7 bits
100
7 clocks/6 bits
101
6 clocks/5 bits
110
5 clocks/4 bits
111
4 clocks/3 bits
20
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a
21
PDN
1
ADC is operational
0
0
ADC is in power-down mode
23:22
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a