Renesas M16C/6NK Technical Information Seite 233

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 412
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 232
Rev.2.10 Apr 14, 2006 page 209 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 16. A/D Converter
Figure 16.5 Registers ADCON0 and ADCON1 in Repeat Mode
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
RW
RW
RW
RW
RW
RW
RW
RW
SCAN0
SCAN1
MD2
BITS
VCUT
OPA0
OPA1
CKS1
0 1 : Repeat mode
(3)
0 : Software trigger
1 : ADTRG trigger
0 : A/D conversion disabled
1 : A/D conversion started
Refer to NOTE 2 for ADCON2
Register
Trigger select bit
A/D conversion start flag
Frequency select bit 0
Analog input pin select bits
A/D operating mode
select bits 0
A/D Control Register 0
(1)
b7 b6 b5 b4 b3 b2 b1 b0
Bit Symbol
Bit Name Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit Name Function
Bit Symbol
RW
Symbol Address After Reset
ADCON1 03D7h 00h
0 : 8-bit mode
1 : 10-bit mode
Set to 0 when repeat mode is
selected
1 : VREF connected
Refer to NOTE 2 for ADCON2
Register
Invalid in repeat modeA/D sweep pin select bits
8/10-bit mode select bit
VREF connect bit
(2)
A/D operating mode
select bit 1
External op-amp
connection mode bits
Frequency select bit 1
0 0 :
ANEX0 and ANEX1 are not used
0 1 : ANEX0 input is A/D converted
1 0 : ANEX1 input is A/D converted
1 1 :
External op-amp connection mode
b7 b6 b5 b4 b3 b2 b1 b0
A/D Control Register 1
(1)
Symbol After Reset
ADCON0
Address
03D6h 00000XXXb
b4 b3
b7 b6
0 0 0 : AN0 is selected
0 0 1 : AN1 is selected
0 1 0 : AN2 is selected
0 1 1 : AN3 is selected
1 0 0 : AN4 is selected
1 0 1 : AN5 is selected
1 1 0 : AN6 is selected
1 1 1 : AN7 is selected
(2) (3)
b2 b1 b0
0
10
1
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be undefined.
2. If the VCUT bit is reset from 0 (VREF unconnected) to 1 (VREF connected), wait for 1 µs or more before
starting A/D conversion.
NOTES:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be undefined.
2. AN0_0 to AN0_7, and AN2_0 to AN2_7 can be used in same way as AN0 to AN7. Use bits ADGSEL1 to
ADGSEL0 in the ADCON2 register to select the desired pin.
3. After rewriting bits MD1 to MD0, set bits CH2 to CH0 over again using another instruction.
Seitenansicht 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 411 412

Kommentare zu diesen Handbüchern

Keine Kommentare