Data Subtraction Mode; Interrupt Requests; Usage Note; Module Stop Function Setting - Renesas RX100 Series User Manual

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
29.3.3

Data Subtraction Mode

Figure 29.4 shows an example of the steps involved in data subtraction mode operation by the data operation circuit.
(1) Writing 10b to the DOCR.OMS[1:0] bits selects data subtraction mode.
(2) 16-bit data is set in the DODSR register as the initial value.
(3) 16-bit data to be subtracted is written to DODIR. The result of the operation is stored in DODSR.
(4) Writing of 16-bit data continues until all data for subtraction have been written to DODIR.
(5) If the result of an operation is less than 0000h, the DOCR.DOPCF flag is set to 1. When the DOCR.DOPCIE bit is
1, a data operation circuit interrupt is also generated.
DOCR.OMS[1:0] bits
DODSR register
DODIR register
1
DOCR.DOPCF flag
0
Figure 29.4
Example of Operation in Data Subtraction Mode
29.4

Interrupt Requests

The data operation circuit generates the data operation circuit interrupt as an interrupt request. When an interrupt source
is generated, the data operation circuit flag corresponding to the interrupt is set to 1. Table 29.2 describes the interrupt
request.
Table 29.2
Interrupt Request from Data Operation Circuit
Interrupt Request
Data operation circuit
interrupt
29.5

Usage Note

29.5.1

Module Stop Function Setting

Operation of the data operation circuit can be disabled or enabled using module stop control register B (MSTPCRB). The
initial setting is for the data operation circuit to be stopped. Register access is enabled by releasing the module stop state.
For details, refer to section 11, Low Power Consumption .
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
xxb
10b
xxxxh
000Fh
xxxxh
(1)
(2)
Data Operation Circuit Flag
DOPCF
000Bh
0005h
0004h
0006h
(3)
(4)
(5)
Interrupt Generation Timing
 The compared values either match or mismatch
 The result of data addition is greater than FFFFh
 The result of data subtraction is less than 0000h
29. Data Operation Circuit (DOC)
FFFDh
0008h
Write 1 to
DOCR.DOPCFCL bit
Page 905 of 1041

Advertisement

Table of Contents
loading

Table of Contents