Instruction Set Summary (Continued)

Mnemonic

Operands

Description

Operation

Flags

# Clocks

DATA TRANSFER INSTRUCTIONS

 

 

 

 

MOV

Rd, Rr

Move between Registers

Rd Rr

None

1

LDI

Rd, K

Load Immediate

Rd K

None

1

LD

Rd, X

Load Indirect

Rd (X)

None

2

LD

Rd, X+

Load Indirect and Post-inc.

Rd (X), X X + 1

None

2

LD

Rd, -X

Load Indirect and Pre-dec.

X X - 1, Rd (X)

None

2

LD

Rd, Y

Load Indirect

Rd (Y)

None

2

LD

Rd, Y+

Load Indirect and Post-inc.

Rd (Y), Y Y + 1

None

2

LD

Rd, -Y

Load Indirect and Pre-dec.

Y Y - 1, Rd (Y)

None

2

LDD

Rd, Y+q

Load Indirect with Displacement

Rd (Y + q)

None

2

LD

Rd, Z

Load Indirect

Rd (Z)

None

2

LD

Rd, Z+

Load Indirect and Post-inc.

Rd (Z), Z Z + 1

None

2

LD

Rd, -Z

Load Indirect and Pre-dec.

Z Z - 1, Rd (Z)

None

2

LDD

Rd, Z+q

Load Indirect with Displacement

Rd (Z + q)

None

2

LDS

Rd, k

Load Direct from SRAM

Rd (k)

None

2

ST

X, Rr

Store Indirect

(X) Rr

None

2

ST

X+, Rr

Store Indirect and Post-inc.

(X) Rr, X X + 1

None

2

ST

-X, Rr

Store Indirect and Pre-dec.

X X - 1, (X) Rr

None

2

ST

Y, Rr

Store Indirect

(Y) Rr

None

2

ST

Y+, Rr

Store Indirect and Post-inc.

(Y) Rr, Y Y + 1

None

2

ST

-Y, Rr

Store Indirect and Pre-dec.

Y Y - 1, (Y) Rr

None

2

STD

Y+q, Rr

Store Indirect with Displacement

(Y + q) Rr

None

2

ST

Z, Rr

Store Indirect

(Z) Rr

None

2

ST

Z+, Rr

Store Indirect and Post-inc.

(Z) Rr, Z Z + 1

None

2

ST

-Z, Rr

Store Indirect and Pre-dec.

Z Z - 1, (Z) Rr

None

2

STD

Z+q, Rr

Store Indirect with Displacement

(Z + q) Rr

None

2

STS

k, Rr

Store Direct to SRAM

(k) Rr

None

2

LPM

 

Load Program Memory

R0 (Z)

None

3

IN

Rd, P

In Port

Rd P

None

1

OUT

P, Rr

Out Port

P Rr

None

1

PUSH

Rr

Push Register on Stack

STACK Rr

None

2

POP

Rd

Pop Register from Stack

Rd STACK

None

2

BIT AND BIT-TEST INSTRUCTIONS

 

 

 

 

SBI

P, b

Set Bit in I/O Register

I/O(P,b) 1

None

2

CBI

P, b

Clear Bit in I/O Register

I/O(P,b) 0

None

2

LSL

Rd

Logical Shift Left

Rd(n+1) Rd(n), Rd(0) 0

Z,C,N,V

1

LSR

Rd

Logical Shift Right

Rd(n) Rd(n+1), Rd(7) 0

Z,C,N,V

1

ROL

Rd

Rotate Left through Carry

Rd(0) C, Rd(n+1) Rd(n), C Rd(7)

Z,C,N,V

1

ROR

Rd

Rotate Right through Carry

Rd(7) C, Rd(n) Rd(n+1), C Rd(0)

Z,C,N,V

1

ASR

Rd

Arithmetic Shift Right

Rd(n) Rd(n+1), n = 0..6

Z,C,N,V

1

SWAP

Rd

Swap Nibbles

Rd(3..0) Rd(7..4), Rd(7..4) Rd(3..0)

None

1

BSET

s

Flag Set

SREG(s) 1

SREG(s)

1

BCLR

s

Flag Clear

SREG(s) 0

SREG(s)

1

BST

Rr, b

Bit Store from Register to T

T Rr(b)

T

1

BLD

Rd, b

Bit Load from T to Register

Rd(b) T

None

1

SEC

 

Set Carry

C 1

C

1

CLC

 

Clear Carry

C 0

C

1

SEN

 

Set Negative Flag

N 1

N

1

CLN

 

Clear Negative Flag

N 0

N

1

SEZ

 

Set Zero Flag

Z 1

Z

1

CLZ

 

Clear Zero Flag

Z 0

Z

1

SEI

 

Global Interrupt Enable

I 1

I

1

CLI

 

Global Interrupt Disable

I 0

I

1

SES

 

Set Signed Test Flag

S 1

S

1

CLS

 

Clear Signed Test Flag

S 0

S

1

SEV

 

Set Two’s Complement Overflow

V 1

V

1

CLV

 

Clear Two’s Complement Overflow

V 0

V

1

SET

 

Set T in SREG

T 1

T

1

CLT

 

Clear T in SREG

T 0

T

1

SEH

 

Set Half-carry Flag in SREG

H 1

H

1

CLH

 

Clear Half-carry Flag in SREG

H 0

H

1

NOP

 

No Operation

 

None

1

SLEEP

 

Sleep

(see specific descr. for Sleep function)

None

1

WDR

 

Watchdog Reset

(see specific descr. for WDR/timer)

None

1

8AT90S8515

0841GS–09/01

Page 8
Image 8
Atmel AT90S8515-4 manual Data Transfer Instructions

AT90S8515-4 specifications

The Atmel AT90S8515-4 is a popular 8-bit microcontroller that belongs to the AVR family, which is widely recognized for its efficient and powerful performance in various embedded applications. It was designed primarily for use in control, automation, and consumer electronic devices, making it one of the go-to choices for developers seeking versatility and reliability.

One of the primary features of the AT90S8515-4 is its 8-bit RISC architecture, which allows for a high level of efficiency in instruction execution. This architecture supports a rich set of 32 general-purpose registers, which enable fast data manipulation and make the microcontroller capable of handling complex computations with minimal overhead. The microcontroller operates at clock speeds of up to 4 MHz, providing sufficient speed for a wide range of applications without incurring excessive power consumption.

The AT90S8515-4 comes with a substantial 8 KB of programmable Flash memory, allowing developers to store and execute code efficiently. Additionally, it includes 512 bytes of SRAM, which is essential for temporary data storage during program execution. The microcontroller also features 512 bytes of EEPROM, which is particularly useful for applications requiring non-volatile memory to retain settings or important data even after power loss.

Another important characteristic of the AT90S8515-4 is its versatile I/O capabilities. The microcontroller is equipped with 32 general-purpose I/O pins that can be configured for various digital input or output functions. Moreover, it features an integrated 10-bit Analog-to-Digital Converter (ADC) that simplifies the process of interfacing with analog sensors, enabling precise signal processing.

The AT90S8515-4 also incorporates several built-in communication interfaces, including USART for serial communication, which opens up possibilities for connecting to other devices and systems. This makes it ideal for applications such as data logging, sensor networks, and remote control systems.

In terms of power management, the AT90S8515-4 is designed to operate in various power modes, including a power-saving sleep mode, which prolongs battery life in portable and remote applications.

In summary, the Atmel AT90S8515-4 microcontroller offers a robust blend of features, including a high-performance RISC architecture, ample Flash and EEPROM memory, versatile I/O options, and integrated communication capabilities, making it a suitable choice for developers looking to create efficient and reliable embedded systems.