simEEPROMWrite

Top  Next

simEEPROMWrite


Write simulated EEPROM

Since R2019b

 

Library: embeddedCreatorLib ( Dafulai Electronics) / Simulate EEPROM by Flash / simEEPROMWrite

 

 

simEEPROMWrite

 

 


 

Description


 

This block write "Simulated EEPROM". Actually it only write to "SRAM", it didn't write to "Flash". You must call block "simEEPROMWriteFlash" to do actual writing to flash before power off.

 

 

 

Parameters


 

 

Sample time in sec (-1 for inherited): — Sample time for this block. It is the same meaning as general Simulink block .

 

 

Ports


 

Input

 

StartAddr — "uint16" data type's scalar. It is "Simulated EEPROM" start address you want to write. This address is byte addressing.

 

Data — Scalar or Vector. It is data source for writing. Data type cannot be "logical", cannot be "double".

 

Outport


 

OK — "logical" data type's scalar. True means "Simulated EEPROM" address range you write is valid. Writing data success.

 

 

 

Examples