Thursday, 11 June 2020

C DATA TYPES FOR 8051 MICRO-CONTROLLER

✏️C DATA TYPES FOR 8051 MICRO-CONTROLLER

πŸ“Œ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.

πŸ’‍♂️ARTIFICIAL SUN CREATED BY CHINA πŸ‘ˆ

🌞 ARTIFICIAL SUN MADE BY CHINA 🌞 ☀️China successfully powered up its “artificial sun” nuclear fusion reactor for the first ti...