Microcontroller AT89S/LS8252 from Atmel in SPI Mode

Connections

Galep DIL40

 

PDIP40

 

PLCC44

 

TQFP44

   

6

-

6

-

7

-

1

 

MOSI input

7

-

7

-

8

-

2

 

MISO output

8

-

8

-

9

-

3

 

SCK

9

-

9

-

10

-

4

 

RESET

19

-

19

-

21

-

15

 

XTAL1 *

20

-

20

-

22

-

16,17

 

GND

40

-

40

-

44

-

38

 

Vcc *

* - these connections are generally not required !


General Advice

These microcontroller feature data storage employing the EEPROM technology, as well as the usual program data storage using FLASH technology. Both memory areas can be programmed separately.

The lock-bits make it possible to protect the device against over-programming, and against unauthorised copying.

With the aid of the programmer, the device's contents can be completely deleted.

 

Options

FLASH Memory

Select this item to access the FLASH memory.

EEPROM Memory

Select this item to access the EEPROM memory.

Note: In the data buffer the memory area above the last address in the program memory is reserved for EEPROM memory (with the AT89S/LS8252 with 8k FLASH memory, this is the memory starting at the address 2000h).

Lock Bit 1

Select this item to set the Protection Mode 2.

Lock Bit 2

Select this item to set the Protection Mode 3.

Lock Bit 3

Select this item to set the Protection Mode 4.

 

Actions

Program

If the FLASH Memory item is selected - the FLASH memory will be programmed with the data from the buffer,
if the EEPROM Memory item is selected - the EEPROM memory will be programmed with the data from the buffer,

the Lock bits will be programmed.

Note: the Lock bits will be programmed as a final action, after the data is programmed and verified.

Compare

If the FLASH Memory item is selected - the FLASH memory will be compared with the data from the buffer,

if the EEPROM Memory item is selected - the EEPROM memory will be compared with the data from the buffer.

Blank check

Independently of the selected items in the ´Options´ Dialog - the FLASH memory and EEPROM memory will be checked to verify empty status.

Read

Independently of the selected items in the ´Options´ Dialog - the FLASH memory and EEPROM memory will be read into the buffer.

Erase

Independently of the selected items in the ´Options´ Dialog - the FLASH memory, EEPROM memory and Lock bits will be erased.

 

Lock Bits

Mode

LB 1

LB 2

LB 3

 

1

     

No memory lock features enabled

2

P

   

Further programming of the Flash and EEPROM is disabled

3

P

P

 

Same as mode 2, but verify is also disabled.

4

P

P

P

Same as mode 3, but external execution is also disabled.

Note: P - programmed.