AT89LP3240 Atmel Corporation, AT89LP3240 Datasheet - Page 148

no-image

AT89LP3240

Manufacturer Part Number
AT89LP3240
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT89LP3240

Flash (kbytes)
32 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
38
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
4.25
Eeprom (bytes)
8192
Self Program Memory
IAP
Operating Voltage (vcc)
2.4 to 3.6
Timers
3
Isp
SPI/OCD
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP3240-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP3240-20JU
Manufacturer:
Atmel
Quantity:
10 000
22.1.3
22.1.4
148
Description: CJNE compares the magnitudes of the Accumulator and indirect RAM location and branches if their values are
Description: CLR M clears the 40-bit M register. No flags are affected.
Operation: CJNE
Operation: JMP
Encoding:
Encoding:
AT89LP3240/6440
Function: Compare and Jump if Not Equal
Function: Clear MAC Accumulator
CJNE A, @R
CLR M
Example: The Accumulator contains 34H. Register 0 contains 78H and 78H contains 56H. The first instruction in the
Example: The M registercontains 123456789AH. The following instruction,
Cycles: 9
Cycles: 2
Bytes: 2
Bytes: 2
not equal. The branch destination is computed by adding the signed relative-displacement in the last instruction
byte to the PC, after incrementing the PC to the start of the next instruction. The carry flag is set if the unsigned
integer value of ACC is less than the unsigned integer value of the indirect location; otherwise, the carry is
cleared. Neither operand is affected.
sequence,
;
NOT_EQ:
;
sets the carry flag and branches to the instruction at label NOT_EQ. By testing the carry flag, the second
instruction determines whether ACC is greater or less than the location pointed to by R0.
(PC) ← (PC) + 3
IF (A) ≠ ((R
THEN
IF (A) < ((R
THEN
ELSE
CLR M
leaves the M register set to 0000000000H.
(M) ← 0
i
, rel
A5
A5
CJNE
(PC) ← (PC) + relative offset
(C) ← 1
(C) ← 0
JC
. . . . . .
. . . . . .
i
i
))
))
A, @R0, NOT_EQ
REQ_LOW .. ;IF ACC< @R0.
...... ...... ; ACC = @R0.
...... ...... ;ACC > @R0.
1
1
0
1
1
1
1
0
0
0
1
1
1
0
0
i
rel. address
3706C–MICRO–2/11

Related parts for AT89LP3240