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 MICROCOMPUTERPinname P 84/INT2P in No.18(FP)16 (GP)Function selection4,3F2h1,3FEhSetting registerRemarksINT2I Interruptinput0 X 1 66P84I Portinput (No pulled high)0 0 167P84I Portinput (Pulled high)0 1 167P84O Portoutput1 X 167Remark 1: Interrupt request bit generates by state change of a port, not by setting value of register.4,3F2hPortP84 direction register1721,3FEhP84to P87 pull-up control register174PagePinname P 83/INT1P in No.19(FP)17 (GP)Function selection4,3F2h1,3FEhSetting registerRemarksINT1I Interruptinput0 X 1 66P83I Portinput (No pulled high)0 0 167P83I Portinput (Pulled high)0 1 167P83O Portoutput1 X 167Remark 1: Interrupt request bit generates by state change of a port, not by setting value of register.3,3F2hPortP83 direction register1720,3FEhP80to P83 pull-up control register174PagePinname P 82/INT0P in No.20(FP)18 (GP)Function selection2,3F2h0,3FEhSetting registerRemarksINT0I Interruptinput0 X 1 66P82I Portinput (No pulled high)0 0 167P82I Portinput (Pulled high)0 1 167P82O Portoutput1 X 167Remark 1: Interrupt request bit generates by state change of a port, not by setting value of register.2,3F2hPortP82 direction register1720,3FEhP80to P83 pull-up control register174PagePinnameP 81/TA4IN/ UP in No.21(FP)19 (GP)Function selectionSetting register1,3F2h0,3FEh7,383h6,383h4,39Ah2,348hRemarksTA4INI Gatefunction level input0 X 0 0 1 0 83TA4INI Countsource input0 X 0 0 X 0 83TA4INI Externaltrigger input0 X 0 0 1 0 83U O U phase outputX X X X X 1 101P81I Portinput (No pulled high)0 0 X X X 0 167P81I Portinput (Pulled high)0 1 X X X 0 167P81O Portoutput1 X X X X 0 1671,3F2hPortP81 direction register1720,3FEhP80to P83 pull-up control register1747,383hTimerA4 event/trigger select bit of trigger select register876,383hTimerA4 event/trigger select bit of trigger select register874,39AhBit4 of timer A4 mode register852,348hThreephase mode select bit101Page575

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

Saved successfully!

Ooh no, something went wrong!