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.

TimerMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERTimerThere are eleven 16-bit timers. These timers can be classified by function into timers A (five) and timers B(six). All these timers function independently. Figures 1.17.1 and 1.17.2 show the block diagram of timers.Clock prescalerXINf1 f8 f32 fC321/81/4f1f8f32XCINClock prescaler reset flag (bit 7at address 038116) set to “1”1/32 fC32ResetTA0INNoisefilter• Timer mode• One-shot mode• PWM mode• Event counter modeTimer A0Timer A0 interruptTA1INNoisefilter• Timer mode• One-shot mode• PWM mode• Event counter modeTimer A1Timer A1 interruptTA2INNoisefilter• Timer mode• One-shot mode• PWM mode• Event counter modeTimer A2Timer A2 interruptTA3INNoisefilter• Timer mode• One-shot mode• PWM mode• Event counter modeTimer A3Timer A3 interruptTA4INNoisefilter• Timer mode• One-shot mode• PWM mode• Event counter modeTimer A4Timer A4 interruptTimer B2 overflowNote 1: The TA0IN pin (P71) is shared with RxD2 and the TB5IN pin, so be careful.Figure 1.17.1. Timer A block diagram83

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

Saved successfully!

Ooh no, something went wrong!