R01UH0822EJ0100 Rev.1.00
Page 903 of 1041
Jul 31, 2019
RX13T Group
29. Data Operation Circuit (DOC)
29.3
Operation
29.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 29.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