HD6417021 Hitachi Semiconductor, HD6417021 Datasheet - Page 334

no-image

HD6417021

Manufacturer Part Number
HD6417021
Description
SuperH RISC engine
Manufacturer
Hitachi Semiconductor
Datasheet
11.3.4
Setting Procedures for TPC Output Non-Overlap Operation (figure 11.6):
1. Select GRA and GRB as output compare registers (output disable) with the timer I/O control
2. Set the TPC output trigger cycle to GRB and the non-overlap cycle to GRA.
3. Select the counter clock with the TPSC2–TPSC0 bits of the timer control register (TCR).
4. Set the timer interrupt enable register (TIER) to enable IMIA interrupts. Transfers to the NDR
5. Set the initial output value in the I/O port data register to be used by TPC.
6. Set the I/O port control register to be used by TPC as the TP pin function (11).
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
9. Select the group that performs the non-overlap operation in the TPC output mode register
10. Set the next TPC output value in the NDR.
11. Set 1 in the STR bit of the timer start register (TSTR) and start the timer counter counting.
12. Set the next output value in the NDR whenever an IMIA interrupt is generated.
320 HITACHI
register (TIOR).
Select the counter clear sources with the CCLR1 and CCLR0 bits.
can also be set using the DMAC.
register (TPCR).
(TPMR).
TPC Output Non-Overlap Operation

Related parts for HD6417021