
> As mentioned before you should put resistor between the output and LED. I'll try without _XT too, as soon as I buy the resistors. I'll buy a bunch of resistors xD someone have any explanation for all that resistors ? I don't understand why they are necessary õ.o If things remain wrong, I'll try that.Īgain with resistors x_x 1K resistor to MCLR, ok, I'll try that too. I thought that maybe I was supose to put RA6 and RA7 as inputs ou CLKIn as input and CLKOut as output, but I'm not sure. The resistor again :S I'll buy it today, it may be that, then. You could disconnect the crystal and try _INTRC_OSC_NOCLKOUT instead of _XT in the config. I'm not sure if RA6 and 7 have to be set as inputs for the external crystal to work.Ī 1K resistor is recommended between MCLR and VDD but I'm not sure if it will make any difference. > I can't see anything too obvious apart from the missing LED resistor.

I don't understand why I have to put a resistor there, but ok, I'll buy one today and test it. Well, he still reads and writes, that's a clue that he's still working ? That's true ? how the resistor in a out pin of the microcontroller would screw the microcontroller itself ? > Man, if you don't put a resistor to limit the current to led, maybe you screw the led an pic, too. Goto OndelayLoop (768+3) * 256 = 197376 instructions / 1M instructions per second = 0.197 sec. Goto OndelayLoop The Inner loop takes 3 instructions per loop * 256 loopss = 768 instructionsĭecfsz Delay2,f The outer loop takes and additional 3 instructions per lap * 256 loops MOVWF TRISA Set RA as outputs TRISA always read as ∑ TRISA depend on oscillator modeīanksel PORTA back to Register See MPLAB help for banksel description MOVLW 0x10 Value used to initialize data direction


MOVWF CMCON enable pins for I/O functions Note using defualt setting for internal OSC=4MHzĭelay1 Define two file registers for theĬLRF PORTA Initialize PORTA by setting output data latches _config (_INTRC_OSC_NOCLKOUT & _MCLRE_OFF & _WDT_OFF & _PWRTE_OFF & _CP_OFF & _BOREN_OFF & _BODEN_OFF & _DATA_CP_OFF ) _INTRC_OSC_NOCLKOUT EQU H'3FFC' Backwards compatability to 16F62X _INTRC_OSC_CLKOUT EQU H'3FFD' Backwards compatability to 16F62X _ER_OSC_NOCLKOUT EQU H'3FFE' Backwards compatability to 16F62X _ER_OSC_CLKOUT EQU H'3FFF' Backwards compatability to 16F62X _BODEN_OFF EQU H'3FBF' Backwards compatability to 16F62X _BODEN_ON EQU H'3FFF' Backwards compatability to 16F62X
