http://melabs.com/resources/samples/pbp/spimast.htm

http://melabs.com/resources/samples/pbp/i2c.htm