πUnsigned char:
1.The most widely used data types for the 8051.
2.The unsigned char is an 8-bit data type.
3.The range of unsigned char is 0-255(0-FF).
Used for:
counter value.
ASCII Character.
πSigned char:
1.Signed char is an 8 bit data type.
2.Use the MSB D7 to represent - or +.
3.The range of signed char - 128 to +128.
πUnsigned int:
1.The unsigned int is an 16-bit data type.
2.Takes the value in the range 0-65535(0-FFFFH).
Used for:
Define 16bit variable such as memory addresses.
Set the counter values of more than 256.
πSigned int:
1.Signed int is an 16bit data type.
2.use the MSB D15 to represent - or +.
3.We have 15bits for the magnitude of the number - 32768 to +32767.
πBit, Sbit, Sfr:
1.The bit data type allows access to single bits of bit - addressable memory spaces 20-2FH.
2.To access bits of SFRs, we use sbit data type.
3.To access the byte-size SFR registers, we use SFR data type.
No comments:
Post a Comment
If you have any doubts or clarification you need in my blog topics, I would π― try to clear it in an efficient manner as possible. I will also accept your suggestions.