English
Language : 

SH7052 Datasheet, PDF (410/919 Pages) Renesas Technology Corp – SuperHTM RISC engine
Sample Setup Procedure for Event Counter Operation: An example of the setup procedure for
event counter operation is shown in figure 10.61.
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
Set number of events 1
Set port-ATU-II connection 2
Select counter clock 3
Start event input
4
Event counter operation
Figure 10.61 Sample Setup Procedure for Event Counter Operation
384