Component: RC5 (EB060, Generic 36KHz) (Wireless)
Author | Matrix Ltd. |
Version | 1.2 |
Category | Wireless |
Contents
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.
Component Pack
COMMSB
Detailed description
No detailed description exists yet for this component
Examples
Receive Data
Example to receive data via RC5 encoded IR. RC5 incoming data pin connected to pin RB0. If a valid RC5 packet is received then the 8-bit data is shown on the PORTD pins and the 5-bit address data is shown on the PORTA pins.
RC5 Receive Example
Transmit Data
Example to send data via RC5 encoded IR. The transmission is done via the RC0 pin and the modulation is performed by the PWM output signal on the RC2 pin. The data and address values are incremented after each transmission.
RC5 Transmit Example
Schematic showing the required hardware to combine TX masking pin and PWM output pin.
Downloadable macro reference
![]() |
CollectData |
Retreives a value from the last successful RC5 reception. 0 = Read Command 1 = Read Address 2 = Read Toggle Bit | |
![]() |
selection |
![]() |
Return |
![]() |
RXDisable |
Disables the RC5 data receive functionality. | |
![]() |
Return |
![]() |
TXEnable |
Enables the RC5 data transmit functionality. | |
![]() |
Return |
![]() |
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. | |
![]() |
Return |
![]() |
TXDisable |
Disables the RC5 data transmit functionality. | |
![]() |
Return |
![]() |
RXEnable |
Enables the RC5 data receive functionality. | |
![]() |
Return |