I don't see where any tris registers are initialized.