AT89C5132-ROTIL Atmel, AT89C5132-ROTIL Datasheet - Page 124

IC 8051 MCU FLASH 64K USB 80TQFP

AT89C5132-ROTIL

Manufacturer Part Number
AT89C5132-ROTIL
Description
IC 8051 MCU FLASH 64K USB 80TQFP
Manufacturer
Atmel
Series
AT89C513xr

Specifications of AT89C5132-ROTIL

Core Processor
C52X2
Core Size
8-Bit
Speed
20MHz
Connectivity
IDE/ATAPI, I²C, MMC, PCM, SPI, UART/USART, USB
Peripherals
I²S, POR, WDT
Number Of I /o
44
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
2.25K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.3 V
Data Converters
A/D 2x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TQFP, 80-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C5132-ROTIL
Manufacturer:
Atmel
Quantity:
10 000
19.1.6
19.2
19.3
124
Interrupt
Configuration
AT89C5132
Error Conditions
Figure 19-6 shows an SPI transmission with CPHA = 1, where the first SCK edge is used by the
slave as a start of transmission signal. Therefore SS may remain asserted between each byte
transmission (see Figure 19-7).
Figure 19-7. SS Timing Diagram
The following flags signal the SPI error conditions:
The SPI handles two interrupt sources; the “end of transfer” and the “mode fault” flags.
As shown in Figure 19-8 these flags are combined together to appear as a single interrupt
source for the C51 core. The SPIF flag is set at the end of an 8-bit shift in and out and is cleared
by reading SPSTA and then reading from or writing to SPDAT.
The MODF flag is set in case of mode fault error and is cleared by reading SPSTA and then writ-
ing to SPCON.
The SPI interrupt is enabled by setting ESPI bit in IEN1 register. This assumes interrupts are
globally enabled by setting EA bit in IEN0 register.
Figure 19-8. SPI Interrupt System
The SPI configuration is made through SPCON.
MODF in SPSTA signals a mode fault.
MODF flag is relevant only in master mode when SS usage is enabled (SSDIS bit cleared).
It signals when set that another master on the bus has asserted SS pin and so, may create
a conflict on the bus with two masters sending data at the same time.
A mode fault automatically disables the SPI (SPEN cleared) and configures the SPI in slave
mode (MSTR cleared).
MODF flag can trigger an interrupt as explained in Section "Interrupt", page 124.
MODF flag is cleared by reading SPSTA and re-configuring SPI by writing to SPCON.
WCOL in SPSTA signals a write collision.
WCOL flag is set when SPDAT is loaded while a transfer is on-going. In this case, data is not
written to SPDAT and transfer continues uninterrupted. WCOL flag does not trigger any
interrupt and is relevant jointly with SPIF flag.
WCOL flag is cleared after reading SPSTA and writing new data to SPDAT while no transfer
is ongoing.
SS (CPHA = 0)
SS (CPHA = 1)
SI/SO
SPSTA.7
SPSTA.4
MODF
SPIF
Byte 1
IEN1.2
ESPI
Byte 2
SPI Controller
Interrupt Request
Byte 3
4173E–USB–09/07

Related parts for AT89C5132-ROTIL