Jump to content

Component: IrDA (EB012, MCP1250, MCP2120) (Wireless)

From Flowcode Help
Revision as of 14:37, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix Ltd.
Version 2.0
Category Wireless


IrDA (EB012, MCP1250, MCP2120) component

Low level routines for controlling a standard IrDA interface. Also available in the form of the EB012 IrDA E-block.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_IrDA.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_IrDA.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Transmit

Basic example which repeatedly transmits a string of data via the IrDA interface. IrDA Transmit

Receive

Basic example which waits for any incoming data and then displays the data on the LCD. IrDA Receive






Macro reference

Initialise

Initialise
Initialises the UART ready for IrDA data to be sent or received, 
- VOID Return


ReceiveChar

ReceiveChar
Receives byte character from the IrDA connection. 
- INT Timeout
Max amount of time in milliseconds to wait for data. 
- INT Return


SendChar

SendChar
Sends a byte character to the IrDA connection. 
- INT Char
 
- VOID Return


Property reference

Properties
Comms Settings
Interface
Decides which IrDA interface IC we wish to communicate via. 
Baud Options
Baud rate option selector 
Baud Rate
 
Data Bits
Number of data bits 
Echo
Echo selection 
Connections
Channel
UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. 
TX
Pin to be used for Transmit data 
RX
Pin to be used for Receive data 
Use Flow Control
Flow Control (Handshake) enable or disable. On: Two I/O pins are used to control the flow of data in and out of the device. Off: Flow control is disabled. 
Simulation
Label
Label used to help identify the component on the panel. 
Scope Traces
Selects if the scope traces are automatically added to the data recorder window or not. Simulation - draws an approximation of the UART data onto the scope trace. ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD. 
Console Data
Selects if the console data is automatically generated or not 
Console Columns
Number of characters that can be displayed on a single line of the console. 
Data Source
Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port API - Routes the communication data via a data API component on the Panel.