English
Language : 

R01AN1504EJ0100 Datasheet, PDF (36/50 Pages) Renesas Technology Corp – Using the DTC to Perform Continuous Clock
RL78/G14
4.8.12 DTC Initialization
Figure 4.16 shows the DTC initialization.
Using the DTC to Perform Continuous Clock
Synchronous Serial Communication
R_DTC_Create
Supply an input clock to the DTC
Disable to active the DTC
Set the DTC base address
PER1 register
DTCEN bit ← 1: Enables input clock supply
DTCEN0 register ← 00H
DTCEN1 register ← 00H
DTCEN2 register ← 00H
DTCEN3 register ← 00H
DTCEN4 register ← 00H
DTCBAR register ← FDH
Set the start address of
the DTC control data to
the DTC vector table
Set DTCD0
Set DTCD1
return
Figure 4.16 DTC Initialization
DTCCR0 register ← 18H
SZ bit = 0: Transfer byte size: 8-bit
CHNE bit = 1: Chain transfers enabled
DAMOD bit = 1: Transfer destination address incremented
SAMOD bit = 0: Transfer source address fixed
MODE bit = 0: Normal mode
DTBLS0 register ← 01H: Block size of the data to be transferred
by one activation: 1 byte
DTCCT0 register ← 07H: Number of DTC data transfers: 7
DTRLD0 register ← 07H: Transfer count in repeat mode: 7
DTSAR0 register ← FF10H: Specify the transfer source address to FF10H
DTDAR0 register ← E900H: Specify the transfer destination address to E900H
DTCCR1 register ← 04H
SZ bit = 0: Transfer byte size: 8-bit
CHNE bit = 0: Chain transfers disabled
DAMOD bit = 0: Transfer destination address fixed
SAMOD bit = 1: Transfer source address incremented
MODE bit = 0: Normal mode
DTBLS1 register ← 01H: Block size of the data to be transferred
by one activation: 1 byte
DTCCT1 register ← 07H: Number of DTC data transfers: 7
DTSAR1 register ← E911H: Specify the transfer source address to E911H
DTDAR1 register ← FF10H: Specify the transfer destination address to FF10H
R01AN1504EJ0100 Rev. 1.00
Feb. 14, 2014
Page 36 of 47