AT89C5131A-M Atmel Corporation, AT89C5131A-M Datasheet - Page 100

no-image

AT89C5131A-M

Manufacturer Part Number
AT89C5131A-M
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5131A-M

Flash (kbytes)
32 Kbytes
Max. Operating Frequency
48 MHz
Cpu
8051-12C
Max I/o Pins
34
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
Eeprom (bytes)
1024
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART/USB
Watchdog
Yes
19.3.5.2
100
AT89C5130A/31A-M
Serial Peripheral Status Register (SPSTA)
Reset Value = 0001 0100b
Not bit addressable
The Serial Peripheral Status Register contains flags to signal the following conditions:
Table 19-4
Table 19-4.
SPSTA - Serial Peripheral Status and Control register (0C4H)
Bit Number
Number
• Data transfer complete
• Write collision
• Inconsistent logic level on SS pin (mode fault error)
Bit
SPIF
2
1
0
7
6
5
7
describes the SPSTA register and explains the use of every bit in the register.
Bit Mnemonic
Mnemonic
SSERR
SPSTA Register
WCOL
WCOL
CPHA
SPR1
SPR0
SPIF
Bit
6
Description
Serial Peripheral data transfer flag
Cleared by hardware to indicate data transfer is in progress or has been approved by a
clearing sequence.
Set by hardware to indicate that the data transfer has been completed.
Write Collision flag
Cleared by hardware to indicate that no collision has occurred or has been approved by a
clearing sequence.
Set by hardware to indicate that a collision has been detected.
Synchronous Serial Slave Error flag
Set by hardware when SS is de-
asserted before the end of a received data.
Cleared by disabling the SPI (clearing SPEN bit in SPCON).
Description
Clock Phase
Cleared to have the data sampled when the SCK leaves the idle state (see CPOL).
Set to have the data sampled when the SCK returns to idle state (see CPOL).
SPR2 SPR1 SPR0 Serial Peripheral Rate
000Reserved
00 1F
010 F
011F
100F
10 1F
110F
1 11Reserved
SSERR
5
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
16
32
128
4
8
64
MODF
4
3
-
2
-
1
-
4337K–USB–04/08
0
-

Related parts for AT89C5131A-M