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 71/RXD2/TA0IN/TB5IN/SCLP in No.29(FP)27 (GP)Function selectionSetting register1,3EFh6,3FDh7,382h6,382h4,396h7,35Dh0,377h3,378hRemarksTA0INI Gatefunction level input0 X 0 0 1 0 0 X 83TA0INI Countsource input0 X 0 0 X 0 0 X 83TA0INI Externaltrigger input0 X 0 0 1 0 0 X 83TB5INI Countsource input0 0 X X X 1 X 0 95SCLO IIC clock output0 0 X X X 0 1 0 141SCLI IIC clock input0 0 X X X 0 1 1 141RXD2I SerialI/O data input0 0 X X X 0 0 X 1 113P71I Portinput (No pulled high)0 0 X X X 0 0 X 167P71I Portinput (Pulled high)0 1 X X X 0 0 X 167P71O Portoutput1 X X X X 0 0 X 167Remark 1 : Set serial I/O enabled by serial I/O mode select bit of UART2 transmit/receive mode register.1,3EFhPortP71 direction register1726,3FDhP70to P73 pull-up control register1747,382hBit7 of one-shot start flag876,382hBit6 of one-shot start flag874,396hBit4 of timer A0 mode register857,35DhEventclock select bit of timer B5 mode register950,377hIIC mode select bit1413,378hInternal/external select bit131PagePinnameP 70/TXD2/TA0OUT/SDAP in No.30(FP)28 (GP)Function selectionSetting register0,3EFh6,3FDh4,396h2,396h0,377h6,376hRemarksTA0OUTO PulseoutputX X X 1 0 X 1 83TA0OUTI Up/downpolarity select input0 X 1 0 0 X 83TXD2O SerialI/O data outputX X X X 0 X 2,3 113SDAI IIC data input0 0 0 0 1 1 141SDAO IIC data output0 0 0 0 1 0 141P70I Portinput (No pulled high)0 0 0 0 0 X 167P70I Portinput (Pulled high)0 1 0 0 0 X 167P70O Portoutput1 X 0 0 0 X 167Remark 1: Can not be use when processing two-phase pulse signal.Remark 2: Set serial I/O enabled by serial I/O mode select bit of UART2 transmit/receive mode register.Remark 3: N channel open-drain output.0,3EFhPortP70 direction register1726,3FDhP70to P73 pull-up control register1744,396hBit4 of timer A0 mode register852,396hBit2 of timer A0 mode register850,377hIIC mode select bit1416,376hSDA output stop bit145Page579

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

Saved successfully!

Ooh no, something went wrong!