General purpose I/O.
TMR1 clock input.
A crystal/resonator connection.
A clock input.
It's possible the chip could have been damaged?, but more likely you've got it set wrong somewhere - particularly check your config fuses, in case you've got it set wrong there.
Have you tried to read TRISIO.5 after you've assigned it 0 to make sure it is indeed 0?
Maybe also try to disable the comparators before you set TRISIO...
Code:
ANSEL = %00110001
ADCON0 = %10000001
T1CON.TMR1CS = 0
T1CON.TMR1ON = 0
CMCON.2 = 1 'This disables the comparator
CMCON.1 = 1
CMCON.0 = 1
'Inputs and Outputs
'------------------
TRISIO.0 = 0
TRISIO.1 = 0
TRISIO.2 = 0
TRISIO.3 = 1 'Not Connected
TRISIO.4 = 0 'LED Green Output
TRISIO.5 = 0 'LED Red Output
Symbol led_red = GPIO.5
Symbol led_green = GPIO.4
' No clue if I am using the right If syntax here, just guessing
If TRISIO.5 = 0
'turn led orange
High led_red
High led_green
End If
So if TRISIO.5 is 0, you should at least get a green LED, but if TRISIO.5 is wrong, the LED won't light.
I have just salvaged another 675 from an old project and I have my orange light 8)
Looks like for the first time ever it wasnt my fault (well, I broke the chip, but the problem in this case wasnt down to my dodgy software/hardware).
Looks like I might be turning a corner
Thanks for the help everyone, very informative as always.