Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SIMPLE TYPES
Simple types represent types that cannot be divided into more basic elements and
are the model for representing elementary data on machine level. Basic memory
unit in mikroPascal PRO for AVR has 16 bits.
Here is an overview of simple types in mikroPascal PRO for AVR:
You can assign signed to unsigned or vice versa only using the explicit conversion.
Refer to Types Conversions for more information.
144
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroPASCAL PRO for AVR
CHAPTER 5
Type
Size 
Range 
byte, char
8–bit
0 .. 255
short
8–bit
-127 .. 128
word
16–bit
0 .. 65535
integer
16–bit
-32768 .. 32767
dword
32–bit
0 .. 4294967295
longint
32–bit
-2147483648 .. 2147483647
real
32–bit
±1.17549435082 * 10-38 ..
±6.80564774407 * 1038
bit
1–bit
0 or 1
sbit
1–bit
0 or 1