R01UH0823EJ0100 Rev.1.00
Page 1655 of 1823
Jul 31, 2019
RX23W Group
48. Data Operation Circuit (DOC)
48.3.2
Data Addition Mode
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.
Figure 48.3
Example of Operation in Data Addition Mode
DODIR register
1
0
DODSR register
DOCR.OMS[1:0] bits
(1)
(2)
(3)
(4)
Write 1 to
DOCR.DOPCFCL bit
(5)
0002h
xxxxh
FFF4h
FFF0h
FFFAh
01b
xxb
0008h
xxxxh
0004h
0006h
DOCR.DOPCF flag