21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix 3 Setting register for pin function selectedMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERPinnameP 80/TA4OUT/ UP in No.22(FP)20 (GP)Function selectionSetting register0,3F2h0,3FEh4,39Ah2,39Ah7,384h2,348hRemarksTA4OUTO PulseoutputX X X 1 0 0 1 83TA4OUTI Up/downpolarity select input0 X 1 0 0 0 83TA4OUTI Two-phasepulse signal input0 X 1 0 1 0 83U O U phase outputX X X X X 1 101P80I Portinput (No pulled high)0 0 X 0 0 0 167P80I Portinput (Pulled high)0 1 X 0 0 0 167P80O Portoutput1 X X 0 0 0 167Remark 1: Can not be use when processing two-phase pulse signal.0,3F2hPortP80 direction register1720,3FEhP80to P83 pull-up control register1744,39AhBit4 of timer A4 mode register852,39AhBit2 of timer A4 mode register857,384hTimerA4 two-phase pulse signal processing select bit of up/down flag862,348hThreephase mode select bit101PagePinnameP 77/TA3INP in No.23(FP)21 (GP)Function selectionSetting register7,3EFh7,3FDh5,383h4,383h4,399hRemarksTA3INI Gatefunction level input0 X 0 0 1 83TA3INI Countsource input0 X 0 0 X 83TA3INI Externaltrigger input0 X 0 0 1 83P77I Portinput (No pulled high)0 0 X X X 167P77I Portinput (Pulled high)0 1 X X X 167P77O Portoutput1 X X X X 1677,3EFhPortP77 direction register1727,3FDhP74to P77 pull-up control register1745,383hTimerA3 event/trigger select bit of trigger select register874,383hTimerA3 event/trigger select bit of trigger select register874,399hBit4 of timer A3 mode register85PagePinnameP 76/TA3OUTP in No.24(FP)22 (GP)Function selectionSetting register6,3EFh7,3FDh4,399h2,399h6,384hRemarksTA3OUTO PulseoutputX X X 1 0 1 83TA3OUTI Up/downpolarity select input0 X 1 0 0 83TA3OUTI Two-phasepulse signal input0 X 1 0 1 83P76I Portinput (No pulled high)0 0 X 0 0 167P76I Portinput (Pulled high)0 1 X 0 0 167P76O Portoutput1 X X 0 0 167Remark 1: Can not be use when processing two-phase pulse signal.6,3EFhPortP76 direction register1727,3FDhP74to P77 pull-up control register1744,399hBit4 of timer A3 mode register852,399hBit2 of timer A3 mode register856,384hTimerA3 two-phase pulse signal processing select bit of up/down flag86Page576

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

Saved successfully!

Ooh no, something went wrong!