User's Manual

Table Of Contents
25.9.14 Multiplexing of I/O Pins ...........................................................................................................730
25.9.15 Continuous Output of Compare-Match Pulse Interrupt Signal ................................................731
25.9.16 Continuous Output of Input-Capture Pulse Interrupt Signal ....................................................732
25.9.17 Continuous Output of Underflow Pulse Interrupt Signal .........................................................733
26. 8-Bit Timer (TMR) ........................................................................................................................ 734
26.1 Overview ...........................................................................................................................................734
26.2 Register Descriptions .........................................................................................................................739
26.2.1 Timer Counter (TCNT) ............................................................................................................739
26.2.2 Time Constant Register A (TCORA) .......................................................................................740
26.2.3 Time Constant Register B (TCORB) ........................................................................................740
26.2.4 Timer Control Register (TCR) .................................................................................................741
26.2.5 Timer Counter Control Register (TCCR) .................................................................................742
26.2.6 Timer Control/Status Register (TCSR) ....................................................................................744
26.2.7 Timer Counter Start Register (TCSTR) ....................................................................................746
26.3 Operation ...........................................................................................................................................747
26.3.1 Pulse Output .............................................................................................................................747
26.3.2 External Counter Reset Input ...................................................................................................748
26.4 Operation Timing ..............................................................................................................................749
26.4.1 TCNT Count Timing ................................................................................................................749
26.4.2 Timing of Interrupt Signal Output on a Compare Match .........................................................750
26.4.3 Timing of Timer Output Signal at Compare Match .................................................................750
26.4.4 Timing of Counter Clear by Compare Match ...........................................................................751
26.4.5 Timing of the External Reset for TCNT ...................................................................................751
26.4.6 Timing of Interrupt Signal Output on an Overflow ..................................................................752
26.5 Operation with Cascaded Connection ...............................................................................................753
26.5.1 16-Bit Count Mode ...................................................................................................................753
26.5.2 Compare Match Count Mode ...................................................................................................753
26.6 Interrupt Sources ................................................................................................................................754
26.6.1 Interrupt Sources and DTC Activation .....................................................................................754
26.7 Link Operation by ELC .....................................................................................................................755
26.7.1 Event Signal Output to ELC .....................................................................................................755
26.7.2 TMR Operation when Receiving an Event Signal from ELC ..................................................755
26.7.3 Notes on Operating TMR According to an Event Signal from ELC ........................................756
26.8 Usage Notes .......................................................................................................................................757
26.8.1 Module Stop State Setting ........................................................................................................757
26.8.2 Notes on Setting Cycle .............................................................................................................757
26.8.3 Conflict between TCNT Write and Counter Clear ...................................................................757
26.8.4 Conflict between TCNT Write and Increment .........................................................................758
26.8.5 Conflict between TCORA or TCORB Write and Compare
Match ..........................................758
26.8.6 Conflict between Compare Matches A and B ..........................................................................759
26.8.7 Switching of Internal Clocks and TCNT Operation .................................................................759