I'm having trouble getting a 16F616 to work correctly, and I'm pretty sure the problem is with how I am configuring the various registers.

These are my peripheral connections:
A0 - push button (digital input)
A1 - potentiometer (analog input)
A2 - potentiometer (analog input)
A3 - push button (digital input/MCLRE is off)
A4 - relay (digital output)
A5 - SPI connection (digital output)
C0 - LED (digital output)
C1 - SPI connection (digital output)
C2 - SPI connection (digital output)
C3 - relay (digital output)
C4 - LED (digital output)
C5 - relay (digital output)

I am also using the TRM0 interrupt. What am I doing wrong?


Code:
#config 
    __CONFIG _CP_OFF & _WDTE_OFF & _BOREN_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT & _MCLRE_OFF
#endconfig


ADCON0 = %00000000
ANSEL = %00000110
CM1CON0 = %00000000
CM2CON0 = %00000000                 

TRISA = %00001111
TRISC = %00000000

' Set TMR0 to interrupt every 16.384 milliseconds
   OPTION_REG = %10000101        ' Set TMR0 configuration
   INTCON = %10100000           ' Enable TMR0 interrupts
   On Interrupt Goto tickint