Rainbow-electronics ATmega64C1 Manual do Utilizador Página 158

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 366
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 157
158
7647A–AVR–02/08
ATmega32/64/M1/C1
the required clock pulses on the SCK line to interchange data. Data is always shifted from Mas-
ter to Slave on the Master Out – Slave In, MOSI, line, and from Slave to Master on the Master In
– Slave Out, MISO, line. After each data packet, the Master will synchronize the Slave by pulling
high the Slave Select, SS
, line.
When configured as a Master, the SPI interface has no automatic control of the SS
line. This
must be handled by user software before communication can start. When this is done, writing a
byte to the SPI Data Register starts the SPI clock generator, and the hardware shifts the eight
bits into the Slave. 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 Master may continue to shift the next byte by writing it into SPDR, or
signal the end of packet by pulling high the Slave Select, SS
line. The last incoming byte will be
kept in the Buffer Register for later use.
When configured as a Slave, the SPI interface will remain sleeping with MISO tri-stated as long
as the SS
pin is driven high. In this state, software may update the contents of the SPI Data
Register, SPDR, but the data will not be shifted out by incoming clock pulses on the SCK pin
until the SS
pin is driven low. As one byte has been completely shifted, the end of transmission
flag, SPIF is set. If the SPI Interrupt Enable bit, SPIE, in the SPCR Register is set, an interrupt is
requested. The Slave may continue to place new data to be sent into SPDR before reading the
incoming data. The last incoming byte will be kept in the Buffer Register for later use.
Figure 15-2. SPI Master-slave Interconnection
The system is single buffered in the transmit direction and double buffered in the receive direc-
tion. This means that bytes to be transmitted cannot be written to the SPI Data Register before
the entire shift cycle is completed. When receiving data, however, a received character must be
read from the SPI Data Register before the next character has been completely shifted in. Oth-
erwise, the first byte is lost.
In SPI Slave mode, the control logic will sample the incoming signal of the SCK pin. To ensure
correct sampling of the clock signal, the frequency of the SPI clock should never exceed f
clkio
/4.
When the SPI is enabled, the data direction of the MOSI, MISO, SCK, and SS
pins is overridden
according to Table 15-1. For more details on automatic port overrides, refer to “Alternate Port
Functions” on page 65.
Table 15-1. SPI Pin Overrides
(1)
Pin Direction, Master SPI Direction, Slave SPI
MOSI User Defined Input
SHIFT
ENABLE
Vista de página 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 365 366

Comentários a estes Manuais

Sem comentários

Alpine CDA-7897 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für CD Spieler Alpine CDA-7897.
Wir stellen PDF-Handbücher Alpine CDA-7897 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung






Weitere Produkte und Handbücher für CD Spieler Alpine

Modelle Dokumententyp
CHM-S655 Bedienungsanleitung    Alpine CHM-S655 User's Manual, 40 Seiten
CDE-154BT Bedienungshandbuch   Alpine CDE-154BT Owner's Manual, 56 Seiten
CHM-S665RF Bedienungsanleitung     Alpine CHM-S665RF User's Manual, 40 Seiten
KH 2279 Bedienungsanleitung   Alpine KH 2279 User's Manual [en] , 30 Seiten
TDA-7551E Bedienungsanleitung   Alpine TDA-7551E User's Manual, 56 Seiten
CDE-7853E Bedienungsanleitung   Alpine CDE-7853E User's Manual, 19 Seiten
IVA-W205 Bedienungsanleitung     Alpine IVA-W205 User's Manual [Dutch] , 238 Seiten
CDE-152 Bedienungshandbuch   Alpine CDE-152 Owner's Manual, 34 Seiten
NVE-N099P Bedienungsanleitung    Alpine NVE-N099P User's Manual, 18 Seiten
CDA-9827 Bedienungsanleitung   Alpine CDA-9827 User's Manual [en] , 42 Seiten
MDM-7741 Bedienungshandbuch   Alpine MDM-7741 Owner`s manual, 19 Seiten
IVA-D901 Installationsanleitung   Alpine IVA-D901 Installation guide, 24 Seiten
CDA-9811 Bedienungsanleitung   2003 SPRING CATALOG, 10 Seiten
CHM-S665RF - CD Changer Bedienungsanleitung   www.alpine-usa.com GUIDED NAVIGATION, 7 Seiten
CDA-W560E Bedienungsanleitung   1 Premere - Alpine Europe, 15 Seiten
TDA-7587R Bedienungsanleitung    CDA-7876RB CDA-7873R TDA-7588RB TDA-7587R [en] , 2 Seiten
CDA-7865R Bedienungsanleitung   CDA-7865R - Alpine Europe, 31 Seiten
CDA-9855 Bedienungshandbuch     Alpine CDA-9855 Owner`s manual, 145 Seiten
CVA-1003R Bedienungshandbuch    Alpine CVA-1003R Owner`s manual, 58 Seiten
CDA-118M Bedienungsanleitung   CDA-118M, 74 Seiten