347
XMEGA B [DATASHEET]
8291B–AVR–01/2013
26.16.5 RESH – Result register High
For all result registers and with any ADC result resolution, a signed number is represented in 2’s complement form, and
the msb represents the sign bit.
The RESL and RESH register pair represents the 16-bit value, ADCRESULT. Reading and writing 16-bit values require
special attention. Refer to
“Accessing 16-bit Registers” on page 11
26.16.5.1 12-bit Mode, Left Adjusted
Bit 7:0 – RES[11:4]: Channel Result High byte
These are the eight msbs of the 12-bit ADC result.
26.16.5.2 12-bit Mode, Right Adjusted
Bit 7:4 – Reserved
These bits will in practice be the extension of the sign bit, CHRES11, when the ADC works in differential mode, and set
to zero when the ADC works in signed mode.
Bits 3:0 – RES[11:8]: Channel Result High bits
These are the four msbs of the 12-bit ADC result.
26.16.5.3 8-bit Mode
Bit 7:0 – Reserved
These bits will in practice be the extension of the sign bit, CHRES7, when the ADC works in signed mode, and set to zero
when the ADC works in single-ended mode.
26.16.6 RESL – Result register Low
26.16.6.1 12-/8-bit Mode
Bit 7:0 – RES[7:0]: Result Low byte
These are the eight lsbs of the ADC result.
26.16.6.2 12-bit Mode, Left Adjusted
Bit 7:4 – RES[3:0]: Result Low bits
These are the four lsbs of the 12-bit ADC result.
Bit 3:0 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always write these bits to zero
when this register is written.
Bit
7
6
5
4
3
2
1
0
12-bit, left.
RES[11:4]
12-bit, right
–
–
–
–
RES[11:8]
8-bit
–
–
–
–
–
–
–
–
Read/Write
R
R
R
R
R
R
R
R
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
12-/8-bit,
right
RES[7:0]
12-bit, left.
RES[3:0]
–
–
–
–
Read/Write
R
R
R
R
R
R
R
R
Initial Value
0
0
0
0
0
0
0
0
Содержание XMEGA B
Страница 320: ...320 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 12 7 segments Character Table...
Страница 321: ...321 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 13 14 segments Character Table...
Страница 322: ...322 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 14 16 segments Character Table...
Страница 412: ...412 XMEGA B DATASHEET 8291B AVR 01 2013...
Страница 413: ...413 XMEGA B DATASHEET 8291B AVR 01 2013...
Страница 414: ...414 XMEGA B DATASHEET 8291B AVR 01 2013...