Instructions
315 C-Control Pro IDE
© 2013 Conrad Electronic
Parameter
pin bit number of port (see Port Table)
5.19.2 RC5_Read
RC5 Functions
Syntax
word RC5_Read(void);
Sub RC5_Read() As Word
Description
Recognized RC5 datawords are received from the defined port pin. If there is no signal, the receive routine
waits up to 130ms. This is because there is a 113ms gap between two repeated RC5 datawords. A return
value of 0 means that no RC5 signal could be detected.
This function will not recognize if a different format than RC-5 is used. In case of doubt it will return
wrong values.
Return Parameter
14 Bit of the received RC-5 commands
5.19.3 RC5_Write
RC5 Functions
Syntax
void RC5_Write(word data);
Sub RC5_Write(data As Word)
Description
The 14 bit of a RC5 dataword are send to the defined port pin.
To drive the infrared LED the output port is set to maximum drive strength. But not all port pin have this
output rating. See AVR32Bit Module.
Parameter
data recognized RC5 dataword