Jump to content

Component: RC5 (EB060, Generic 36KHz) (Wireless)

From Flowcode Help
Revision as of 14:35, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder"")
Author Matrix Ltd.
Version 1.2
Category Wireless


RC5 (EB060, Generic 36KHz) component

Low level routines for controlling a standard RC5 IR interface. Also available in the form of the EB060 RC5 E-block.

Detailed description

No detailed description exists yet for this component

Examples

Receive Data

Example to receive data via RC5 encoded IR on an Arduino Uno. RC5 incoming data pin connected to pin D2. If a valid RC5 packet is received then the 8-bit data is sent to the UART to USB converter to be displayed on the PC serial terminal.

RC5 Receive Example


Macro reference

CheckRx

CheckRx
Checks to see if a new RC5 packet has been received. Returns 0 to signify no new data available. Returns 1 to signify there is new data available. 
- BOOL Return


CollectData

CollectData
Retreives a value from the last successful RC5 reception. 0 = Read Command 1 = Read Address 2 = Read Toggle Bit 
- BYTE Index
0=Command, 1=Address, 2=ToggleBit 
- BYTE Return


RXDisable

RXDisable
Disables the RC5 data receive functionality. 
- VOID Return


RXEnable

RXEnable
Enables the RC5 data receive functionality. 
- VOID Return


TXDisable

TXDisable
Disables the RC5 data transmit functionality. 
- VOID Return


TXEnable

TXEnable
Enables the RC5 data transmit functionality. 
- VOID Return


TXPacket

TXPacket
Transmits a RC5 data packet consisting of command, address and toggle bit. 
- BYTE command
Command to send 0-63 
- BYTE address
Address to send 0-31 
- BYTE toggle
Toggle bit value 0-1 
- VOID Return


Property reference

Properties
IR Frequency
The infra-red modulation frequency used when transmitting a logic one. 
Pulse Time
Time for the pulse to be high or low in microseconds 
Timer
Timer
Timer Peripheral to use to monitor the passage of time. 
Bit Depth
Number of bits in the timer peripheral. 8-bit timers can count from 0-255 before overflowing. 16-bit timers can count from 0 to 65535 before overflowing. 
Auto Calculate
 
Receive Properties
Receive Mode
Specifies which receive mode the program should use. 
Samples
Number of samples to take per bit. Bit time is 889 uS. The higher the number the less prone to errors but the faster the micro has to interrupt and spend processing the wave. 
Invert Signal
Allows the incoming signal to automatically be inverted if needed by the receive hardware. 
Address Mask
What incoming values should we allow to make it through to the CheckRx macro. 
Receive Pin
Pin assigned to receive incoming RC5 data 
Transmit Properties
Transmit Mode
Specifies which transmit mode the program should use. 
Transmit Pin
Pin assigned to transmit outgoing RC5 data 

Component Source Code

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

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