06.11.2014 Views

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Absolute Variable Location<br />

• The _at_ keyword is used to assign an absolute memory address to a variable<br />

– Useful for accessing memory mapped peripherals or specific memory<br />

locations<br />

– Syntax<br />

• type [memory_space] variable_name _at_ constant<br />

• unsigned char xdata lcd _at_ 0x8000<br />

– Absolute variables may not be initialised<br />

Embedded Systems 2 2 - 34 C Programming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!