Can the "DataMemWrite" be used as a "Write_Register" block?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can the "DataMemWrite" be used as a "Write_Register" block?

664 Views
Poley
Contributor V

Hi, 

As with other I get the following error when adding the Write_Registers block into my model:

Poley_0-1645746136466.png

Becuase this doesn't work and I can't find anything on the search to fix this, I was wondering whether I can use the DataMemWrite to do the same thing? I need to write a value to IFLAG1 to clear the interrupt. Here it is in the datasheet:

Poley_2-1645746275620.png

As it has an offset of 30h, can I set up the DataMemWrite block like this, or does this block do something completely different?:

Poley_1-1645746256738.png

Poley_3-1645746349723.png

@mariuslucianand  Any help is appreciated.

Thank you!

 

0 Kudos
0 Replies