English
Language : 

SH7020 Datasheet, PDF (334/509 Pages) Renesas Technology Corp – SuperH™ RISC engine
7. Set to 1 the bit that performs TPC output to the next data enable register (NDER).
8. Select the ITU compare match that will be the TPC output trigger using the TPC output control
register (TPCR).
9. Set the next TPC output value in the NDR.
10. Set 1 in the STR bit of the timer start register (TSTR) and start the timer counter counting.
11. Set the next output value in the NDR whenever an IMIA interrupt is generated.
ITU setting
Port and
TPC
setting
ITU setting
Original TPC
output operation
Select GR function
(1)
Set GRA
(2)
Set count operation (3)
Select interrupt request (4)
Set initial output value (5)
Set port output
(6)
Set TPC output enable (7)
Select TPC output trigger (8)
Set next TPC output value (9)
Start count
(10)
Compare
match?
No
Yes
Set next TPC output value (11)
Figure 11.4 Example of Setting Procedure for TPC Ordinary Output
318 RENESAS