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.

Timer AMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSelecting event counter mode and functionsb71 10 1 0 0b00 1Timer Ai mode register (i= 3, 4) [Address 039916, 039A16]TAiMR (i= 3, 4)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 bit1 : Multiply-by-4 processing operationTwo-phase pulse signal processing select bitb7b0Up/down flag [address 038416]UDFTimer A3 two-phase pulse signal processing select bit1 : Two-phase pulse signal processing enabledTimer A4 two-phase pulse signal processing select bit1 : Two-phase pulse signal processing enabledSetting divide ratio(b15)b7(b8)b0 b7 b0 Timer A3 register [Address 038D16, 038C16]TA3Timer A4 register [Address 038F16, 038E16] TA4Can be set to 000016 to FFFF16Setting count start flagb7b0Count start flag [Address 038016]TABSRTimer A3 count start flagTimer A4 count start flagStart countFigure 2.2.19. Set-up procedure of 2-phase pulse signal process in event counter mode, multiply-by-4 mode selected299

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

Saved successfully!

Ooh no, something went wrong!