R01UH0822EJ0100 Rev.1.00
Page 901 of 1041
Jul 31, 2019
RX13T Group
29. Data Operation Circuit (DOC)
29.2
Register Descriptions
29.2.1
DOC Control Register (DOCR)
Note 1. Valid only when data comparison mode is selected.
OMS[1:0] Bits (Operating Mode Select)
These bits select the operating mode of the data operation circuit.
DCSEL Bit (Detection Condition Select)
This bit is valid only when data comparison mode is selected.
This bit selects the condition for detection in data comparison mode.
DOPCIE Bit (Data Operation Circuit Interrupt Enable)
Setting this bit to 1 enables interrupts from the data operation circuit.
DOPCF Flag (Data Operation Circuit Flag)
[Setting conditions]
The condition selected by the DCSEL bit is met
A result of data addition is greater than FFFFh
A result of data subtraction is less than 0000h
[Clearing condition]
Writing 1 to the DOPCFCL bit
Setting this bit to 1 clears the DOPCF flag.
This bit is read as 0.
Address(es): 0008 B080h
b7
b6
b5
b4
b3
b2
b1
b0
—
DOPCF
CL
DOPCF DOPCI
E
—
DCSEL
OMS[1:0]
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b1, b0
Operating Mode Select
b1 b0
0 0: Data comparison mode
0 1: Data addition mode
1 0: Data subtraction mode
1 1: Setting prohibited
R/W
b2
Detection Condition Select
Result of data comparison
0: Data mismatch is detected.
1: Data match is detected.
R/W
b3
—
Reserved
This bit is read as 0. The write value should be 0.
R/W
b4
Data Operation Circuit
Interrupt Enable
0: Disables interrupts from the data operation circuit.
1: Enables interrupts from the data operation circuit.
R/W
b5
Data Operation Circuit Flag
Indicates the result of an operation.
R
b6
DOPCF Clear
0: Maintains the DOPCF flag state.
1: Clears the DOPCF flag.
R/W
b7
—
Reserved
This bit is read as 0. The write value should be 0.
R/W