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 A ApplicationsMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER3.5 Solution for External Interrupt Pins ShortageOverviewThe following are solution for external interrupt pins shortage. Figure 3.5.1 shows the set-upprocedure.Use the following peripheral function:• Event counter mode of timer ASpecifications(1) Inputting a falling edge to the TA0IN pin generates a timer A0 interrupt.Operation(1) Set timer A0 to event counter mode, set timer to “0”, and set interrupt priority levels in timer A0.(2) Inputting a falling edge to the TA0IN pin generates a timer A0 interrupt.470

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

Saved successfully!

Ooh no, something went wrong!