AT83C5136 Atmel Corporation, AT83C5136 Datasheet - Page 82

no-image

AT83C5136

Manufacturer Part Number
AT83C5136
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT83C5136

Max. Operating Frequency
32 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)
512
Operating Voltage (vcc)
2.7 to 3.6
Timers
4
Mask Rom (kbytes)
32
Watchdog
Yes
19.3.5.2
82
AT83C5134/35/36
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
3
2
1
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
0
0
0
0
1
1
1
1
SSERR
5
SPR1
0
0
1
1
0
0
1
1
MODF
4
0
1
0
1
0
0
1
SPR0
1
Table 3.
Serial Peripheral Rate
Reserved
F
F
F
F
F
F
Reserved
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
CLK PERIPH/
3
-
4
8
16
32
64
128
2
-
1
-
7683C–USB–11/07
0
-

Related parts for AT83C5136