English
Language : 

SH7058 Datasheet, PDF (450/1130 Pages) Renesas Technology Corp – Renesas SuperHTM RISC engine
Sample Setup Procedure for Event Counter Operation: An example of the setup procedure for
event counter operation is shown in figure 11.61.
Start
Set number of events 1
Set port-ATU-II connection 2
Select counter clock 3
1. Set the number of events to be counted in a general register
(GR9A to GR9D). Also, if necessary, an interrupt request
can be sent to the CPU upon compare-match by making a
setting in the timer interrupt enable register (TIER).
2. Set the port control register, corresponding to the port for
signal input to the event counter, to ATU event counter input.
3. Select the event counter count edge with the EGSEL bits in
the channel 9 timer control register (TCR9A to TCR9C).
4. Input a signal to the event counter input pin.
Start event input
4
Event counter operation
Figure 11.61 Sample Setup Procedure for Event Counter Operation
Rev. 3.0, 09/04, page 409 of 1086