I am a beginner at this, so bare with me please.

I am trying to write code that when I receive an input of roughly around 5 volts into porta.0 in a PIC16F684 that it will blink an LED.

this is what I got:

define osc 4

trisa = %11111111
trisc = %00000000

portc = %00000000

left var byte
left = 0

loop:
left = porta.0
if left = 1 then
portc.0 = 1
pause 2500
portc.0 = 0
endif
goto loop

end

Please help me correct the problem.