ata6603 ATMEL Corporation, ata6603 Datasheet - Page 189

no-image

ata6603

Manufacturer Part Number
ata6603
Description
Microcontroller With Lin Transceiver, 5v Regulator And Watchdog
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ata6603-PLQW
Manufacturer:
JTEC
Quantity:
2
Part Number:
ata6603P
Quantity:
1 262
Part Number:
ata6603P-PLQW
Manufacturer:
ATMEL
Quantity:
2 000
Part Number:
ata6603P-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6603PPLQW
Manufacturer:
STM
Quantity:
5 006
4.16.1.4
4.16.1.5
4921D–AUTO–08/07
SPI Status Register – SPSR
SPI Data Register – SPDR
The SPI Data Register is a read/write register used for data transfer between the Register File
and the SPI Shift Register. Writing to the register initiates data transmission. Reading the regis-
ter causes the Shift Register Receive buffer to be read.
• Bit 7 – SPIF: SPI Interrupt Flag
• Bit 6 – WCOL: Write COLlision Flag
• Bit 5..1 – Res: Reserved Bits
• Bit 0 – SPI2X: Double SPI Speed Bit
Initial Value
Read/Write
Initial Value
Read/Write
When a serial transfer is complete, the SPIF Flag is set. An interrupt is generated if SPIE in
SPCR is set and global interrupts are enabled. If SS is an input and is driven low when the
SPI is in Master mode, this will also set the SPIF Flag. SPIF is cleared by hardware when
executing the corresponding interrupt handling vector. Alternatively, the SPIF bit is cleared
by first reading the SPI Status Register with SPIF set, then accessing the SPI Data Register
(SPDR).
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.
These bits are reserved bits in the ATA6602/ATA6603 and will always read as zero.
When this bit is written logic one the SPI speed (SCK Frequency) will be doubled when the
SPI is in Master mode (see
period will be two CPU clock periods. When the SPI is configured as Slave, the SPI is only
guaranteed to work at fosc/4 or lower.
The SPI interface on the ATA6602/ATA6603 is also used for program memory and
EEPROM downloading or uploading. See
gramming and verification.
Bit
Bit
MSB
SPIF
R/W
X
R
7
7
0
WCOL
R/W
X
R
6
6
0
Table 4-69 on page
R/W
X
5
R
5
0
R/W
X
4
R
4
0
“Serial Downloading” on page 313
R/W
X
3
R
3
0
188). This means that the minimum SCK
ATA6602/ATA6603
R/W
X
2
R
2
0
R/W
X
1
R
1
0
SPI2X
LSB
R/W
R/W
X
0
0
0
for serial pro-
Undefined
SPDR
SPSR
189

Related parts for ata6603