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.

Timer AMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSelecting event counter mode and functionsb70 10 1 0 0b00 1Timer Ai mode register (i= 2, 3) [Address 039816, 039916]TAiMR (i= 2, 3)Selection of event counter mode0 (Must always be “0” when using two-phase pulse signal processing)0 (Must always be “0” when using two-phase pulse signal processing)1 (Must always be “1” when using two-phase pulse signal processing)0 (Must always be “0” when using two-phase pulse signal processing)Count operation type select bit1 : Free-run typeTwo-phase pulse signal processing operation select bit0 : Normal processing operationTwo-phase pulse signal processing select bitb7b0Up/down flag [Address 038416]UDFTimer A2 two-phase pulse signal processing select bit1 : Two-phase pulse signal processing enabledTimer A3 two-phase pulse signal processing select bit1 : Two-phase pulse signal processing enabledSetting divide ratio(b15)b7(b8)b0 b7 b0 Timer A2 register [Address 038B16, 038A16] TA2Timer A3 register [Address 038D16, 038C16]TA3Can be set to 000016 to FFFF16Setting count start flagb7b0Count start flag [Address 038016]TABSRTimer A2 count start flagTimer A3 count start flagStart countFigure 2.2.17. Set-up procedure of 2-phase pulse signal process in event counter mode, normal mode selected297

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

Saved successfully!

Ooh no, something went wrong!