at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 186

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
15.5
15.5.1
186
SPI registers
AT90PWM81
SPI Control Register – SPCR
Figure 15-3.
Figure 15-4.
• Bit 7 – SPIE: SPI Interrupt Enable
This bit causes the SPI interrupt to be executed if SPIF bit in the SPSR Register is set and the if the Global
Interrupt Enable bit in SREG is set.
• Bit 6 – SPE: SPI Enable
When the SPE bit is written to one, the SPI is enabled. This bit must be set to enable any SPI operations.
Bit
Read/Write
Initial Value
7
SPIE
R/W
0
SCK (CPOL = 0)
mode 0
SCK (CPOL = 1)
mode 2
SAMPLE I
MOSI/MISO
CHANGE 0
MOSI PIN
CHANGE 0
MISO PIN
SCK (CPOL = 0)
mode 1
SCK (CPOL = 1)
mode 3
SAMPLE I
MOSI/MISO
CHANGE 0
MOSI PIN
CHANGE 0
MISO PIN
SPI Transfer Format with CPHA = 0
SS
SPI Transfer Format with CPHA = 1
SS
MSB first (DORD = 0)
LSB first (DORD = 1)
MSB first (DORD = 0)
LSB first (DORD = 1)
6
SPE
R/W
0
MSB
LSB
5
DORD
R/W
0
MSB
LSB
Bit 6
Bit 1
4
MSTR
R/W
0
Bit 6
Bit 1
Bit 5
Bit 2
Bit 5
Bit 2
3
CPOL
R/W
0
Bit 4
Bit 3
Bit 4
Bit 3
2
CPHA
R/W
0
Bit 3
Bit 4
Bit 3
Bit 4
1
SPR1
R/W
0
Bit 2
Bit 5
Bit 2
Bit 5
Bit 1
Bit 6
0
SPR0
R/W
0
Bit 1
Bit 6
7734M–AVR–03/10
LSB
MSB
SPCR
LSB
MSB

Related parts for at90pwm81-16se