
230
XMEGA A [MANUAL]
8077I–AVR–11/2012
20.7.4 DATA – Data register
The DATA register is used for sending and receiving data. Writing to the register initiates the data transmission, and the
byte written to the register will be shifted out on the SPI output line. Reading the register causes the shift register receive
buffer to be read, returning the last byte successfully received.
20.8
Register Summary
20.9
Interrupt Vector Summary
Table 20-4. SPI interrupt vector and its offset word address.
Bit
76543210
+0x03
DATA[7:0]
Read/Write
R/W
Initial Value
00000000
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Page
+0x00
CTRL
CLK2X
ENABLE
DORD
MASTER
MODE[1:0]
PRESCALER[1:0]
+0x01
INTCTRL
–
INTLVL[1:0]
+0x02
STATUS
IF
WRCOL
–
+0x03
DATA
DATA[7:0]
Offset
Source
Interrupt Description
0x00
SPI_vect
SPI interrupt vector