Normal Tpc Output - Renesas H8/3067 Series User Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for H8/3067 Series:
Table of Contents

Advertisement

Section 11 Programmable Timing Pattern Controller (TPC)
11.3.3

Normal TPC Output

Sample Setup Procedure for Normal TPC Output: Figure 11.4 shows a sample procedure for
setting up normal TPC output.
Normal TPC output
Select GR functions
16-bit timer
setup
Select counting operation
Select interrupt request
Set initial output data
Port and
Enable TPC output
TPC setup
Select TPC output trigger
Set next TPC output data
16-bit timer
setup
Set next TPC output data
Figure 11.4 Setup Procedure for Normal TPC Output (Example)
Rev. 4.00 Jan 26, 2006 page 454 of 938
REJ09B0276-0400
Set GRA value
Select port output
Start counter
Compare match?
Yes
1
1.
Set TIOR to make GRA an output compare
register (with output inhibited).
2.
Set the TPC output trigger period.
2
3.
Select the counter clock source with bits
TPSC2 to TPSC0 in TCR. Select the counter
3
clear source with bits CCLR1 and CCLR0.
4.
Enable the IMFA interrupt in TIER.
4
The DMAC can also be set up to transfer
data to the next data register.
5.
Set the initial output values in the DR bits
5
of the input/output port pins to be used for
TPC output.
6.
Set the DDR bits of the input/output port
6
pins to be used for TPC output to 1.
7.
Set the NDER bits of the pins to be used for
7
TPC output to 1.
8.
Select the 16-bit timer compare match event
8
to be used as the TPC output trigger in TPCR.
9.
Set the next TPC output values in the NDR bits.
10.
Set the STR bit to 1 in TSTR to start the
9
timer counter.
11.
At each IMFA interrupt, set the next output
10
values in the NDR bits.
No
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents