DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

UPSD3212A(2009) Ver la hoja de datos (PDF) - STMicroelectronics

Número de pieza
componentes Descripción
Fabricante
UPSD3212A Datasheet PDF : 181 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
Architecture overview
Table 12.
Boolean instructions
Mnemonic
ANL C,bit
ANL C,/bit
ORL C,bit
ORL C,/bit
MOV C,bit
MOV bit,C
CLR C
CLR bit
SETB C
SETB bit
CPL C
CPL bit
JC rel
JNC rel
JB bit,rel
JNB bit,rel
JBC bit,rel
UPSD3212A, UPSD3212C, UPSD3212CV
Operation
C = A .AND. bit
C = C .AND. .NOT. bit
C = A .OR. bit
C = C .OR. .NOT. bit
C = bit
bit = C
C=0
bit = 0
C=1
bit = 1
C = .NOT. C
bit = .NOT. bit
Jump if C =1
Jump if C = 0
Jump if bit =1
Jump if bit = 0
Jump if bit = 1; CLR bit
2.13
Relative offset
The destination address for these jumps is specified to the assembler by a label or by an
actual address in Program memory. However, the destination address assembles to a
relative offset byte. This is a signed (two’s complement) offset byte which is added to the PC
in two’s complement arithmetic if the jump is executed.
The range of the jump is therefore -128 to +127 Program Memory bytes relative to the first
byte following the instruction.
2.14
Jump instructions
Table 13 shows the list of unconditional jump instructions. The table lists a single “JMP add”
instruction, but in fact there are three SJMP, LJMP, and AJMP, which differ in the format of
the destination address. JMP is a generic mnemonic which can be used if the programmer
does not care which way the jump is en-coded.
The SJMP instruction encodes the destination address as a relative offset, as described
above. The instruction is 2 bytes long, consisting of the opcode and the relative offset byte.
The jump distance is limited to a range of -128 to +127 bytes relative to the instruction
following the SJMP.
30/181

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]