21.07.2013 Views

FR60 MB91460E Series - Microcontrollers - Fujitsu

FR60 MB91460E Series - Microcontrollers - Fujitsu

FR60 MB91460E Series - Microcontrollers - Fujitsu

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.2.3. Inverted Range Selection register<br />

<strong>MB91460E</strong> <strong>Series</strong><br />

The RCOIRS register controlles that the comparision should check for “out of range” or “inside range”.<br />

The 32 bits of RCOIRS is organized “per ADC channel”. ADC channel 0 is located on the MSB of the register<br />

and ADC channel 31 is on the LSB.<br />

• RCOIRS : Access: Word, Half-word, Byte<br />

31 30 29 28 27 26 259 24 Bit<br />

RCOIRS0 RCOIRS1 RCOIRS2 RCOIRS3 RCOIRS4 RCOIRS5 RCOIRS6 RCOIRS7<br />

0 0 0 0 0 0 0 0 Initial value<br />

R/W R/W R/W R/W R/W R/W R/W R/W Attribute<br />

23 22 21 20 19 18 17 16 Bit<br />

RCOIRS8 RCOIRS9 RCOIRS10 RCOIRS11 RCOIRS12 RCOIRS13 RCOIRS14 RCOIRS15<br />

0 0 0 0 0 0 0 0 Initial value<br />

R/W R/W R/W R/W R/W R/W R/W R/W Attribute<br />

15 14 13 12 11 10 9 8 Bit<br />

RCOIRS16 RCOIRS17 RCOIRS18 RCOIRS19 RCOIRS20 RCOIRS21 RCOIRS22 RCOIRS23<br />

0 0 0 0 0 0 0 0 Initial value<br />

R/W R/W R/W R/W R/W R/W R/W R/W Attribute<br />

7 6 5 4 3 2 1 0 Bit<br />

RCOIRS24 RCOIRS25 RCOIRS26 RCOIRS27 RCOIRS28 RCOIRS29 RCOIRS30 RCOIRS31<br />

0 0 0 0 0 0 0 0 Initial value<br />

R/W R/W R/W R/W R/W R/W R/W R/W Attribute<br />

Note that bit[31] is assigned to ADC channel 0, bit[30] is assigned to ADC channel one and so on.<br />

[bits 31:0] RCOIRS[0:31] (Inverted Range Select)<br />

The RCOIRS bits control how the Range Comparator result flags are set.<br />

• If the RCOIRS[n] is 0, the flags are set when the ADC result is above the upper threshold<br />

OR below the lower threshold. That is called “out of range” mode.<br />

• If the RCOIRS[n] is 1, the flags are set when the ADC result is below or equal the upper threshold<br />

AND above or equal the lower threshold. That is called “inside range” mode.<br />

RCOIRS<br />

Function<br />

n<br />

0 Range comparision for this ADC channel checks for “out of range” (default)<br />

1 Range comparision for this ADC channel checks for “inside range”<br />

DS705-00002-1v3-E 43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!