Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1670 of 1852
Nov 30, 2020
RX23W Group 48. Data Operation Circuit (DOC)
48.2 Register Descriptions
48.2.1 DOC Control Register (DOCR)
Note 1. Valid only when data comparison mode is selected.
The DOCR register specifies the operation of DOC, or enabling or disabling of the interrupt.
OMS[1:0] Bits (Operating Mode Select)
These bits select the operating mode of the DOC.
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 DOC.
DOPCF Flag (Data Operation Result 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
Address(es): DOC.DOCR 0008 B080h
b7 b6 b5 b4 b3 b2 b1 b0
DOPCF
CL
DOPCF
DOPCI
E
DCSEL OMS[1:0]
Value after reset:
00000000
Bit Symbol Bit Name Description R/W
b1, b0 OMS[1:0] 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 DCSEL Detection Condition Select
*1
0: ‘Not equal to’ is to be detected.
1: ‘Equal to’ is to be detected.
R/W
b3 Reserved This bit is read as 0. The write value should be 0. R/W
b4 DOPCIE Data Operation Circuit
Interrupt Enable
0: Interrupt disabled
1: Interrupt enabled
R/W
b5 DOPCF Data Operation Result Flag Indicates the result of an operation. R
b6 DOPCFCL Data Operation Result Clear 0: Retain the value of the DOPCF flag.
1: Clears the DOPCF flag.
R/W
b7 Reserved This bit is read as 0. The write value should be 0. R/W