English
Language : 

SH7050 Datasheet, PDF (341/841 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH RISC engine Family/
Section 10 Advanced Timer Unit (ATU)
Sample Setup Procedure for One-Shot pulse Output: An example of the setup procedure for
one-shot pulse output is shown in figure 10.48.
1. Set the first-stage counter clock φ' in prescaler register 1 (PSCR1), and select the second-stage
counter clock φ" with the CKSEL bit in timer control register TCR10.
2. Set the port C control register (PCCR) corresponding to the waveform output port to ATU one-
shot pulse output. Also set the corresponding bit to 1 in the port C IO register (PCIOR) to
specify the output attribute.
3. Set the one-shot pulse width in the down-counter (DCNT) corresponding to the port set in (2).
If necessary, an interrupt request can be sent to the CPU when the down-counter underflows by
making the appropriate setting in the interrupt enable register (TIERF).
4. Set the corresponding bit (DST10A to DST10H) to 1 in the down-count start register (DSTR)
to start the down-counter (DCNT).
Start
Select counter clock 1
Set port-ATU connection 2
Set pulse width
3
Start down-count
4
One-shot pulse output
Figure 10.48 Sample Setup Procedure for One-Shot Pulse Output
Rev. 5.00 Jan 06, 2006 page 321 of 818
REJ09B0273-0500