Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1673 of 1852
Nov 30, 2020
RX23W Group 48. Data Operation Circuit (DOC)
48.3.2 Data Addition Mode
Figure 48.3 shows an example of the steps involved in data addition mode operation by the DOC.
(1) Writing 01b to the DOCR.OMS[1:0] bits selects data addition mode.
(2) Set the initial value in the DODSR register.
(3) Write the value for addition in the DODIR register. The result of the operation is stored in DODSR.
(4) Write all values for use in addition to the DODIR register.
(5) If the result of the operation is greater than FFFFh, the DOCR.DOPCF flag becomes 1. If the DOCR.DOPCIE bit is
1, a data operation circuit interrupt is also issued.
Figure 48.3 Example of Operation in Data Addition Mode
DODIR register
DODSR register
DOCR.OMS[1:0] bits
(1)
(2) (3) (4)
Write 1 to
DOCR.DOPCFCL bit
(5)
0002hxxxxh FFF4hFFF0h FFFAh
01bxxb
0008h
xxxxh
0004h 0006h
DOCR.DOPCF flag