| Target Support Package™ TC2 | ![]() |
c280xdspchiplib or c281xdspchiplib in Target Support Package™ TC2 software
This block sends data of the specified data type to a particular memory address on the target.

Address of the target memory location, in hexadecimal, to which to write data
Type of data to be written to the above memory address. Valid data types are double, single, int8, uint8, int16, uint16, int32, and uint32. The data is cast from the selected data type to 16-bit data.
Whether to write the specified Value at program start
First value of data to be written to memory at program start
Whether to write the specified Value at program end
Last value of data to be written to memory at program termination
Whether to write data in real time during program execution
Note If your Write To Memory block is set to write to memory at every sample time interval (that is, it has an incoming port) and it receives a vector signal input of N elements, a corresponding memory region starting with the specified Memory address is updated at every sample time. If you specify an Initial and/or Termination value, that value is written to all locations in the same memory region at initialization and/or termination. If your Write To Memory block does not write to memory at every sample time (that is, it does not have an incoming port) and you specify an Initial and/or Termination value, that value is written to a single memory location that corresponds to the specified Memory address. |

C code to execute before writing to the specified memory address. An example of code that might be inserted here is
asm (" EALLOW ")
which enables write access to the device emulation registers on the C2812 DSP.
C code to execute after writing to the specified memory address. An example of code that may be inserted here is
asm (" DIS ")
which disables write access to the device emulation registers on the C2812 DSP.
![]() | Switch External Mode Configuration | To RTDX | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |