AT83C51SND1C_03 ATMEL [ATMEL Corporation], AT83C51SND1C_03 Datasheet - Page 154

no-image

AT83C51SND1C_03

Manufacturer Part Number
AT83C51SND1C_03
Description
Single-Chip Flash Microcontroller with MP3 Decoder and Human Interface
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Slave Mode with Polling
Policy
154
AT8xC51SND1C
Figure 121 shows the initialization phase and the transfer phase flows using the polling.
The transfer format depends on the master controller.
SPIF flag is cleared when reading SPDAT (SPSTA has been read before by the “end of
reception” check).
This provides the fastest effective transmission and is well adapted when communicat-
ing at high speed with other Microcontrollers. However, the process may then be
interrupted at any time by higher priority tasks.
Figure 121. Slave SPI Polling Flows
program CPOL & CPHA
write data in SPDAT
SPI Initialization
Select Slave Mode
Disable interrupt
Prepare Transfer
Polling Policy
Select Format
Enable SPI
MSTR = 0
SPEN = 1
SPIE = 0
Prepare Next Transfer
write data in SPDAT
Get Data Received
Polling Policy
Data Received?
SPI Transfer
read SPDAT
SPIF = 1?
4109E–8051–06/03

Related parts for AT83C51SND1C_03