The choice of material to read or drive is the definition of three digits (Bit), RA0, 1,2 PORTA of the PIC at the entrance of 74HC138A. To select a material for reading or driving an output of 78HC138 is '0 '(Low), forcing the transistor (2SA1015) to conduct....