FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>MB91460E</strong> <strong>Series</strong><br />
5. Range Comparator<br />
5.1. Range Comparator Structure<br />
The Range Comparator has 4 comparsion groups with an upper and a lower threshold register each. The 32<br />
ADC channels can be enabled for range comparision and assigned to one of the 4 comparators individually. If<br />
enabled, the comparsision will set up to 2 flags for this ADC channel:<br />
• An interrupt flag RCOINT, signalling that the ADC result is outside the range or, by “inverted” configuration,<br />
inside the range.<br />
• An overflow flag RCOOF, showing that the range violation was an overflow and no underflow.<br />
Furthermore, each ADC channel can be enabled to send an interrupt request to the CPU, if the RCOINT flag is set.<br />
A/D Conversion result SAR[9:2]<br />
Upper/lower threshold regs Comparators<br />
RCOH0[7:0]<br />
RCOL0[7:0]<br />
RCOH1[7:0]<br />
RCOL1[7:0]<br />
RCOH2[7:0]<br />
RCOL2[7:0]<br />
RCOH3[7:0]<br />
RCOL3[7:0]<br />
AS[4:0] A/D Conversion current channel number<br />
A/D Conversion result register load pulse (strobe)<br />
ADE[31:0] A/D Channel Enable<br />
A/D Channel Control registers (per ADC channel)<br />
ADCC0 : RCOIE, RCOE, RCOS[1:0]<br />
ADCC1 : RCOIE, RCOE, RCOS[1:0]<br />
ADCC2 : RCOIE, RCOE, RCOS[1:0]<br />
ADCC3 : RCOIE, RCOE, RCOS[1:0]<br />
...<br />
ADCC30 : RCOIE, RCOE, RCOS[1:0]<br />
ADCC31 : RCOIE, RCOE, RCOS[1:0]<br />
RCOS[1:0]: Select one of the 4 comparators for this channel<br />
RCOE : Enable Comparision for this ADC channel<br />
RCOIE: Enable Comparision Interrupt for this ADC channel<br />
><br />
<<br />
><br />
<<br />
><br />
<<br />
><br />
<<br />
Flag<br />
setting<br />
logic<br />
RCOOF<br />
[0:31]<br />
32<br />
Overflow<br />
flags<br />
RCOINT<br />
[0:31]<br />
32<br />
Interrupt<br />
flags<br />
40 DS705-00002-1v3-E<br />
AND<br />
RCOIE[0:31]<br />
OR<br />
RCOIRS[0:31]<br />
to R-Bus<br />
to R-Bus<br />
RCOIRQ<br />
Inverted Range Selection register:<br />
Set the flags, if the ADC result is<br />
inside upper and lower threshold,<br />
instead of outside upper or lower<br />
threshold (default).