Rainbow-electronics ATmega128L Manual do Utilizador Página 163

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 331
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 162
163
ATmega128(L)
2467B09/01
SPIF bit is cleared by first reading the SPI status register with SPIF set, then accessing
the SPI Data Register (SPDR).
Bit 6 - WCOL: Write COLlision flag
The WCOL bit is set if the SPI data register (SPDR) is written during a data transfer. The
WCOL bit (and the SPIF bit) are cleared by first reading the SPI Status Register with
WCOL set, and then accessing the SPI Data Register.
Bit 5..1 - Res: Reserved Bits
These bits are reserved bits in the ATmega128 and will always read as zero.
Bit 0 - SPI2X: Double SPI Speed Bit
When this bit is written logic one the SPI speed (SCK Frequency) will be doubled when
the SPI is in master mode (see
Table 72). This means that the minimum SCK period will
be 2 CPU clock periods. When the SPI is configured as Slave, the SPI is only guaran-
teed to work at f
osc
/ 4 or lower.
The SPI interface on the ATmega128 is also used for program memory and EEPROM
downloading or uploading. See page 292 for serial programming and verification.
SPI Data Register SPDR
The SPI Data Register is a read/write register used for data transfer between the regis-
ter file and the SPI Shift register. Writing to the register initiates data transmission.
Reading the register causes the Shift Register Receive buffer to be read.
Data Modes There are four combinations of SCK phase and polarity with respect to serial data,
which are determined by control bits CPHA and CPOL. The SPI data transfer formats
are shown in
Figure 76 and Figure 77. Data bits are shifted out and latched in on oppo-
site edges of the SCK signal, ensuring sufficient time for data signals to stabilize. This is
clearly seen by summarizing
Table 70 and Table 71, as done below:
Bit 76543210
MSB LSB SPDR
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial valueXXXXXXXXUndefined
Table 73. CPOL Functionality
Leading edge Trailing edge SPI mode
CPOL = 0, CPHA = 0 Sample (Rising) Setup (Falling) 0
CPOL = 0, CPHA = 1 Setup (Rising) Sample (Falling) 1
CPOL = 1, CPHA = 0 Sample (Falling) Setup (Rising) 2
CPOL = 1, CPHA = 1 Setup (Falling) Sample (Rising) 3
Vista de página 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 330 331

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