pinMode execution time?

Could you show the schematic diagram?
Something drawn by hand on paper, and photographed would be fine.

When you say multiplexer, what is the part number?