m37905 Renesas Electronics Corporation., m37905 Datasheet - Page 116

no-image

m37905

Manufacturer Part Number
m37905
Description
Mitsubishi 16-bit Single-chip Microcomputer 7700 Family / 7900 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m37905F8CSP
Manufacturer:
MIT
Quantity:
20 000
Fig. 7.3.2 Initial setting example for registers relevant to timer mode
7.3.1 Setting for timer mode
Figure 7.3.2 shows an initial setting example for registers related to the timer mode.
Note that when using interrupts, set up to enable the interrupts. For details, refer to section “CHAPTER
6. INTERRUPTS.”
Setting interrupt priority level
Setting port P6, port P2, and port P4 direction registers
b7
b7
Selecting timer mode and each function
When gate function is selected, clear the bit corresponding to the TAi
pin to “0.”
(b15)
Setting division ratio
b7
b7
b7
b7
0
0 0
b0
b0
b0
(b8)
b0
b0
b0
Interrupt priority level select bits
When using interrupts, set these bits to one of
levels 1 to 7.
When disabling interrupts, set these bits to
level 0.
Selection of timer mode
Gate function select bits
Pulse output function select bit
Count source select bits
Timer Ai interrupt control register
(i = 0 to 4) (Addresses 75
(i = 5 to 9) (Addresses F5
Pin TA5
Pin TA6
Pin TA7
Pin TA8
Pin TA0
Pin TA1
Pin TA2
Pin TA3
Pin TA4
Pin TA9
Port P4 direction register (Address C
Timer Ai mode register (i = 0 to 4) (Addresses 56
Port P6 direction register (Address 10
Port P2 direction register (Address 8
b4 b3
1 0 : Gate function (Counter counts only while TAi
1 1 : Gate function (Counter counts only while TAi
0 0 :
0 1 :
See Table 7.2.3.
b7
0 : No pulse output
1 : Pulses output
IN
IN
IN
IN
IN
IN
IN
IN
IN
N
No Gate function
Can be set to “0000
7905 Group User’s Manual Rev.1.0
(i = 5 to 9) (Addresses D6
Note: Counter divides the count source frequency by (n + 1).
16
16
b0
16
to 79
to F9
” to “FFFF
Timer A0 register (Addresses 47
Timer A1 register (Addresses 49
Timer A2 register (Addresses 4B
Timer A3 register (Addresses 4D
Timer A4 register (Addresses 4F
Timer A5 register (Addresses C7
Timer A6 register (Addresses C9
Timer A7 register (Addresses CB
Timer A8 register (Addresses CD
Timer A9 register (Addresses CF
16
16
)
)
16
16
16
16
)
)
IN
)
” (n).
IN
IN
pin’s input signal level is “L.”)
pin’s input signal level is “H.”)
16
16
Setting count start bit to “1.”
b7
b7
to 5A
to DA
16
16
)
)
16
16
16
16
16
16
16
16
16
16
, 46
, 48
, 4A
, 4E
, 4C
, C6
, C8
, CE
, CA
, CC
16
16
16
16
16
16
16
16
16
16
)
)
)
)
)
)
)
)
)
)
Count starts.
b0
b0
Timer A0 count start bit
Timer A1 count start bit
Timer A2 count start bit
Timer A3 count start bit
Timer A4 count start bit
Timer A5 count start bit
Timer A6 count start bit
Timer A7 count start bit
Timer A8 count start bit
Timer A9 count start bit
Count start register 0 (Address 40
Count start register 1 (Address 41
7.3 Timer mode
TIMER A
16
16
)
)
7-13

Related parts for m37905