20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A-D ConverterMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER(2) Repeat modeIn repeat mode, the pin selected using the analog input pin select bit is used for repeated A-D conversion.Table 1.20.3 shows the specifications of repeat mode. Figure 1.20.5 shows the A-D control register inrepeat mode.Table 1.20.3. Repeat mode specificationsItemSpecificationFunctionThe pin selected by the analog input pin select bit is used for repeated A-D conversionStar conditionWriting “1” to A-D conversion start flagStop conditionWriting “0” to A-D conversion start flagInterrupt request generation timing None generatedInput pinOne of AN0 to AN7, as selectedReading of result of A-D converter Read A-D register corresponding to selected pinA-D control register 0 (Note 1)b7 b6 b5 b4 b3 b2 b1 b00 1Symbol Address When resetADCON0 03D616 00000XXX2Bit symbol Bit name FunctionCH0CH1CH2MD0MD1TRGAnalog input pinselect bitA-D operation modeselect bit 0Trigger select bitb2 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 1 : Repeat mode (Note 2)0 : Software trigger1 : ADTRG triggerADST A-D conversion start flag 0 : A-D conversion disabled1 : A-D conversion startedCKS0 Frequency 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 conversionresult is indeterminate.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 b010Symbol Address When resetADCON1 03D716 0016Bit symbolSCAN0SCAN1MD2BITSCKS1VCUTOPA0OPA1Bit nameA-D sweep pinselect bitA-D operation modeselect bit 18/10-bit mode select bitFrequency select bit 1Vref connect bitExternal op-ampconnection mode bitInvalid in repeat modeFunction0 : Any mode other than repeat sweep mode 10 : 8-bit mode1 : 10-bit mode0 : fAD/2 or fAD/4 is selected1 : fAD is selected1 : 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 conversionresult is indeterminate.R WFigure 1.20.5. A-D conversion register in repeat mode157

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

Saved successfully!

Ooh no, something went wrong!