AT89LP51RC2 Atmel Corporation, AT89LP51RC2 Datasheet - Page 178
AT89LP51RC2
Manufacturer Part Number
AT89LP51RC2
Description
Manufacturer
Atmel Corporation
Specifications of AT89LP51RC2
Flash (kbytes)
32 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
42
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
7
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
1.375
Self Program Memory
API
Operating Voltage (vcc)
2.4 to 5.5
Timers
4
Isp
SPI/OCD/UART
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 178 of 254
- Download datasheet (8Mb)
22.1.3
22.1.4
178
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:
AT89LP51RB2/RC2/IC2 Preliminary
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
3722A–MICRO–10/11
Related parts for AT89LP51RC2
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8-Bit Microcontroller with 4K Bytes Flash
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet: