English
Language : 

SH7055S Datasheet, PDF (433/1002 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Sample Setup Procedure for One-Shot pulse Output: An example of the setup procedure for
one-shot pulse output is shown in figure 11.56.
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 register8 TCR8.
2. Set port K control registers H and L (PKCRH, PKCRL) corresponding to the waveform output
port to ATU one-shot pulse output. Also set the corresponding bit to 1 in the port K IO
register (PKIOR) 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, a timer interrupt request can be sent to the CPU when the down-counter
underflows by making the appropriate setting in the interrupt enable register (TIER8).
4. Set the corresponding bit (DST8A to DST8P) to 1 in the down-count start register (DSTR) to
start the down-counter (DCNT).
Start
Select counter clock 1
Set port-ATU-II connection 2
Set pulse width
3
Start down-count
4
One-shot pulse output
Figure 11.56 Sample Setup Procedure for One-Shot Pulse Output
Rev.2.0, 07/03, page 395 of 960