Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

STC12LE5616AD Datasheet(PDF) 335 Page - STCmicro Technology Co,.Ltd

Part # STC12LE5616AD
Description  Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
PDF  377 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STC [STCmicro Technology Co,.Ltd]
Direct Link  http://www.stcmicro.com/
Logo STC - STCmicro Technology Co,.Ltd

STC12LE5616AD Datasheet(HTML) 335 Page - STCmicro Technology Co,.Ltd

Back Button STC12LE5616AD Datasheet HTML 331Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 332Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 333Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 334Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 335Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 336Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 337Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 338Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 339Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 335 / 377 page
background image
Generic Jumps and Calls
ASM51 allows programmers to use a generic JMP or CALL mnemonic. "JMP" can be used instead of SJMP,
AJMP or LJMP; and "CALL" can be used instead of ACALL or LCALL. The assembler converts the generic
mnemonic to a "real" instruction following a few simple rules. The generic mnemonic converts to the short form
(for JMP only) if no forward references are used and the jump destination is within -128 locations, or to the
absolute form if no forward references are used and the instruction following the JMP or CALL instruction is in
the same 2K block as the destination instruction. If short or absolute forms cannot be used, the conversion is to
the long form.
The conversion is not necessarily the best programming choice. For example, if branching ahead a few
instrucions, the generic JMP will always convert to LJMP even though an SJMP is probably better. Consider the
following assembled instructions sequence using three generic jumps.
LOC
OBJ
LINE
SOURCE
1234
1
ORG
1234H
1234
04
2
START:
INC
A
1235
80FD
3
JMP
START
;ASSEMBLES AS SJMP
12FC
4
ORG
START + 200
12FC
4134
5
JMP
START
;ASSEMBLES AS AJMP
12FE
021301
6
JMP
FINISH
;ASSEMBLES AS LJMP
1301
04
7
FINISH:
INC
A
8
END
The first jump (line 3) assembles as SJMP because the destination is before the jump ( i.e., no forward reference)
and the offset is less than -128. The ORG directive in line 4 creates a gap of 200 locations between the label
START and the second jump, so the conversion on line 5 is to AJMP because the offset is too great for SJMP.
Note also that the address following the second jump (12FEH) and the address of START (1234H) are within the
same 2K page, which, for this instruction sequence, is bounded by 1000H and 17FFH. This criterion must be met
for absolute addressing. The third jump assembles as LJMP because the destination (FINISH) is not yet defined
when the jump is assembled (i.e., a forward reference is used). The reader can verify that the conversion is as
stated by examining the object field for each jump instruction.
ASSEMBLE-TIME EXPRESSION EVALUATION
Values and constants in the operand field may be expressed three ways: (a) explicitly (e.g.,0EFH), (b) with a
predefined symbol (e.g., ACC), or (c) with an expression (e.g.,2 + 3). The use of expressions provides a powerful
technique for making assembly language programs more readable and more flexible. When an expression is used,
the assembler calculates a value and inserts it into the instruction.
All expression calculations are performed using 16-bit arithmetic; however, either 8 or 16 bits are inserted
into the instruction as needed. For example, the following two instructions are the same:
MOV
DPTR,
#04FFH + 3
MOV
DPTR,
#0502H
;ENTIRE 16-BIT RESULT USED
If the same expression is used in a "MOV A,#data" instruction, however, the error message "value will not fit in a
byte" is generated by ASM51. An overview of the rules for evaluateing expressions follows.
335



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com