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
Pindef11U24.h@10:7a93d34a419a, 23 months ago (annotated)
- Committer:
- andrewcrussell
- Date:
- Mon Nov 14 14:30:51 2022 +0000
- Revision:
- 10:7a93d34a419a
- Parent:
- 0:83d4a20e7bc7
corrected .h file;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewcrussell | 0:83d4a20e7bc7 | 1 | /************************************ Pinfef11U24.h *******************************/ |
andrewcrussell | 0:83d4a20e7bc7 | 2 | |
andrewcrussell | 0:83d4a20e7bc7 | 3 | DigitalOut FWD1(p12); // the are the motor 'H' bridge drive signals |
andrewcrussell | 0:83d4a20e7bc7 | 4 | DigitalOut REV1(p11); // when the volume controll motor is not being driven |
andrewcrussell | 0:83d4a20e7bc7 | 5 | //DigitalOut REV1(p11); // they are all OFF |
andrewcrussell | 0:83d4a20e7bc7 | 6 | //DigitalOut REV2(p13); |
andrewcrussell | 0:83d4a20e7bc7 | 7 | |
andrewcrussell | 0:83d4a20e7bc7 | 8 | DigitalOut muteout(p30); // drives the mute relay via a mosfet or transistor |
andrewcrussell | 0:83d4a20e7bc7 | 9 | InterruptIn mute_int(p26); // mute p/button interrupt |
andrewcrussell | 0:83d4a20e7bc7 | 10 | DigitalIn mute(p26); // mute input from associated pushbutton |
andrewcrussell | 0:83d4a20e7bc7 | 11 | |
andrewcrussell | 0:83d4a20e7bc7 | 12 | InterruptIn rc5int(p24); // this is the R/C interrupt triggered by the IRx data out |
andrewcrussell | 0:83d4a20e7bc7 | 13 | DigitalIn rc5dat(p24); // data is read in from here - its coming from the IRx data out |
andrewcrussell | 0:83d4a20e7bc7 | 14 | |
andrewcrussell | 0:83d4a20e7bc7 | 15 | InterruptIn select_int(p5); // select rotary encoder interrupt - we use the 'A' O/P to generate the interrupt |
andrewcrussell | 0:83d4a20e7bc7 | 16 | DigitalIn sela(p5); // select input rotary enc input A |
andrewcrussell | 0:83d4a20e7bc7 | 17 | DigitalIn selb(p6); // select input rotary enc input B |
andrewcrussell | 0:83d4a20e7bc7 | 18 | |
andrewcrussell | 0:83d4a20e7bc7 | 19 | DigitalIn stdby(p21); // standby function p/button input |
andrewcrussell | 0:83d4a20e7bc7 | 20 | InterruptIn stdby_int(p21); // standby p/button interrupt in |
andrewcrussell | 0:83d4a20e7bc7 | 21 | |
andrewcrussell | 0:83d4a20e7bc7 | 22 | InterruptIn recloop_int(p23); //record loop interrupt |
andrewcrussell | 0:83d4a20e7bc7 | 23 | DigitalIn recloop_in(p23); // record loop p/button input |
andrewcrussell | 0:83d4a20e7bc7 | 24 | DigitalOut recloop_out(p22); // drives record loop relay via mosfet or transistor |
andrewcrussell | 0:83d4a20e7bc7 | 25 | |
andrewcrussell | 0:83d4a20e7bc7 | 26 | DigitalOut power_ind(p33); // this pin drives the standby controller - LOW = OFF; use regulators with standby inpu |
andrewcrussell | 0:83d4a20e7bc7 | 27 | |
andrewcrussell | 0:83d4a20e7bc7 | 28 | BusOut select_drv(p15, p16, p17, p18, p19, p20); //these are the select relay drivers |
andrewcrussell | 0:83d4a20e7bc7 | 29 | // note that we do not explicitly define the input select output ports because we just move the active |
andrewcrussell | 0:83d4a20e7bc7 | 30 | // output port bit around in a continuos loop with each depress of the select button. Drive the associated |
andrewcrussell | 0:83d4a20e7bc7 | 31 | // input relays via a mosfet or transistor |
andrewcrussell | 0:83d4a20e7bc7 | 32 | |
andrewcrussell | 0:83d4a20e7bc7 | 33 | // DigitalOut myled(LED1); // for test purposes only - on the mbed module - comment out when not used |
andrewcrussell | 0:83d4a20e7bc7 | 34 | // DigitalOut myled2(LED2); |
andrewcrussell | 0:83d4a20e7bc7 | 35 | // DigitalOut sync(p29); //this is a sync pin that is toggled during IR read - used for debug only |