This code is a basic example of using hardware SPI on the ATTiny24/​44/​84. The inline coding of software-triggered clock pulses allows the bit rate to approach F/2 (F = AVR clock frequency), or 4MHz with an internal 8MHz clock.