at91sam9263 ATMEL Corporation, at91sam9263 Datasheet - Page 462
at91sam9263
Manufacturer Part Number
at91sam9263
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet
1.AT91SAM9263.pdf
(1065 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
at91sam9263-CJ
Manufacturer:
ATMEL
Quantity:
181
Company:
Part Number:
at91sam9263-EK
Manufacturer:
Atmel
Quantity:
135
Company:
Part Number:
at91sam9263B-CU
Manufacturer:
IDT
Quantity:
1 043
Part Number:
at91sam9263B-CU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
at91sam9263B-CU-100
Manufacturer:
ATMEL
Quantity:
1 000
- Current page: 462 of 1065
- Download datasheet (16Mb)
31.6.3
Master Mode Operations
When configured in Master Mode, the SPI operates on the clock generated by the internal pro-
grammable baud rate generator. It fully controls the data transfers to and from the slave(s)
connected to the SPI bus. The SPI drives the chip select line to the slave and the serial clock
signal (SPCK).
The SPI features two holding registers, the Transmit Data Register and the Receive Data Regis-
ter, and a single Shift Register. The holding registers maintain the data flow at a constant rate.
After enabling the SPI, a data transfer begins when the processor writes to the SPI_TDR (Trans-
mit Data Register). The written data is immediately transferred in the Shift Register and transfer
on the SPI bus starts. While the data in the Shift Register is shifted on the MOSI line, the MISO
line is sampled and shifted in the Shift Register. Transmission cannot occur without reception.
Before writting the TDR, the PCS field must be set in order to select a slave.
If new data is written in SPI_TDR during the transfer, it stays in it until the current transfer is
completed. Then, the received data is transferred from the Shift Register to SPI_RDR, the data
in SPI_TDR is loaded in the Shift Register and a new transfer starts.
The transfer of a data written in SPI_TDR in the Shift Register is indicated by the TDRE bit
(Transmit Data Register Empty) in the Status Register (SPI_SR). When new data is written in
SPI_TDR, this bit is cleared. The TDRE bit is used to trigger the Transmit PDC channel.
The end of transfer is indicated by the TXEMPTY flag in the SPI_SR register. If a transfer delay
(DLYBCT) is greater than 0 for the last transfer, TXEMPTY is set after the completion of said
delay. The master clock (MCK) can be switched off at this time.
The transfer of received data from the Shift Register in SPI_RDR is indicated by the RDRF bit
(Receive Data Register Full) in the Status Register (SPI_SR). When the received data is read,
the RDRF bit is cleared.
If the SPI_RDR (Receive Data Register) has not been read before new data is received, the
Overrun Error bit (OVRES) in SPI_SR is set. As long as this flag is set, data is loaded in
SPI_RDR. The user has to read the status register to clear the OVRES bit.
Figure 31-6 on page 464
shows a block diagram of the SPI when operating in Master Mode.
Fig-
ure 31-6 on page 464
shows a flow chart describing how transfers are handled.
AT91SAM9263 Preliminary
462
6249D–ATARM–20-Dec-07
Related parts for at91sam9263
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
AT91SAM ARM-based Flash MCU
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
At91sam Arm-based Flash Mcu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Flash Mcu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Embedded Mpu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Embedded Mpu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Embedded Mpu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Embedded Mpu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
At91sam Arm-based Embedded Mpu
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AT91 ARM Thumb-based Microcontrollers
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AT91 ARM THUMB-BASED MICROCONTROLLERS
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AT91 ARM Thumb-based Microcontrollers
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AT91 MEMORY EXTENSION CARD
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
AT91 ARM X40 SERIES EVAL KIT
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
AT91 ARM Cortex M3-based Processor
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
AT91 ARM Thumb-based Microcontrollers
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet: