Write To Memory - Write data to target memory

Library

c280xdspchiplib or c281xdspchiplib in Target Support Package™ TC2 software

Description

This block sends data of the specified data type to a particular memory address on the target.

Dialog Box

Parameters Pane

Memory address

Address of the target memory location, in hexadecimal, to which to write data

Data type

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.

Write at initialization

Whether to write the specified Value at program start

Value

First value of data to be written to memory at program start

Write at termination

Whether to write the specified Value at program end

Value

Last value of data to be written to memory at program termination

Write at every sample time

Whether to write data in real time during program execution

Custom Code Pane

Insert custom code before memory write

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.

Insert custom code after memory write

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.

See Also

Read From Memory

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS