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(5) Repeat sweep mode 1In repeat sweep mode 1, all pins are used for A-D conversion with emphasis on the pin or pins selectedusing the A-D sweep pin select bit. Table 1.20.6 shows the specifications of repeat sweep mode 1. Figure1.20.8 shows the A-D control register in repeat sweep mode 1.Table 1.20.6. Repeat sweep mode 1 specificationsItemSpecificationFunctionAll pins perform repeat sweep A-D conversion, with emphasis on the pin orpins selected by the A-D sweep pin select bitExample : AN0 selected AN0 AN1 AN0 AN2 AN0 AN3, etcStart conditionWriting “1” to A-D conversion start flagStop conditionWriting “0” to A-D conversion start flagInterrupt request generation timing None generatedInput pinAN0 (1 pin), AN0 and AN1 (2 pins), AN0 to AN2 (3 pins), AN0 to AN3 (4 pins)Reading of result of A-D converter Read A-D register corresponding to selected pin (at any time)A-D control register 0 (Note)b7 b6 b5 b4 b3 b2 b1 b01 1Symbol Address When resetADCON0 03D616 00000XXX2Bit symbol Bit name FunctionCH0 Analog input pinselect bitInvalid in repeat sweep mode 1CH1CH2MD0MD1TRGADSTCKS0A-D operation modeselect bit 0Trigger select bitA-D conversion start flagFrequency select bit 0b4 b31 1 : Repeat sweep mode 10 : Software trigger1 : ADTRG trigger0 : A-D conversion disabled1 : A-D conversion started0 : fAD/4 is selected1 : fAD/2 is selectedR W Note: If the A-D control register is rewritten during A-D conversion, the conversion resultis indeterminate.A-D control register 1 (Note 1)b7 b6 b5 b4 b3 b2 b1 b011Symbol Address When resetADCON1 03D716 0016Bit symbolSCAN0SCAN1MD2BITSCKS1VCUTOPA0OPA1Bit nameA-D sweep pin select bitA-D operation modeselect bit 18/10-bit mode select bitFrequency select bit 1Vref connect bitExternal op-ampconnection modebit (Note 2)FunctionWhen 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)1 : 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 modeR W Note 1: If the A-D control register is rewritten during A-D conversion, the conversion resultis indeterminate.Note 2: Neither ‘01’ nor ‘10’ can be selected with the external op-amp connection mode bit.Figure 1.20.8. A-D conversion register in repeat sweep mode 1160

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

Saved successfully!

Ooh no, something went wrong!