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

Pindef1114.h

Committer:
andrewcrussell
Date:
17 months ago
Revision:
10:7a93d34a419a
Parent:
9:c9fb1f8e2ab8

File content as of revision 10:7a93d34a419a:

/************************************ Pinfef1114.h *******************************/
/****************** for the RC5 preamplifier copntroller program  ****************/
DigitalOut FWD1(dp1);       // these are the motor 'H' bridge drive signals
DigitalOut REV1(dp2);       // when the volume controll motor is not being driven
                            // they are all OFF

DigitalOut muteout(dp13);    // drives the mute relay via a mosfet or transistor
DigitalOut muteLED(dp14);
//InterruptIn mute_int(dp11);  // mute p/button interrupt
//DigitalIn mute(dp11);         // mute input from associated pushbutton

DigitalOut stby_pa(dp25);    //   power amplifier standby control which follows the premap
                            // but with suitable delays                       
                            
InterruptIn rc5int(dp17);    // this is the R/C interrupt triggered by the IRx data out
DigitalIn rc5dat(dp17);      // data is read in from here - its coming from the IRx data out


InterruptIn select_int(dp28); // select rotary encoder interrupt - we use the 'A' O/P to generate the interrupt
DigitalIn sela(dp28);         // select input rotary enc input A
DigitalIn selb(dp27);         // select input rotary enc input B

DigitalIn stdby(dp26);       // standby function p/button input
InterruptIn stdby_int(dp26); // standby p/button interrupt in


//InterruptIn tone_pb(dp15);
//DigitalIn tone(dp15);
//DigitalOut tone(dp25);          // can only be turned on and off at this stage by the r/control

//InterruptIn recloop_int(dp14);   //record loop interrupt
DigitalIn recloop_in(dp14);      // record loop p/button input
DigitalOut recloop_out(dp16);    // drives record loop LED
DigitalOut recloop_rly(dp10); 

BusOut select_drv(dp24,dp4, dp5, dp6, dp9, dp10);  //these are the select relay drivers
// note that we do not explicitly define the input select output ports because we just move the active
// output port bit around in  a continuos loop with each depress of the select button.  Drive the associated
// input relays via a mosfet or transistor

// DigitalOut myled(LED1); // for test purposes only - on the mbed module - comment out when not used
// DigitalOut myled2(LED2);
//DigitalOut bitstreamsync(dp18); //this is a sync pin that is toggled during IR read - used for debug only