21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

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.

Appendix 3 Setting register for pin function selectedMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERThe following shows the register to select pin and the setting value.Refer to the table as follows.Pin functionI/O direction of pin functionContents of pin functionSee page for peripheral functionPinname P 96/ANEX1/SOUT4P in No.1 (FP)99 (GP)Function selectionSetting register6,3F3h3,3FEh7,3D7h6,3D7h3,366h2,366hRemarksPageANEX1I AD extend input0 0 1 0 0 X 153SOUT4O SerialI/O data output0 0 0 0 1 1 149P96I Portinput (No pulled high)0 0 0 0 0 X 167P96I Portinput (Pulled high)0 1 0 0 0 X 167P96O Portoutput1 X 0 0 0 X 1676,3F3hPortP96 direction register1723,3FEhP94to P97 pull-up control register1747,3D7hExternalop-amp connection mode bit of A-D contol register 11556,3D7hExternalop-amp connection mode bit of A-D contol register 11553,366hSI/O4port select bit of SI/O4 control register1502,366hSOUT4output disable bit of SI/O4 control register150Setting value of bit0 : Set to “0”1 : Set to “1”X : Can be “0” or “1”See page for registerA symbol to show a bit to select pin function (bit No., address)571

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

Saved successfully!

Ooh no, something went wrong!