công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

STC89LE53RC bảng dữ liệu(PDF) 157 Page - STCmicro Technology Co,.Ltd

tên linh kiện STC89LE53RC
Giải thích chi tiết về linh kiện  Enhanced 80C51 Central Processing Unit ,6T or 12T per machine cycle
PDF  165 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STC [STCmicro Technology Co,.Ltd]
Trang chủ  http://www.stcmicro.com/
Logo STC - STCmicro Technology Co,.Ltd

STC89LE53RC bảng dữ liệu(HTML) 157 Page - STCmicro Technology Co,.Ltd

Back Button STC89LE53RC Datasheet HTML 153Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 154Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 155Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 156Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 157Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 158Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 159Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 160Page - STCmicro Technology Co,.Ltd STC89LE53RC Datasheet HTML 161Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 157 / 165 page
background image
Data types used in 8051 C language
Data Type
Bits
Bytes Value Range
bit
1
0 to 1
signed char
8
1
-128 to +127
unsigned char
8
1
0 to 255
enum
16
2
-32768 to +32767
signed short
16
2
-32768 to +32767
unsigned short
16
2
0 to 65535
signed int
16
2
-32768 to +32767
unsigned int
16
2
0 to 65535
signed long
32
4
-2,147,483,648 to +2,147,483,647
unsigned long
32
4
0 to 4,294,967,295
float
32
4
±1.175494E-38 to ±3.402823E+38
sbit
1
0 to 1
sfr
8
1
0 to 255
sfr16
16
2
0 to 65535
The data type sbit is somewhat similar to the bit data type, except that it is normally used to declare 1-bit
variables that reside in special function registes (SFRs). For example:
sbit
P = 0xD0;
declares the sbit variable P and specifies that it refers to bit address D0H, which is really the LSB of the PSW
SFR. Notice the difference here in the usage of the assignment ("=") operator. In the context of sbit declarations,
it indicatess what address the sbit variable resides in, while in bit declarations, it is used to specify the initial
value of the bit variable.
Besides directly assigning a bit address to an sbit variable, we could also use a previously defined sfr
variable as the base address and assign our sbit variable to refer to a certain bit within that sfr. For example:
sfr
PSW = 0xD0;
sbit
P = PSW^0;
This declares an sfr variable called PSW that refers to the byte address D0H and then uses it as the base address
to refer to its LSB (bit 0). This is then assigned to an sbit variable, P. For this purpose, the carat symbol (^) is used
to specify bit position 0 of the PSW.
A third alternative uses a constant byte address as the base address within which a certain bit is referred. As
an illustration, the previous two statements can be replaced with the following:
sbit
P = 0xD0 ^ 0;
Meanwhile, the sfr data type is used to declare byte (8-bit) variables that are associated with SFRs. The
statement:
sfr
IE = 0xA8;
declares an sfr variable IE that resides at byte address A8H. Recall that this address is where the Interrupt Enable
(IE) SFR is located; therefore, the sfr data type is just a means to enable us to assign names for SFRs so that it is
easier to remember.
The sfr16 data type is very similar to sfr but, while the sfr data type is used for 8-bit SFRs, sfr16 is used for
16-bit SFRs. For example, the following statement:
sfr16
DPTR = 0x82;
157



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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