AT89S8252-24PI Atmel, AT89S8252-24PI Datasheet - Page 9

MCU W/SPI 8KB FLSH 2K EEP 40-DIP

AT89S8252-24PI

Manufacturer Part Number
AT89S8252-24PI
Description
MCU W/SPI 8KB FLSH 2K EEP 40-DIP
Manufacturer
Atmel
Series
89Sr
Datasheet

Specifications of AT89S8252-24PI

Core Processor
8051
Core Size
8-Bit
Speed
24MHz
Connectivity
SPI, UART/USART
Peripherals
POR, WDT
Number Of I /o
32
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
Other names
AT89S825224PI

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89S8252-24PI
Manufacturer:
ATM
Quantity:
4 000
Part Number:
AT89S8252-24PI
Manufacturer:
ATM
Quantity:
3 500
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL
Quantity:
2 360
Part Number:
AT89S8252-24PI
Manufacturer:
NS
Quantity:
1 000
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL
Quantity:
482
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Table 4. SPCR – SPI Control Register
0401G–MICRO–3/06
SPCR Address = D5H
Symbol
SPIE
SPE
DORD
MSTR
CPOL
CPHA
SPR0
SPR1
Bit
SPIE
Function
SPI Interrupt Enable. This bit, in conjunction with the ES bit in the IE register, enables SPI interrupts: SPIE = 1 and ES =
1 enable SPI interrupts. SPIE = 0 disables SPI interrupts.
SPI Enable. SPI = 1 enables the SPI channel and connects SS, MOSI, MISO and SCK to pins P1.4, P1.5, P1.6, and P1.7.
SPI = 0 disables the SPI channel.
Data Order. DORD = 1 selects LSB first data transmission. DORD = 0 selects MSB first data transmission.
Master/Slave Select. MSTR = 1 selects Master SPI mode. MSTR = 0 selects Slave SPI mode.
Clock Polarity. When CPOL = 1, SCK is high when idle. When CPOL = 0, SCK of the master device is low when not
transmitting. Please refer to figure on SPI Clock Phase and Polarity Control.
Clock Phase. The CPHA bit together with the CPOL bit controls the clock and data relationship between master and
slave. Please refer to figure on SPI Clock Phase and Polarity Control.
SPI Clock Rate Select. These two bits control the SCK rate of the device configured as master. SPR1 and SPR0 have no
effect on the slave. The relationship between SCK and the oscillator frequency, F
SPR1
7
0
0
1
1
SPR0
0
1
0
1
SPE
6
SCK = F
128
16
64
4
SPI Registers Control and status bits for the Serial Peripheral Interface are contained in
registers SPCR (shown in Table 4) and SPSR (shown in Table 5). The SPI data bits are
contained in the SPDR register. Writing the SPI data register during serial data transfer
sets the Write Collision bit, WCOL, in the SPSR register. The SPDR is double buffered
for writing and the values in SPDR are not changed by Reset.
Interrupt Registers The global interrupt enable bit and the individual interrupt enable
bits are in the IE register. In addition, the individual interrupt enable bit for the SPI is in
the SPCR register. Two priorities can be set for each of the six interrupt sources in the
IP register.
Dual Data Pointer Registers To facilitate accessing both internal EEPROM and exter-
nal data memory, two banks of 16-bit Data Pointer Registers are provided: DP0 at SFR
address locations 82H-83H and DP1 at 84H-85H. Bit DPS = 0 in SFR WMCON selects
DP0 and DPS = 1 selects DP1. The user should ALWAYS initialize the DPS bit to the
appropriate value before accessing the respective Data Pointer Register.
Power Off Flag The Power Off Flag (POF) is located at bit_4 (PCON.4) in the PCON
SFR. POF is set to “1” during power up. It can be set and reset under software control
and is not affected by RESET.
OSC.
DORD
divided by
5
MSTR
4
CPOL
3
CPHA
2
OSC.
, is as follows:
Reset Value = 0000 01XXB
SPR1
1
AT89S8252
SPR0
0
9

Related parts for AT89S8252-24PI