‹Nr.›
Tabelle 6.2
Datentypen des C-51-Compilers
Datentyp
Größe
Wertebereich
bit
1 Bit
0 oder 1
signed char
1 Byte
-128 bis +127
unsigned char
1 Byte
0 bis 255
signed int
2 Byte
-32768 bis + 32767
unsigned int
2 Byte
0 bis 65535
signed long
4 Byte
-2147483648 bis +2147483647
unsigned long
4 Byte
0 bis 4294967295
float
4 Byte
1,176E-38 bis 3,40E+38
pointer
1-3 Byte
Adresse einer Variablen
Datentyp
Größe
Wertebereich
Datentypen zum Zugriff auf
SFR
sbit
1 Bit
0 oder 1
sfr
1 Byte
0 bis 255
sfr 16
2 Byte
0 bis 65535