paulyt5966
New Member
hi all,im a total beginner to pic programing and im doing one of the tutorials based on the 12c508a and 16f84a the first project is to make a led turn on.
SetUp MOVLW 3E ;Make GP0 output
TRIS 06 ;Load TRISB file
Out0 MOVLW 01 ;Load W with 1
MOVWF 06 ;Make GP0 HIGH
GOTO Out0
END
i have simulated the above and it works so i changed 3E to 39h which i assume would make gp1 and gp2 high but when i run a simulation gp1 and gp2 doesnt seem to go high what have i missed?
i know this is probably such a simple thing for you all but we all had to start from scratch.
SetUp MOVLW 3E ;Make GP0 output
TRIS 06 ;Load TRISB file
Out0 MOVLW 01 ;Load W with 1
MOVWF 06 ;Make GP0 HIGH
GOTO Out0
END
i have simulated the above and it works so i changed 3E to 39h which i assume would make gp1 and gp2 high but when i run a simulation gp1 and gp2 doesnt seem to go high what have i missed?
i know this is probably such a simple thing for you all but we all had to start from scratch.