Difference between revisions of "Component: Serial EEPROM (24C32) (Storage)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
 
(XML import)
Line 4: Line 4:
 
|-
 
|-
 
| width="20%" style="color: gray;" | Author
 
| width="20%" style="color: gray;" | Author
| [http://www.matrixtsl.com Matrix TSL]
+
| Matrix TSL
 
|-
 
|-
 
| width="20%" style="color: gray;" | Version
 
| width="20%" style="color: gray;" | Version
| 1.1 (Release)
+
| 2.0 (Release)
 
|-
 
|-
 
| width="20%" style="color: gray;" | Category
 
| width="20%" style="color: gray;" | Category
Line 17: Line 17:
 
==[[File:Component Icon 35934f36_5cda_49e7_b1a0_05c85722d858.png|Image]] Serial EEPROM (24C32) component==
 
==[[File:Component Icon 35934f36_5cda_49e7_b1a0_05c85722d858.png|Image]] Serial EEPROM (24C32) component==
 
Serial (I2C) EEPROM component for 24C32  
 
Serial (I2C) EEPROM component for 24C32  
Can be added to a MIAC project to give read and write access to the internal non-volatile memory device (if fitted, depending upon model).
+
Can be added to a MIAC project to give read and write access to the internal non-volatile  
 +
memory device (if fitted, depending upon model).
  
  
Line 63: Line 64:
 
<span style="font-weight: normal;"><u>Device Address</u></span>
 
<span style="font-weight: normal;"><u>Device Address</u></span>
  
This property is of type ''Unsigned integer'' and can be referenced with the variable name ''DEVICE_ADDRESS''.
+
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''DEVICE_ADDRESS''.
  
''<span style="color:red;">No additional information</span>''
+
Device address bits, these must match the address pins on the EEPROM IC.
 +
 
 +
<span style="font-weight: normal;"><u>Channel</u></span>
 +
 
 +
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''cal_i2c1::CHANNEL''.
 +
 
 +
Channel selection
 +
 
 +
<span style="font-weight: normal;"><u>Baud Select</u></span>
 +
 
 +
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''cal_i2c1::BAUD_LIST''.
 +
 
 +
Baud rate option selector
 +
 
 +
<span style="font-weight: normal;"><u>Baud Rate</u></span>
 +
 
 +
This property is of type ''Signed integer'' and can be referenced with the variable name ''cal_i2c1::BAUD''.
 +
 
 +
Baud rate to be used
 +
 
 +
<span style="font-weight: normal;"><u>Stop Delay</u></span>
  
 +
This property is of type ''True or false'' and can be referenced with the variable name ''cal_i2c1::StopDel''.
  
 +
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not
  
<span style="font-weight: normal;"><u>Channel</u></span>
+
a 10ms delay between an I2C stop event and the next I2C start event.
  
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''CHANNEL''.
 
  
''<span style="color:red;">No additional information</span>''
 
  
 +
Most modern microcontrollers will not have a problem so this property can be disabled to speed up the
  
 +
I2C communications.
  
 
<span style="font-weight: normal;"><u>SDA</u></span>
 
<span style="font-weight: normal;"><u>SDA</u></span>
  
This property is of type ''Single digital pin'' and can be referenced with the variable name ''SDA''.
+
This property is of type ''Single digital pin'' and can be referenced with the variable name ''cal_i2c1::SDA''.
 +
 
 +
Pin used for SDA (data signal)
 +
 
 +
<span style="font-weight: normal;"><u>SDA Remap Pin</u></span>
 +
 
 +
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''cal_i2c1::SDAPins''.
  
 
''<span style="color:red;">No additional information</span>''
 
''<span style="color:red;">No additional information</span>''
Line 87: Line 116:
 
<span style="font-weight: normal;"><u>SCL</u></span>
 
<span style="font-weight: normal;"><u>SCL</u></span>
  
This property is of type ''Single digital pin'' and can be referenced with the variable name ''SCL''.
+
This property is of type ''Single digital pin'' and can be referenced with the variable name ''cal_i2c1::SCL''.
 +
 
 +
Pin used for SCL (clock signal)
 +
 
 +
<span style="font-weight: normal;"><u>SCL Remap Pin</u></span>
 +
 
 +
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''cal_i2c1::SCLPins''.
 +
 
 +
''<span style="color:red;">No additional information</span>''
 +
 
 +
 
 +
 
 +
<span style="font-weight: normal;"><u>Scope Traces</u></span>
 +
 
 +
This property is of type ''True or false'' and can be referenced with the variable name ''cal_i2c1::ScopeTraces''.
 +
 
 +
Selects if the component pin connections are automatically generated on the data recorder window or not.
 +
 
 +
Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion.
 +
 
 +
No: Do not show the pin signals on the data recorder window.
 +
 
 +
<span style="font-weight: normal;"><u>Console Data</u></span>
 +
 
 +
This property is of type ''True or false'' and can be referenced with the variable name ''cal_i2c1::ConsoleData''.
 +
 
 +
Selects if the console data is automatically generated or not
 +
 
 +
<span style="font-weight: normal;"><u>Injector</u></span>
 +
 
 +
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''cal_i2c1::Injector''.
  
 
''<span style="color:red;">No additional information</span>''
 
''<span style="color:red;">No additional information</span>''

Revision as of 10:31, 9 May 2018


Author Matrix TSL
Version 2.0 (Release)
Category Storage


Image Serial EEPROM (24C32) component

Serial (I2C) EEPROM component for 24C32 Can be added to a MIAC project to give read and write access to the internal non-volatile memory device (if fitted, depending upon model).


Examples

No additional examples


Downloadable macro reference

Read

Read and return the value of the EEPROM at the given address

Parameters

UINT address


Return value

BYTE


Write

Write the given data value to the EEPROM at the given address

Parameters

UINT address
BYTE data


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Device Address

This property is of type Fixed list of ints and can be referenced with the variable name DEVICE_ADDRESS.

Device address bits, these must match the address pins on the EEPROM IC.

Channel

This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::CHANNEL.

Channel selection

Baud Select

This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::BAUD_LIST.

Baud rate option selector

Baud Rate

This property is of type Signed integer and can be referenced with the variable name cal_i2c1::BAUD.

Baud rate to be used

Stop Delay

This property is of type True or false and can be referenced with the variable name cal_i2c1::StopDel.

On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not

a 10ms delay between an I2C stop event and the next I2C start event.


Most modern microcontrollers will not have a problem so this property can be disabled to speed up the

I2C communications.

SDA

This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SDA.

Pin used for SDA (data signal)

SDA Remap Pin

This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::SDAPins.

No additional information


SCL

This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SCL.

Pin used for SCL (clock signal)

SCL Remap Pin

This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::SCLPins.

No additional information


Scope Traces

This property is of type True or false and can be referenced with the variable name cal_i2c1::ScopeTraces.

Selects if the component pin connections are automatically generated on the data recorder window or not.

Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion.

No: Do not show the pin signals on the data recorder window.

Console Data

This property is of type True or false and can be referenced with the variable name cal_i2c1::ConsoleData.

Selects if the console data is automatically generated or not

Injector

This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::Injector.

No additional information