16f887 config -> back to the future keypad -------------------------------------------------------------------------------------------------------------------------------------------- Porta pin info Ra0 19 LED_RED Out led red Ra1 20 LED_GREEN Out led green Ra2 21 LED_YELLOW Out led yellow Ra3 22 On_Off_Sound Button switch Ra4 23 BTN White Button white command Ra5 24 Rb0 8 BTN 1 KeyPad 1 Rb1 9 BTN 2 KeyPad 2 Rb2 10 CAN TX Can Bus Rb3 11 CAN RX Can Bus Rb4 14 BTN 3 KeyPad 3 Rb5 15 BTN 4 KeyPad 4 Rb6 16 Clk_prog Icprog Rb7 17 Data_prog Icprog Rc0 32 BTN 5 KeyPad 5 Rc1 35 BTN 6 KeyPad 6 Rc2 36 BTN 7 KeyPad 7 Rc3 37 SCK I2C SCL Rc4 42 SDA I2c SDA Rc5 43 BTN 8 KeyPad 8 Rc6 44 Tx DfPlayer_mini Rc7 1 Rx Dfplayer_mini Rd0 38 BTN Red Button red command Rd1 39 BTN Green Button green command Rd2 40 BTN Yellow Button yellow command Rd3 41 Read rtc + send time (green display) Rd4 2 Loop read rtc Button Rd5 3 Set destination time + 10min Rd6 4 BTN 9 KeyPad 9 Rd7 5 BTN 0 KeyPad 0 Re0 25 Re1 26 Re2 27 Re3 18 MCRL