English
Language : 

3069RF-ZTAT Datasheet, PDF (244/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
7.4.4 Repeat Mode
Repeat mode is useful for cyclically transferring a bit pattern from a table to the programmable
timing pattern controller (TPC) in synchronization, for example, with 16-bit timer compare match.
Repeat mode can be selected for each channel independently.
One byte or word is transferred per request in repeat mode, as in I/O mode. A designated number
of these transfers are executed. One address is specified in the memory address register (MAR),
the other in the I/O address register (IOAR). At the end of the designated number of transfers,
MAR and ETCRH are restored to their original values and operation continues. The direction of
transfer is determined automatically from the activation source. The transfer is from the address
specified in IOAR to the address specified in MAR if activated by an SCI channel 0 receive-data-
full interrupt, and from the address specified in MAR to the address specified in IOAR otherwise.
Table 7.8 indicates the register functions in repeat mode.
Table 7.8 Register Functions in Repeat Mode
Register
23
MAR
23
All 1s
0
7
0
IOAR
7
0
ETCRH
7
0
ETCRL
Function
Activated by
SCI 0 Receive-
Data-Full
Other
Interrupt
Activation Initial Setting
Destination
address
register
Source
address
register
Destination or
source start
address
Source
address
register
Destination Source or
address destination
register address
Transfer counter
Number of
transfers
Initial transfer count
Number of
transfers
Operation
Incremented or
decremented at
each transfer until
ETCRH reaches
H'0000, then restored
to initial value
Held fixed
Decremented once
per transfer until
H'0000 is reached,
then reloaded from
ETCRL
Held fixed
[Legend]
MAR: Memory address register
IOAR: I/O address register
ETCR: Execute transfer count register
Rev. 5.0, 09/04, page 222 of 978