Partly done A2D

I also finished Latch and TRIS setup.