Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
io
sfr
register
Note: If none of the memory specifiers are used when declaring a variable, data specifier will be
set as default by the compiler. 
Related topics: AVR Memory Organization, Accessing individual bits, SFRs, Constants, Functions 
115
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
AVR Specifics
mikroPASCAL PRO for AVR
CHAPTER 4
Description
This memory specifier allows user to access the I/O Memory space.
Example
// put io_buff in io memory space
var io_buff : byte; io;
Description
This memory specifier in combination with (rx, io, data) allows user to access
special function registers. It also instructs compiler to maintain same identifier in
Pascal and assembly.
Example
var io_buff : byte; iosfr;  // put io_buff in I/O memory space
var y : char; rx; sfr;
// puts y in Rx space
var temp : byte; data; sfr; and var temp : byte; sfr; are equiv-
alent, and put temp in Extended I/O Space.
Description
If no other memory specifier is used (rx, io, sfr, code or data), the register
specifer places variable in Rx space, and instructs compiler to maintain same
identifier in C and assembly.
Example
var y : char; register;