Difference between revisions of "Component: Digital Temperature (EBM004) (EBM Modules)"
(XML import - Pre 8.0 release) |
|||
Line 19: | Line 19: | ||
==Examples== | ==Examples== | ||
− | + | ||
+ | This example simply reads the value from the digital temperature sensor and outputs the value to an LCD as a temperature in degrees C. | ||
+ | |||
+ | {{Fcfile|EBM004 - Test Program.fcfx|EBM004 Example}} | ||
Revision as of 09:39, 22 October 2018
Author | Matrix TSL |
Version | 2.0 (Release) |
Category | EBM Modules |
Contents
Digital Temperature (EBM004) component
A digital temperature sensor based around the LM75B chip.
Examples
This example simply reads the value from the digital temperature sensor and outputs the value to an LCD as a temperature in degrees C.
Downloadable macro reference
ReadInt
Read double byte data from register at address
Parameters
- BYTE address
Return value
ReadFloat
Reads the temperature value as a float
Parameters
- This macro has no parameters
Return value
WriteByte
No additional information
Parameters
- BYTE address
- BYTE data
Return value
WriteInt
No additional information
Parameters
- BYTE address
- UINT data
Return value
ReadByte
Read a single byte at a specific address from the chip's internal memory.
Parameters
- BYTE address
Return value
Uninit
Uninitialise and release resources
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Initialise
Initialise to default of 11 bit resolution
Parameters
- This macro has no parameters
Return value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Channel
This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::CHANNEL.
Channel selection
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)
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)
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.
Simulation Type
This property is of type Fixed list of ints and can be referenced with the variable name SimType.
No additional information
Label
This property is of type Line of text and can be referenced with the variable name label.
A text label to help you identify the component on the panel.
Min. Temp.
This property is of type Floating point and can be referenced with the variable name min_temp.
Minimum termperature that can be set or displayed on the thermometer slider.
Max. Temp.
This property is of type Floating point and can be referenced with the variable name max_temp.
Maximum termperature that can be set or displayed on the thermometer slider.
Scale divisions
This property is of type Unsigned integer and can be referenced with the variable name scale_divisions.
Number of numbered divisions shown on the thermometer scale.
I2C Data
This property is of type Fixed list of ints and can be referenced with the variable name number_base.
Set whether the I2C data is displayed as decimal or hexadecimal numbers.
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