atmega103 ATMEL Corporation, atmega103 Datasheet - Page 62
atmega103
Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
1.ATMEGA103.pdf
(141 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Company:
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
- Current page: 62 of 141
- Download datasheet (3Mb)
Data Modes
SPI Control Register – SPCR
62
ATmega103(L)
the SS pin is brought high. If the SS pin is brought high during a transmission, the SPI
will stop sending and receiving immediately and both data received and data sent must
be considered as lost.
There are four combinations of SCK phase and polarity with respect to serial data that
are determined by control bits CPHA and CPOL. The SPI data transfer formats are
shown in Figure 39 and Figure 40.
Figure 39. SPI Transfer Format with CPHA = 0 and DORD = 0
Figure 40. SPI Transfer Format with CPHA = 1 and DORD = 0
• 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 Global Interrupts are enabled.
• Bit 6 – SPE: SPI Enable
When the SPE bit is set (one), the SPI is enabled and SS, MOSI, MISO and SCK are
connected to pins PB0, PB1, PB2 and PB3.
(FOR REFERENCE)
(FOR REFERENCE)
Bit
$0D ($2D)
Read/Write
Initial Value
(FROM MASTER)
(FROM MASTER)
SS (TO SLAVE)
SS (TO SLAVE)
(FROM SLAVE)
(FROM SLAVE)
SCK (CPOL=0)
SCK (CPOL=1)
SCK (CPOL=0)
SCK (CPOL=1)
SCK CYCLE #
SCK CYCLE #
SAMPLE
SAMPLE
MOSI
MISO
MOSI
MISO
SPIE
R/W
7
0
* Not defined but normally MSB of character just received.
* Not defined but normally LSB of previously transmitted character.
SPE
R/W
*
6
0
MSB
MSB
1
MSB
MSB
1
DORD
R/W
5
0
2
6
6
2
6
6
MSTR
R/W
3
4
0
3
5
5
5
5
4
CPOL
4
4
4
R/W
4
4
3
0
5
5
3
3
3
3
CPHA
R/W
2
0
6
6
2
2
2
2
SPR1
R/W
1
0
7
7
1
1
1
1
SPR0
8
LSB
LSB
8
R/W
LSB
0
0
0945I–AVR–02/07
LSB
SPCR
*
Related parts for atmega103
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
U6046BREAR WINDOW HEATING TIMER / LONG-TERM TIMER
Manufacturer:
ATMEL Corporation
Datasheet: