поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

STC89C53RC датащи(PDF) 145 Page - STCmicro Technology Co,.Ltd

номер детали STC89C53RC
подробное описание детали  Enhanced 80C51 Central Processing Unit ,6T or 12T per machine cycle
PDF  165 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STC [STCmicro Technology Co,.Ltd]
домашняя страница  http://www.stcmicro.com/
Logo STC - STCmicro Technology Co,.Ltd

STC89C53RC датащи(HTML) 145 Page - STCmicro Technology Co,.Ltd

Back Button STC89C53RC Datasheet HTML 141Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 142Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 143Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 144Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 145Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 146Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 147Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 148Page - STCmicro Technology Co,.Ltd STC89C53RC Datasheet HTML 149Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 145 / 165 page
background image
To create a 1000-byte buffer in external RAM starting at 4000H, the following directives could be used:
XSTART
EQU
4000H
XLENGTH
EQU
1000
XSEG
AT
XSTART
XBUFFER:
DS XLENGTH
This buffer could be cleared with the following instruction sequence:
MOV
DPTR, #XBUFFER
LOOP:
CLR
A
MOVX
@DPTR, A
INC
DPTR
MOV
A, DPL
CJNE
A, #LOW (XBUFFER + XLENGTH + 1), LOOP
MOV
A, DPH
CJNE
A, #HIGH (XBUFFER + XLENGTH + 1), LOOP
(continue)
This is an excellent example of a powerful use of ASM51's operators and assemble-time expressions. Since an
instruction does not exist to compare the data pointer with an immediate value, the operation must be fabricated
from available instructions. Two compares are required, one each for the high- and low-bytes of the DPTR.
Furthermore, the compare-and-jump-if-not-equal instruction works only with the accumulator or a register, so
the data pointer bytes must be moved into the accumulator before the CJNE instruction. The loop terminates only
when the data pointer has reached XBUFFER + LENGTH + 1. (The "+1" is needed because the data pointer is
incremented after the last MOVX instruction.)
DBIT
The format for the DBIT (define bit) directive is,
[label:]
DBIT
expression
The DBIT directive reserves space in bit units. It can be used only in a BIT segment. The expression must be
a valid assemble-time expression with no forward references. When the DBIT statement is encountered in a
program, the location counter of the current (BIT) segment is incremented by the value of the expression. Note
that in a BIT segment, the basic unit of the location counter is bits rather than bytes. The following directives
creat three flags in a absolute bit segment:
BSEG
;BIT SEGMENT (ABSOLUTE)
KEFLAG:
DBIT
1
;KEYBOARD STATUS
PRFLAG:
DBIT
1
;PRINTER STATUS
DKFLAG:
DBIT
1
;DISK STATUS
Since an address is not specified with BSEG in the example above, the address of the flags defined by DBIT could
be determined (if one wishes to to so) by examining the symbol table in the .LST or .M51 files. If the definitions
above were the first use of BSEG, then KBFLAG would be at bit address 00H (bit 0 of byte address 20H). If other
bits were defined previously using BSEG, then the definitions above would follow the last bit defined.
DB (Define Byte)
The format for the DB (define byte) directive is,
[label:]
DB
expression [, expression] […]
The DB directive initializes code memory with byte values. Since it is used to actually place data constants in
code memory, a CODE segment must be active. The expression list is a series of one or more byte values (each of
which may be an expression) separated by commas.
145



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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