Setting For Timer Mode - Renesas 7700 FAMILY User Manual

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

5.3.1 Setting for timer mode

Figures 5.3.2 and 5.3.3 show an initial setting example for registers relevant to the timer mode.
Note that when using interrupts, set up to enable the interrupts. For details, refer to section "Chapter 4.
INTERRUPTS."
Selecting timer mode and each function
b7
0
Setting divide ratio
(b15)
b7
Fig. 5.3.2 Initial setting example for registers relevant to timer mode (1)
b0
0 0
Timer Ai mode register (i = 0 to 4) (Addresses 56
Selection of timer mode
Pulse output function select bit
0: No pulse output.
1: Pulses output.
Gate function select bits
b4 b3
0 0:
No gate function
0 1:
1 0: Gate function (Counter counts only while TAi
1 1: Gate function (Counter counts only while TAi
Count source select bits
b7 b6
0 0: f
/f
2
4
0 1: f
/f
16
32
1 0: f
/f
64
128
1 1: f
/f
512
1024
(b8)
b0
b7
Can be set to "0000
Continue to Figure 5.3.3 on next page.
7751 Group User's Manual
to 5A
16
pin's input signal is "L" level.)
IN
pin's input signal is "H" level.)
IN
Timer A0 register (Addresses 47
Timer A1 register (Addresses 49
b0
Timer A2 register (Addresses 4B
Timer A3 register (Addresses 4D
Timer A4 register (Addresses 4F
" to "FFFF
" (n).
16
16
Note : Counter divides the count source frequency by n + 1.
TIMER A
5.3 Timer mode
)
16
, 46
)
16
16
, 48
)
16
16
, 4A
)
16
16
, 4C
)
16
16
, 4E
)
16
16
5–11

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents