Data Addition Mode - Renesas RX100 Series User Manual

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
29.3.2

Data Addition Mode

Figure 29.3 shows an example of the steps involved in data addition mode operation by the data operation circuit.
(1) Writing 01b to the DOCR.OMS[1:0] bits selects data addition mode.
(2) 16-bit data is set in the DODSR register as the initial value.
(3) 16-bit data to be added is written to DODIR. The result of the operation is stored in DODSR.
(4) Writing of 16-bit data continues until all data for addition have been written to DODIR.
(5) If the result of an operation is greater than FFFFh, the DOCR.DOPCF flag is set to 1. When the DOCR.DOPCIE bit
is 1, a data operation circuit interrupt is also generated.
DOCR.OMS[1:0] bits
DODSR register
DODIR register
1
DOCR.DOPCF flag
0
Figure 29.3
Example of Operation in Data Addition Mode
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
xxb
01b
xxxxh
FFF0h
xxxxh
(1)
(2)
FFF4h
FFFAh
0004h
0006h
(3)
(4)
(5)
29. Data Operation Circuit (DOC)
0002h
0008h
Write 1 to
DOCR.DOPCFCL bit
Page 904 of 1041

Advertisement

Table of Contents
loading

Table of Contents