AT89C5122D-RDVIM Atmel, AT89C5122D-RDVIM Datasheet - Page 138
![IC 8051 MCU W/SMART CARD 64VQFP](/photos/6/81/68127/313-64-vqfp_sml.jpg)
AT89C5122D-RDVIM
Manufacturer Part Number
AT89C5122D-RDVIM
Description
IC 8051 MCU W/SMART CARD 64VQFP
Manufacturer
Atmel
Series
89Cr
Datasheet
1.AT89C5122D-PSTUM.pdf
(208 pages)
Specifications of AT89C5122D-RDVIM
Core Processor
8051
Core Size
8-Bit
Speed
48MHz
Connectivity
SmartCard, SPI, UART/USART, USB
Peripherals
LED, POR, WDT
Number Of I /o
46
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP, 64-VQFP
For Use With
AT89STK-10 - KIT EVAL APPL MASS STORAGEAT89STK-03 - KIT STARTER FOR MCU AT8XC5122/23
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Data Converters
-
Other names
AT89C5122D-RDTIM
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 138 of 208
- Download datasheet (3Mb)
Master Mode
Slave Mode
Transmission Formats
138
AT83R5122, AT8xC5122/23
Figure 84. 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.
When the pin SS is pulled down during a transmission, the data is interrupted and when
the transmission is established again, the data present in the SPDAT is resent.
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 85 and Figure 86).
The clock phase and polarity should be identical for the Master SPI device and the com-
municating Slave device.
3.
4.
5.
6.
Clock Generator
SPI
(4)
The SPI module should be configured as a Master before it is enabled (SPEN set). Also
the Master SPI should be configured before the Slave SPI.
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
speed.
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
Master MCU
(5)
. A Slave SPI must complete the write to the SPDAT (shift register) at
8-bit Shift Register
MOSI
SCK
SS
MISO
VDD
MOSI
MISO
SCK
VSS
SS
8-bit Shift Register
Slave MCU
(4)
(6)
(3)
, in the SPCON register is
) and the Clock Phase
, in the SPCON register
4202F–SCR–07/2008
Related parts for AT89C5122D-RDVIM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AT89C5122D-RDRUM](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
IC 8051 MCU 32K CRAM USB 64-VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5122D-PSTUM](/photos/12/13/121326/313-64-qfn_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K 64QFN
Manufacturer:
Atmel
Datasheet:
![AT89C5122D-RDTUM](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K 64VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5122D-RDRIM](/photos/6/81/68127/313-64-vqfp_tmb.jpg)
Part Number:
Description:
IC MCU 80C51 W/SMART CARD 64VQFP
Manufacturer:
Atmel
Datasheet:
![AT89C5122D-SISUM](/photos/6/70/67044/453-28-plcc_tmb.jpg)
Part Number:
Description:
IC 8051 MCU FLASH 32K 28PLCC
Manufacturer:
Atmel
Datasheet:
![AT89C5122](/images/no-image3.png)
Part Number:
Description:
MICROCONTROLLER WITH USB AND SMART CARD READER INTERFACES
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
![AT89STK-03](/photos/9/7/90787/at89stk-03_tmb.jpg)
Part Number:
Description:
KIT STARTER FOR MCU AT8XC5122/23
Manufacturer:
Atmel
Datasheet:
![AT89C51-24AC](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC MICRO CTRL 24MHZ 44TQFP
Manufacturer:
Atmel
Datasheet:
![AT89C51-24JC](/photos/6/70/67043/453-44-plcc_tmb.jpg)
Part Number:
Description:
IC MICRO CTRL 24MHZ 44PLCC
Manufacturer:
Atmel
Datasheet:
![AT89C51-24JI](/photos/6/70/67043/453-44-plcc_tmb.jpg)
Part Number:
Description:
IC MICRO CTRL 24MHZ 44PLCC
Manufacturer:
Atmel
Datasheet:
![AT89C51-24PC](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC MICRO CTRL 24MHZ 40DIP
Manufacturer:
Atmel
Datasheet: