I'm going to use MISO/MOSI/SCK pins of 8 bit AVR with ISP and they should connect to shift register. They are not going to work simultaneously, but the question is how to isolate register from ISP?
Update:

U7 is ISP header. U1 is ATTiny45/85. U2 is LED display with shift register M512RD, but I'm mostly sure that the question is more conceptual and doesn't require exact parts.
