Timers16-Bit Timer Setup ExamplesPanasonic Semiconductor Development Company MN102H75K/F75K/85K/F85K LSI User Manual122Panasonicn To service the interrupts:Run the interrupt service routine. The routine must determine the interrupt group,then clear the interrupt request flag.Either the TM5IA or TM5IB signal can control the timer 5 count direction. Thecount direction is determined at the opposite edge from the count edge (at thesource clock transition occurring in the middle of the count cycle.).Timer 5 does not operate in STOP mode, when B OSC is off. If you use an externalclock, it must be synchronized to BOSC .Figure 4-51 shows an example timing chart. In this example, an interrupt occurswhen the timer switches from down to up counting.Figure 4-51 External Count Direction Control Timing (Timer 5)TM5CATM5CBTM5BCTM5IAInterrupt0000 1FFF 1FFF 100110000FFF0002000100001FFE 1FFE1FFD1FFF1000BB OSC/4