Keil C51/8051
Data types and pointers
 

 

Keil data types and limits

Data type
 typedef

# of Bits
# of bytes  Range
bit (this is not an ISO type)   --- 1  -   0 or 1
sbit (this is not an ISO type)   ---

1
 -   0 or 1
 sfr (this is not an ISO type)   ---

 8
 1   0 to 255
 sfr16 (this is not an ISO type)   ---

16
 2  0 to 65535
 enum   ---  8/16  1/2  -128 to +127 OR
-32768 to +32767
 signed char  int8_t

8
 1  -128 to +127
unsigned char  uint8_t

8
 1  0 to 255
signed short  ---  16   2  -32768 to +32767
unsigned short   ---  16   2  0 to 65535
 signed int  int16_t  16  2  -32768 to +32767
 unsigned int  uint16_t  16  2  0 to 65535
  signed long  int32_t  32  4  -2147483648 to +2147483647
 unsigned long  uint32_t  32  4  0 to 4294967295
 float  float32_t   32  4 +/-1.175494E-38 to
+/-13.402823E+38
 

 

 Keil Pointer types and limits
           
           
           
           
           
 
 Last updated 24 Jan 2003 and still under construction!
Copyright Chris A Hills 2002
The right of Chris A Hills to be identified as the author of this work has been asserted by him in accordance with the Copyright, Designs and Patents Act 1988