Quote Originally Posted by mister_e View Post
couple of mistakes in there... no problem it's your first I guess

You haven't cleared the TRISC register
no real need for multiple ORG and GOTO at the begining
If you want to use GOTOs, you want to use/define some label and jump to them.
It's really more readable to use register name instead of their addresses.
Make suire you're always in the good BANK when writing/writing to a registers. Datasheet show everything 'bout that
Maybe not a bad idea to retrieve the oscillator calibration at the begining.

Like Bruce said, check out your MPASM\Template\CODE folder.
Thanks. I was under the impression that the below statements clear the TRISC register.

Code:
	CLRF	H'07' ; clear portC
	BSF	H'03',5  ; Jump to bank 1
	CLRF	H'07'  ; Clear Trisc
	CLRF	H'91' ; Clear ANSEL register
	BCF	H'03',5  ; Jump to Bank 0