Renesas PCA4738F-80A Bedienungsanleitung Seite 27

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 64
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 26
26
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
38C3 Group
A-D CONVERTER
The 38C3 group has a 10-bit A-D converter. The A-D converter per-
forms successive approximation conversion.
[A-D Conversion Register (AD)] 003316, 003416
One of these registers is a high-order register, and the other is a low-
order register. The high-order 8 bits of a conversion result is stored in
the A-D conversion register (high-order) (address 0034
16), and the
low-order 2 bits of the same result are stored in bit 7 and bit 6 of the
A-D conversion register (low-order) (address 0033
16).
During A-D conversion, do not read these registers.
[A-D Control Register (ADCON)] 003216
This register controls A-D converter. Bits 2 to 0 are analog input pin
selection bits. Bit 4 is an AD conversion completion bit and “0” during
A-D conversion. This bit is set to “1” upon completion of A-D conver-
sion.
A-D conversion is started by setting “0” in this bit.
[Comparison Voltage Generator]
The comparison voltage generator divides the voltage between AVSS
and VREF, and outputs the divided voltages.
[Channel Selector]
The channel selector selects one of the input ports P67/AN7–P60/
AN0 and inputs it to the comparator.
[Comparator and Control Circuit]
The comparator and control circuit compares an analog input volt-
age with the comparison voltage and stores the result in the A-D
conversion register. When an A-D conversion is completed, the con-
trol circuit sets the AD conversion completion bit and the AD conver-
sion interrupt request bit to “1.”
Fig. 26 Block diagram of A-D converter
Note that the comparator is constructed linked to a capacitor, so set
f(X
IN) to at least 500 kHz during A-D conversion. Use a CPU system
clock dividing the main clock X
IN as the internal system clock.
Fig. 25 Structure of A-D control register
AD conversion result stored bits
A-D conversion register (high-order)
(ADH: address 0034
16
)
b7
b0
Analog input pin selection bits
000: P6
0
/AN
0
001: P6
1
/AN
1
010: P6
2
/AN
2
011: P6
3
/AN
3
100: P6
4
/AN
4
101: P6
5
/AN
5
110: P6
6
/AN
6
111: P6
7
/AN
7
A-D control register
(ADCON: address 0032
16
)
AD conversion completion bit
0: Conversion in progress
1: Conversion completed
Not used (returns “0” when read)
b7 b0
Not used (returns “0” when read)
AD conversion result stored bits
A-D conversion register (low-order)
(ADL: address 0033
16
)
b7
b0
Not used (returns “0” when read)
Data bus
AV
SS
A-D interrupt request
b7 b0
3
P6
0
/AN
0
P6
1
/AN
1
P6
2
/AN
2
P6
3
/AN
3
P6
4
/AN
4
P6
5
/AN
5
P6
6
/AN
6
P6
7
/AN
7
A-D control register
Channel selector
Comparator
A-D control circuit
A-D conversion register (H)
A-D conversion register (L)
(Address 0034
16
)
(Address 0033
16
)
Resistor ladder
V
REF
Seitenansicht 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 63 64

Kommentare zu diesen Handbüchern

Keine Kommentare