AT89C5131A-RDTIM Atmel, AT89C5131A-RDTIM Datasheet - Page 93
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
AT89C5131A-RDTIM
Manufacturer Part Number
AT89C5131A-RDTIM
Description
C5131A 32K FLASH USB VQFP64 IND, 5V
Manufacturer
Atmel
Datasheet
1.AT89C5131A-RDTIM.pdf
(176 pages)
- Current page: 93 of 176
- Download datasheet (3Mb)
Master Mode
Slave Mode
Transmission Formats
92
AT89C5131
Figure 41. Full-duplex Master/Slave Interconnection
The SPI operates in Master mode when the Master bit, MSTR
is set. Only one Master SPI device can initiate transmissions. Software begins the trans-
mission from a Master SPI module by writing to the Serial Peripheral Data Register
(SPDAT). If the shift register is empty, the byte is immediately transferred to the shift
register. The byte begins shifting out on MOSI pin under the control of the serial clock,
SCK. Simultaneously, another byte shifts in from the Slave on the Master’s MISO pin.
The transmission ends when the Serial Peripheral transfer data flag, SPIF, in SPSTA
becomes set. At the same time that SPIF becomes set, the received byte from the Slave
is transferred to the receive data register in SPDAT. Software clears SPIF by reading
the Serial Peripheral Status register (SPSTA) with the SPIF bit set, and then reading the
SPDAT.
The SPI operates in Slave mode when the Master bit, MSTR
cleared. Before a data transmission occurs, the Slave Select pin, SS, of the Slave
device must be set to’0’. SS must remain low until the transmission is complete.
In a Slave SPI module, data enters the shift register under the control of the SCK from
the Master SPI module. After a byte enters the shift register, it is immediately transferred
to the receive data register in SPDAT, and the SPIF bit is set. To prevent an overflow
condition, Slave software must then read the SPDAT before another byte enters the
shift register
least one bus cycle before the Master SPI starts a transmission. If the write to the data
register is late, the SPI transmits the data already in the shift register from the previous
transmission.
Software can select any of four combinations of serial clock (SCK) phase and polarity
using two bits in the SPCON: the Clock POLarity (CPOL
(CPHA
effect on the transmission format. CPHA defines the edges on which the input data are
sampled and the edges on which the output data are shifted (Figure 42 and Figure 43).
The clock phase and polarity should be identical for the Master SPI device and the com-
municating Slave device.
1.
2.
3.
4.
4
The SPI module should be configured as a Master before it is enabled (SPEN set). Also
The SPI module should be configured as a Slave before it is enabled (SPEN set).
The maximum frequency of the SCK for an SPI configured as a Slave is the bus clock
Before writing to the CPOL and CPHA bits, the SPI should be disabled (SPEN =’0’).
). CPOL defines the default SCK line level in idle state. It has no significant
Clock Generator
the Master SPI should be configured before the Slave SPI.
speed.
(3)
SPI
. A Slave SPI must complete the write to the SPDAT (shift register) at
Master MCU
8-bit Shift Register
MOSI
SCK
SS
MISO
VDD
MISO
MOSI
SCK
VSS
SS
8-bit Shift Register
(2)
(4)
Slave MCU
(1)
, in the SPCON register is
) and the Clock PHAse
, in the SPCON register
4136C–USB–04/05
Related parts for AT89C5131A-RDTIM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AT89C5131A-L](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![AT89C5131A-M](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![AT89C5131A-PUTUM](/photos/12/13/121309/313-32-qfn_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 32QFN
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-S3SUM](/photos/12/13/121324/453-52-plcc_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 52PLCC
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-PLTUL](/photos/7/34/73471/48-vqfn-6_543-5130_01-4_tmb.jpg)
Part Number:
Description:
IC MCU 32KB 3-3.6V USB 48-VQFN
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-TIRUL](/photos/6/82/68295/453-28-soic_tmb.jpg)
Part Number:
Description:
MCU 8051 32K FLASH USB 28-SOIC
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-RDTUM](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 64VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-RDTUL](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
MCU 8051 32K FLASH USB 64-VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-TISUL](/photos/6/82/68295/453-28-soic_tmb.jpg)
Part Number:
Description:
MCU 8051 32K FLASH USB 28-SOIC
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-S3SUL](/photos/12/13/121324/453-52-plcc_tmb.jpg)
Part Number:
Description:
MCU 8051 32K FLASH USB 52-PLCC
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-PLTIL](/photos/7/34/73471/48-vqfn-6_543-5130_01-4_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 48QFN
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-RDTIL](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 64VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-PUTIM](/photos/12/13/121309/313-32-qfn_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 32QFN
Manufacturer:
Atmel
Datasheet:
![AT89C5131A-S3SIM](/photos/12/13/121324/453-52-plcc_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K USB 52PLCC
Manufacturer:
Atmel
Datasheet: