AN 485: Serial Peripheral Interface Master in Altera MAX Series