atmega103 ATMEL Corporation, atmega103 Datasheet - Page 60

no-image

atmega103

Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
Part Number:
atmega103-6AI
Manufacturer:
Atmel
Quantity:
10 000
Serial Peripheral
Interface – SPI
60
ATmega103(L)
The Serial Peripheral Interface (SPI) allows high-speed synchronous data transfer
between the ATmega103(L) and peripheral devices or between several AVR devices.
The ATmega103(L) SPI features include the following:
Figure 37. SPI Block Diagram
The interconnection between Master and Slave CPUs with SPI is shown in Figure 38.
The PB1 (SCK) pin is the clock output in the Master mode and is the clock input in the
Slave mode. Writing to the SPI Data Register of the Master CPU starts the SPI clock
generator, and the data written shifts out of the PB2 (MOSI) pin and into the PB2 (MOSI)
pin of the Slave CPU. After shifting one byte, the SPI clock generator stops, setting the
End-of-Transmission Flag (SPIF). If the SPI interrupt enable bit (SPIE) in the SPCR
Register is set, an interrupt is requested. The Slave Select input, PB0(SS), is set low to
select an individual Slave SPI device. The two Shift Registers in the Master and the
Slave can be considered as one distributed 16-bit circular Shift Register. This is shown
in Figure 38. When data is shifted from the Master to the Slave, data is also shifted in
the opposite direction, simultaneously. This means that during one shift cycle, data in
the Master and the Slave are interchanged.
Full-duplex, Three-wire Synchronous Data Transfer
Master or Slave Operation
LSB First or MSB First Data Transfer
Four Programmable Bit Rates
End-of-Transmission Interrupt Flag
Write Collision Flag Protection
Wake-up from Idle Mode (Slave Mode only)
0945I–AVR–02/07

Related parts for atmega103