Difference between revisions of "HANcoder/STM32/Blocks/Write to EEPROM"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{Block |info= '''Function''' Write the value to the specified EEPROM identifier. Inport id: The EEPROM identifier. This input is of type UINT8 and can have a value b...")
 
 
(76 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Block
+
{{HANcoder/block
  
|info=
+
|info= A 'Write to EEPROM' block writes a value to the specified EEPROM identifier.
  
'''Function'''
+
|blockImage = WriteToEEPROMBlock.png
  
Write the value to the specified EEPROM identifier.
+
|maskImage = WriteToEEPROMMask.png
  
Inport
+
|SampleTime = Default
  
id:
+
|SeeAlso = [[HANcoder/Read_from_EEPROM|Read from EEPROM]] {{!}} [[HANcoder/Erase_EEPROM|Erase EEPROM]] {{!}} [[HANcoder/Save_EEPROM|Save EEPROM]]
  The EEPROM identifier. This input is of type UINT8 and can have a value
 
  between 0..255 to select one of the 256 supported application specific
 
  identifiers.
 
value:
 
  The value to write to the EEPROM identifier. This input is of type UINT16.
 
  
 +
}}
  
|blockImage=
+
== 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.
 +
|}
  
|maskImage=
+
== Examples ==
 
+
[[HANcoder/Examples/Using_EEPROM| Using EEPROM]]
 
 
|SampleTime=
 
 
 
  
 +
{{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

General information about Write to EEPROM

A 'Write to EEPROM' block writes a value to the specified EEPROM identifier.

Block

WriteToEEPROMBlock.png

Mask

WriteToEEPROMMask.png

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.

Examples

Using EEPROM

See Also

Read from EEPROM | Erase EEPROM | Save EEPROM