English
Language : 

7751 Datasheet, PDF (104/540 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER
TIMER A
5.4 Event counter mode
From preceding Figure 5.4.2 .
Setting interrupt priority level
b7
b0
Timer Ai interrupt control register (i = 0 to 4)
(Addresses 7516 to 7916)
Interrupt priority level select bits
When using interrupts, set these bits
to level 1-7.
When disabling interrupts, set these
bits to level 0.
Setting port P5 and port P6 direction registers
b7
b0
Port P5 direction register (Address D16)
TA0OUT pin
TA0IN pin
TA1OUT pin
TA1IN pin
TA2OUT pin
TA2IN pin
TA3OUT pin
TA3IN pin
b7
b0
Port P6 direction register (Address 1016)
TA4OUT pin
TA4IN pin
Clear the bit corresponding to the TAiIN pin to “0.”
When selecting the TAi OUT pin’s input signal as up-down switching factor, set the
bit corresponding to the TAi OUT pin to “0.”
When selecting the two–phase pulse signal processing function, set the bit
corresponding to the TAj OUT (j = 2 to 4) pin to “0.”
Setting the count start bit to “1”
b7
b0
Count start register
(Address 4016)
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
Count starts
Fig. 5.4.3 Initial setting example for registers relevant to event counter mode (2)
7751 Group User’s Manual
5–23