not sure why you are asking for a tut, and then posting a tut that has all the info you need.
There are several opensource projects like the one you just posted, as well as preproggramed chips at the acidmods store. (I think he has mode select in there, if not, harrass king mike, hes got em I know
)