


So, when You have done all the preparations, there's only a code to write (which is. Next, it looks like the communication between the MCU and 74HC595 is an I2C type (there are already made functions for that type of communication in CodeVISION C compiler) since 74HC595 has a clock lines (which are, as far as I know, only used in 2 wire communication protocol - I2C). Since the transistors (BC337) are connected to PB0 and PB1 You have to set them as outputs (DDRB0=1 and DDRB1=1) and set the PULL-UP resistor (by setting PORTB0 and PORTB1 to 1 also) so You can continuously exchange the states of PB0 and PB1. Well, here's what I know about that scheme You found.
