
How to Use A/D Converter for S6J3110/ S6J3120 Series
Document No. 002-04457 Rev. *B
22
4.6
Range Comparison Control Status Register (ADRCCS)
The Range Comparison Control Status Register (ADRCCS) performs continuous detection count instructions,
inside/outside-range check selection, range comparison interrupt request permission/prohibition, range comparison
execution permission/prohibition and upper and lower threshold selection.
Table 8. Range Comparison Control Status Register Example of Settings
Bit
Bit name
Description
Setting register
Value
Contents
7-5
RCOCD[2-0]
Continuous Detection Count Specification
Bits
1
Set the continuous
detection count to 1
4
RCOIRS
Inside/outside-Range Check Selection Bit
1
Inside range
3
RCOIE
Range Comparison Interrupt Request
Enable Bit
1
Range comparison
interrupt enabled
2
RCOE
Range Comparison Execution Enable Bit
1
Range comparison
execution enabled
1-0
RCOTS[1-0]
Upper and Lower Threshold Selection Bits
0
Upper Threshold
register
0/Lower Threshold
register0
4.7
Upper Threshold Setting Register (ADRCUT)
The Upper Threshold Setting Register (ADRCUT) sets the upper threshold to be used to compare ranges.
Table 9. Upper Threshold Setting Register Example of Settings
Bit
Bit name
Description
Setting register
Value
Contents
15-12
Reserved
Reserved
0
-
11-0
C[11-0]
Upper Threshold Bits
0x800 (*)
Upper Threshold
Note:
*
This upper threshold value is example.
4.8
Lower Threshold Setting Register (ADRCLT)
The Lower Threshold Setting Register (ADRCLT) sets the lower threshold to be used to compare ranges.
Table 10. Lower Threshold Setting Register Example of Settings
Bit
Bit name
Description
Setting register
Value
Contents
15-12
Reserved
Reserved
0
-
11-0
C[11-0]
Lower Threshold Bits
0x555 (*)
Lower Threshold
Note:
*
This lower threshold value is example.