20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A-D ConverterMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERA-D control register 0 (Note 1)b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetADCON0 03D616 00000XXX2Bit symbol Bit name FunctionCH0CH1CH2MD0MD1TRGADSTAnalog input pin select bitA-D operation modeselect bit 0Trigger select bitA-D conversion start flagb2 b1 b00 0 0 : AN0 is selected0 0 1 : AN1 is selected0 1 0 : AN2 is selected0 1 1 : AN3 is selected1 0 0 : AN4 is selected1 0 1 : AN5 is selected1 1 0 : AN6 is selected1 1 1 : AN7 is selected (Note 2)b4 b30 0 : One-shot mode0 1 : Repeat mode1 0 : Single sweep mode1 1 : Repeat sweep mode 0Repeat sweep mode 1 (Note 2)0 : Software trigger1 : ADTRG trigger0 : A-D conversion disabled1 : A-D conversion startedCKS0Frequency select bit 0 0 : fAD/4 is selected1 : fAD/2 is selectedNote 1: If the A-D control register is rewritten during A-D conversion, the conversion result isindeterminate.Note 2: When changing A-D operation mode, set analog input pin again.R W A-D control register 1 (Note)b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetADCON1 03D716 0016Bit symbolSCAN0SCAN1MD2Bit nameA-D sweep pin select bitBITS 8/10-bit mode select bit 0 : 8-bit mode1 : 10-bit modeCKS1VCUTOPA0OPA1A-D operation modeselect bit 1Frequency select bit 1Vref connect bitExternal op-ampconnection mode bitFunctionWhen single sweep and repeat sweepmode 0 are selectedb1 b00 0 : AN0, AN1 (2 pins)0 1 : AN0 to AN3 (4 pins)1 0 : AN0 to AN5 (6 pins)1 1 : AN0 to AN7 (8 pins)When repeat sweep mode 1 is selectedb1 b00 0 : AN0 (1 pin)0 1 : AN0, AN1 (2 pins)1 0 : AN0 to AN2 (3 pins)1 1 : AN0 to AN3 (4 pins)0 : Any mode other than repeat sweepmode 11 : Repeat sweep mode 10 : fAD/2 or fAD/4 is selected1 : fAD is selected0 : Vref not connected1 : Vref connectedb7 b60 0 : ANEX0 and ANEX1 are not used0 1 : ANEX0 input is A-D converted1 0 : ANEX1 input is A-D converted1 1 : External op-amp connection modeNote: If the A-D control register is rewritten during A-D conversion, the conversion result isindeterminate.R W Figure 1.20.2. A-D converter-related registers (1)154

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!