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

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 Interrupt
Policy
4109E–8051–06/03
Figure 120 shows the initialization phase and the transfer phase flows using the
interrupt.
The transfer format depends on the master controller.
Reading SPSTA at the beginning of the ISR is mandatory for clearing the SPIF flag.
Clear is effective when reading SPDAT.
Figure 122. Slave SPI Interrupt Policy Flows
program CPOL & CPHA
write data in SPDAT
SPI Initialization
Select Slave Mode
Interrupt Policy
Prepare Transfer
Enable interrupt
Select Format
Enable SPI
MSTR = 0
SPEN = 1
ESPI =1
Prepare New Transfer
write data in SPDAT
Service Routine
Get Data Received
AT8xC51SND1C
SPI Interrupt
Read SPSTA
read SPDAT
Get Status
155

Related parts for AT83C51SND1C_03