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 61/CLK0P in No.37(FP)35 (GP)Function selection1,3EEh4,3FDh3,3A0hSetting registerRemarksCLK0I SerialI/O clock input0 X 1 1 113CLK0O SerialI/O clock outputX X 0 1,2 113P61I Portinput (No pulled high)0 0 X 167P61I Portinput (Pulled high)0 1 X 167P61O Portoutput1 X X 167Remark 1: Set serial I/O enabled by serial I/O mode select bit of UART0 transmit/receive mode register.Remark 2: It become I/O port when UART mode selected.1,3EEhPortP61 direction register1724,3FDhP60to P63 pull-up control register1743,3A0hInternal/externalclock select bit of UART0 transmit/receive mode register118PagePinname P 60/CTS0/RTS0P in No.38(FP)36 (GP)Function selection0,3EEh4,3FDh4,3A4h2,3A4hSetting registerRemarksRTS0O RTS outputX X 0 1 1 113CTS0I CTS input0 X 0 0 1 113P60I Portinput (No pulled high)0 0 X X 167P60I Portinput (Pulled high)0 1 X X 167P60O Portoutput1 X X X 167Remark 1: Set serial I/O enabled by serial I/O mode select bit of UART0 transmit/receive mode register.0,3EEhPortP60 direction register1724,3FDhP60to P63 pull-up control register1744,3A4hCTS/RTS disable bit of UART0 transmit/receive control register 01192,3A4hCTS/RTS select bit of UART0 transmit/receive control register 0119PagePinnameP 57/RDY/CLKOUTP in No.39(FP)37 (GP)Function selectionSetting register7,3EBh3,3FDh1,004h0,004h1,006h0,006hRemarksCLKOUTO CLKOUT outputX X 0 0 Except0045RDYI RDY inputX X X 1 X X 1 38P57I Portinput (No pulled high)0 0 0 0 0 0 167P57I Portinput (Pulled high)0 1 0 0 0 0 167P57O Portoutput1 X 0 0 0 0 167Remark 1: When the user is using the RDY, the wait bit of relevant chip selects must be set to "0".7,3EBhPortP57 direction register1723,3FDhP54to P57 pull-up control register1741,004hProcessormode bit of processor mode register 0290,004hProcessormode bit of processor mode register 0291,006hClockoutput function select bit of system clock control register 0440,006hClockoutput function select bit of system clock control register 044Page582

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

Saved successfully!

Ooh no, something went wrong!