21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

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> / 62 GroupSINGLE-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 FunctionR WCH0CH1CH2MD0MD1TRGADSTCKS0Analog input pin select bitA-D operation modeselect bit 0Trigger select bitA-D conversion start flagFrequency select bit 0b2 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 started0 : 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.Figure 2.7.2. A-D converter-related registers (1)385

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

Saved successfully!

Ooh no, something went wrong!