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 MICROCOMPUTERPinnameP 75/TA2IN/ WP in No.25(FP)23 (GP)Function selectionSetting register5,3EFh7,3FDh3,383h2,383h4,398h2,348hRemarksTA2INI Gatefunction level input0 X 0 0 1 0 83TA2INI Countsource input0 X 0 0 X 0 83TA2INI Externaltrigger input0 X 0 0 1 0 83W O W phase output0 0 X X X 1 101P75I Portinput (No pulled high)0 0 X X X 0 167P75I Portinput (Pulled high)0 1 X X X 0 167P75O Portoutput1 X X X X 0 1675,3EFhPortP75 direction register1727,3FDhP74to P77 pull-up control register1743,383hTimerA2 event/trigger select bit of trigger select register872,383hTimerA2 event/trigger select bit of trigger select register874,398hBit4 of timer A2 mode register852,348hThreephase mode select bit101PagePinnameP 74/TA2OUT/ WP in No.26(FP)24 (GP)Function selectionSetting register4,3EFh7,3FDh4,398h2,398h5,384h2,348hRemarksTA2OUTO PulseoutputX X X 1 0 0 1 83TA2OUTI Up/downpolarity select input0 X 1 0 0 0 83TA2OUTI Two-phasepulse signal input0 X 1 0 1 0 83W O W phase outputX X X X X 1 101P74I Portinput (No pulled high)0 0 X 0 0 0 167P74I Portinput (Pulled high)0 1 X 0 0 0 167P74O Portoutput1 X X 0 0 0 167Remark 1: Can not be use when processing two-phase pulse signal.4,3EFhPortP74 direction register1727,3FDhP74to P77 pull-up control register1744,398hBit4 of timer A2 mode register852,398hBit2 of timer A2 mode register855,384hTimerA2 two-phase pulse signal processing select bit of up/down flag862,348hThreephase mode select bit101Page577

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

Saved successfully!

Ooh no, something went wrong!