Difference between revisions of "HANcoder/STM32/Blocks/Write to EEPROM"
From OpenMBD
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{HANcoder/block | {{HANcoder/block | ||
− | |info= | + | |info= A 'Write to EEPROM' block writes a value to the specified EEPROM identifier. |
− | + | |blockImage = WriteToEEPROMBlock.png | |
+ | |maskImage = WriteToEEPROMMask.png | ||
− | | | + | |SampleTime = Default |
+ | |SeeAlso = [[HANcoder/Read_from_EEPROM|Read from EEPROM]] {{!}} [[HANcoder/Erase_EEPROM|Erase EEPROM]] {{!}} [[HANcoder/Save_EEPROM|Save EEPROM]] | ||
− | + | }} | |
− | + | == Block inputs (inports) == | |
+ | Input 1: The identifier for the EEPROM, it is possible to store 256 values with index numbers from 0 to 255.(uint8)<br/> | ||
+ | Input 2: The value that needs to be stored in the EEPROM for the identifier indicated at the first input.(uint16)<br/> | ||
− | | | + | == Block parameters == |
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! style="width:150px" | Parameter | ||
+ | ! Description | ||
+ | |- | ||
+ | | Sample time | ||
+ | | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. | ||
+ | |} | ||
+ | == Examples == | ||
+ | [[HANcoder/Examples/Using_EEPROM| Using EEPROM]] | ||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/STM32/Blocks/Read_from_EEPROM|Read from EEPROM]] {{!}} [[HANcoder/STM32/Blocks/Erase_EEPROM|Erase EEPROM]] {{!}} [[HANcoder/STM32/Blocks/Save_EEPROM|Save EEPROM]] | ||
}} | }} |
Latest revision as of 10:21, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about Write to EEPROM
A 'Write to EEPROM' block writes a value to the specified EEPROM identifier.
Block
Mask
Block inputs (inports)
Input 1: The identifier for the EEPROM, it is possible to store 256 values with index numbers from 0 to 255.(uint8)
Input 2: The value that needs to be stored in the EEPROM for the identifier indicated at the first input.(uint16)
Block parameters
Parameter | Description |
---|---|
Sample time | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. |