AN 502: Implementing SMBus Controller in Altera MAX Series