R01UH0823EJ0100 Rev.1.00
Page 1654 of 1823
Jul 31, 2019
RX23W Group
48. Data Operation Circuit (DOC)
48.3
Operation
48.3.1
Data Comparison Mode
shows an example of the steps involved in data comparison mode operation by the data operation circuit.
The following is an example of operation when DCSEL is set to 0 (data mismatch is detected as a result of data
comparison).
(1) Writing 00b to the DOCR.OMS[1:0] bits selects data comparison mode.
(2) The 16-bit reference data is set in DODSR.
(3) 16-bit data for comparison is written to DODIR.
(4) Writing of 16-bit data continues until all data for comparison have been written to DODIR.
(5) If a value written to DODIR does not match that in DODSR
, the DOCR.DOPCF flag is set to 1. When the
DOCR.DOPCIE bit is 1, a data operation circuit interrupt is also generated.
Note 1. When DOCR.DCSEL = 0
Figure 48.2
Example of Operation in Data Comparison Mode
DODIR register
1
0
DODSR register
DOCR.OMS[1:0] bits
(1)
(2)
(3)
(4)
Write 1 to
DOCR.DOPCFCL bit
(5)
00b
xxb
AAAAh
xxxxh
5555h
xxxxh
AAAAh
AAAAh
DOCR.DOPCF flag