An RC5 decoder and preamp controller. Written on the LPC11U24, Ported to LPC1114 and now 100% stable (January 2016)

Dependents:   AppleRemoteController_copy_Production_Version AppleRemoteController_Reference_Only

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers apple_codes.h Source File

apple_codes.h

00001 /********************************* RC5 control codes ******************************/
00002 // The Philips RC5 coce consists of 14 bits delivered in bi-phase Manchester encoding from
00003 // an IR LED on the remote.  This is picked up by a detector (e.g. a Vishay TSOP3741) which
00004 // outputs the demodulated bit stream as follows:-
00005 // First 2 bits are start bits - allow the detector AGC to stabilize and trigger decoding process
00006 // Third bit is the toggle bit - it remains at the same logic level as long as a key is depressed
00007 // and will change to the alternate state when the key is un/re-depressed or when a different
00008 // key is depressed
00009 // Bits 4~8 are the address bits and determine which piece of equipment is being controlled
00010 // Bits 9~14 are the command bits
00011 // As long as a key is depressed, the 14 bits will be sent by the remote controller in sequential
00012 // blocks with a 120ms delay between subsequent block transmissions
00013 //  See http://en.wikipedia.org/wiki/RC-5 for the codes
00014 
00015 // 0-9 NUMERIC KEYS 0 - 9 - not used in this implementation
00016 
00017 // unused commands and addresses have been commented out - simply un-comment them to use them 
00018 // but note that if you do this, you will have to decode them, otherwise they will just fall through
00019 // and be ignored by the decoder.  Only the ones un-commented out below are active in V1.0
00020 // Note you will also need to write the associated command processor functions 
00021 
00022 #define STANDBY 378      // toggle  power ON and OFF
00023 #define MUTE 442         // toggle output signal on and off
00024 #define VUP 464         
00025 #define VDOWN 432
00026 #define SELECT_R 480      // rotates input through inputs - must depress and then release each time
00027 #define SELECT_L 272      // rotates input through inputs - must depress and then release each time
00028 #define PREAMP 479          // this is the system code identifying an Apple Remote
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040