So, looking at your code....effectively it boils down to
Code:
TRISA = %00000000	    ' This enables 23 of 24 output drivers, pins goes to whatever state PORT/LAT says			
TRISB = %00100000
TRISC = %00000000

clear

pause 100                 ' Twiddle thumbs for 100ms

PORTA=%00000000     ' And THEN the pins are set to 0
PORTB=%00000000
PORTC=%00000000
[/code]

You need to do it the other way around.