I just wanted to let you know that there is pre-written code for this chip. Go here:

http://www.melabs.com/resources/samp...ted/MN1307.txt

This might help.

Travin