Fujitsu FR81S User Manual

Page of 2342
CHAPTER 44: 12-BIT A/D CONVERTER 
 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER
 : 12-BIT A/D CONVERTER 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
100 
Table 5-9 Continuous detecting function operation condition 
Continuous detection 
measurement operation 
 
Each activation channel is controlled. 
 
It operates whenever range comparison execution enable setting 
(ADRCCS:RCOE="1"). 
Continuous detection 
count 
 
The count can select 1 to 7 times by continuous detection count 
specification (ADRCCS:RCOCD2-RCOCD0). 
 
The state of the detection count can be confirmed by continuous detection 
count state indicate (ADRCCS:RCOCD2 to RCOCD0). 
Clear condition 
 
When range comparison execution disable setting (ADRCCS:RCOE="0") 
 
When undetection by range comparison result 
Increment condition 
 
When detection by range comparison result 
However, it stops by the continuous detection count specification value 
when reaching continuous detection count specification 
(ADRCCS:RCOCD2 to RCOCD0). 
 
Notes: 
 
When confirming it outside the range, the continuous detection measurement does not clear to 0 times 
and continue the continuous detection even if the state of the range comparison result changes from 
larger than the upper bound threshold into smaller than lower bound threshold. 
 
When you want to initialize the continuous detection count of the range comparison result, please 
change to enable setting (ADRCCS.RCOE="0" → "1") after the setting of the range comparison 
execution disable. while the A/D is not being requested. 
 
After two clocks with the peripheral clock from flag set (ADTCS.INT="1") of the interrupt control bit 
by the A/D conversion completion interrupt, the range comparison interrupt factor flag 
(ADRCIF.RCINT) is set in "1" by the continuous detection. 
 
  Range comparison over flag control 
When confirmation outside the range of the range comparison (ADRCCS.RCOIRS="0"), the indication of 
larger than upper bound threshold or less than lower bound threshold of each activation channel can be 
confirmed with the range comparison threshold over flag bit (ADRCOT.RCOOF[n]). 
Table 5-10 Range comparison upper and lower bound threshold select 
Range comparison result 
Range comparison threshold over flag bit 
(ADRCOT:RCOOF) 
Confirmation outside 
the range 
(ADRCCS: 
RCOIRS="0") 
Confirmation inside 
the range 
(ADRCCS: 
RCOIRS="1") 
Outside the range (larger than upper bound threshold) 
A/D data bit > Upper bound threshold setting register 
"1" 
The last value is 
maintained 
Inside the range 
A/D data bit ≤ Upper bound threshold setting register 
and 
A/D data bit ≥ Lower bound threshold setting register 
The last value is 
maintained 
The last value is 
maintained 
Outside the range (Smaller than lower bound threshold) 
A/D data bit < Lower bound threshold setting register 
"0" 
The last value is 
maintained 
Moreover, the range comparison threshold over flag bit (ADRCOT.RCOOF) maintains the content set in 
range comparison threshold over flag bit (ADRCOT.RCOOF) while range comparison interrupt factor flag 
(ADRCIF.RCINT) is being set in "1". 
MB91520 Series
MN705-00010-1v0-E
1903