AT89C51ID2 Atmel Corporation, AT89C51ID2 Datasheet - Page 104

no-image

AT89C51ID2

Manufacturer Part Number
AT89C51ID2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C51ID2

Flash (kbytes)
64 Kbytes
Max. Operating Frequency
60 MHz
Cpu
8051-12C
Max I/o Pins
32
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
2
Eeprom (bytes)
2048
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C51ID2-IM
Manufacturer:
ATMEL
Quantity:
3 233
Part Number:
AT89C51ID2-RLRIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51ID2-RLRUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51ID2-RLTIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51ID2-RLTUM
Manufacturer:
ATMEL
Quantity:
13 937
Part Number:
AT89C51ID2-RLTUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51ID2-SLRIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51ID2-SLSIM
Manufacturer:
ATMEL
Quantity:
5 510
Part Number:
AT89C51ID2-SLSIM
Manufacturer:
TI
Quantity:
5 510
Part Number:
AT89C51ID2-SLSUM
Manufacturer:
BROADCOM
Quantity:
2 000
Company:
Part Number:
AT89C51ID2-SLSUM
Quantity:
5 400
Registers
Serial Peripheral Control
Register (SPCON)
4289C–8051–11/05
Figure 42. SPI Interrupt Requests Generation
There are three registers in the Module that provide control, status and data storage functions. These registers
are describes in the following paragraphs.
Table 79 describes this register and explains the use of each bit
Table 79. SPCON Register
SPCON - Serial Peripheral Control Register (0C3H)
Bit Number
SPR2
SPIF
MODF
SSDIS
The Serial Peripheral Control Register does the following:
Selects one of the Master clock rates
Configure the SPI Module as Master or Slave
Selects serial clock polarity and phase
Enables the SPI Module
Frees the SS pin for a general-purpose
7
7
6
5
4
3
2
SPEN
Bit Mnemonic
6
SSDIS
MSTR
CPHA
SPEN
CPOL
SPR2
SPI Transmitter
CPU Interrupt Request
SSDIS
SPI Receiver/error
CPU Interrupt Request
5
Description
Serial Peripheral Rate 2
Bit with SPR1 and SPR0 define the clock rate.
Serial Peripheral Enable
Cleared to disable the SPI interface.
Set to enable the SPI interface.
SS Disable
Cleared to enable SS in both Master and Slave modes.
Set to disable SS in both Master and Slave modes. In Slave mode,
this bit has no effect if CPHA =’0’. When SSDIS is set, no MODF
interrupt request is generated
Serial Peripheral Master
Cleared to configure the SPI as a Slave.
Set to configure the SPI as a Master.
Clock Polarity
Cleared to have the SCK set to ’0’ in idle state.
Set to have the SCK set to ’1’ in idle low.
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).
MSTR
4
Table 1.
CPOL
3
CPU Interrupt Request
SPI
.
CPHA
2
AT89C51ID2
SPR1
1
SPR0
0
104

Related parts for AT89C51ID2