11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Intrinsic functionsDescriptionWrites a value to a 20-bit SFR register located at the given 16-bit address. This intrinsicfunction is only useful on devices based on the <strong>MSP430</strong>X architecture.__data20_read_typeSyntaxunsigned type __data20_read_type(unsigned long address);where:addresstypeSpecifies the address for the read operationCan be one of the types char, short, or longDescriptionReads data from the <strong>MSP430</strong>X full 1-Mbyte memory area. This intrinsic function isintended to be used in the Small data model. In the Medium and Large data models it isrecommended to use __data20 variables and pointers.The following functions are supported:Function Operation size Alignmentunsigned char __data20_read_char 1 byte 1unsigned short __data20_read_short 2 bytes 2unsigned long __data20_read_long 4 bytes 2Table 37: Functions for reading data that has a 20-bit address__data20_write_typeSyntaxvoid __data20_write_type(unsigned long address, unsigned type);where:addresstypeSpecifies the address for the write operationCan be one of the types char, short, or longPart 2. <strong>Compiler</strong> <strong>reference</strong>219

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

Saved successfully!

Ooh no, something went wrong!