Andrew R
/
Apple_Mbed_Studio
Apple Mbed Studio ready 15 Nov 2022
Diff: Pindef1114.h
- Revision:
- 0:3110d82c59ff
diff -r 000000000000 -r 3110d82c59ff Pindef1114.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Pindef1114.h Tue Nov 15 11:32:21 2022 +0000 @@ -0,0 +1,48 @@ +/************************************ 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 muteind(dp18); +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 + +DigitalOut muteLED (dp14); //illumionates whn output is muted +DigitalIn recloop_in(dp14); // record loop p/button input +DigitalOut recloop_out(dp16); // drives record loop LED +DigitalOut recloop_rly(dp10); + +BusOut select_drv(dp11, 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 sync(p29); //this is a sync pin that is toggled during IR read - used for debug only + + + + +