741
Chapter 35 Free-Run Timer
6.Setting
6. Setting
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
Table 6-1 Setting Required in Order to Use the Free-run Timer
Setting Setting Registers
Setting
Procedures *
Setting of the initialization conditions of the timer
Timer control register (TCCS0-TCCS7)
See 7.4
Setting of the count clock
Selection of the internal clock
See 7.1
Selection of the external clock See 7.2
Start the count operation See 7.3
In the case of the external clock
Set the clock input pin (CK) as the input.
Port function register (PFRxy.z)
Extra port function register (EPFRxy.z)
See 7.2
Table 6-2 Setting Required to Enable the Free-run Timer Interrupt
Setting Setting Registers
Setting
Procedures *
Setting of the free-run timer interrupt vector,
and the free-run timer interrupt level
See “Chapter 24 Interrupt Control (Page
No.311)”.
See 7.5
Setting of the free-run timer interrupt
Clearing interrupt requests
Enabling interrupt requests
Timer control register (TCCS0-TCCS7) See 7.7
Table 6-3 Setting Required to Stop the Free-run Timer
Setting Setting Registers
Setting
Procedures *
Setting of the free-run timer stop bit Timer control register (TCCS0-TCCS7)
See 7.8