Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1672 of 1852
Nov 30, 2020
RX23W Group 48. Data Operation Circuit (DOC)
48.3 Operation
48.3.1 Data Comparison Mode
Figure 48.2 shows an example of the steps involved in data comparison mode operation by the DOC.
An example of operation when DCSEL is set to 0 (‘not equal to is to be detected as the result of data comparison) is
shown below.
(1) Writing 00b to the DOCR.OMS[1:0] bits places the DOC in the data comparison mode.
(2) Specify the standard value for comparison in the DODSR register.
(3) Write the value for comparison in the DODIR register.
(4) Write all values for use in comparison to the DODIR register.
(5) If the value written to the DODIR register is not equal to the value set in the DODSR register, the DOCR.DOPCF
flag becomes 1. If the DOCR.DOPCIE bit is 1, a data operation circuit interrupt is also issued.
Figure 48.2 Example of Operation in Data Comparison Mode
DODIR register
DODSR register
DOCR.OMS[1:0] bits
(1)
(2) (3) (4)
Write 1 to
DOCR.DOPCFCL bit
(5)
00bxxb
AAAAhxxxxh
5555hxxxxh
AAAAh AAAAh
DOCR.DOPCF flag