Dumb question, did you assign initial values to the pins, ADC, CONFIGs, etc?