S Suraj143 Active Member Jul 15, 2008 #1 Hi i need to turn on RA4 permanently & use the first nibble of PORTA for other work.But RA4 never turns on, I used a pull up resistor also. Code: bsf PORTA,4 movf Data,W andlw b'00001111' movwf PORTA
Hi i need to turn on RA4 permanently & use the first nibble of PORTA for other work.But RA4 never turns on, I used a pull up resistor also. Code: bsf PORTA,4 movf Data,W andlw b'00001111' movwf PORTA
S Suraj143 Active Member Jul 15, 2008 #3 Mike said: Did you turn comparator off? Click to expand... Oh yes Code: movlw 0x07 movwf CMCON Last edited: Jul 15, 2008
Mike - K8LH Well-Known Member Jul 15, 2008 #4 Usual suspects are; (1) MCLR not pulled up to VCC... (2) Missing bypass capacitor on VDD and VSS pins... (3) LVP enabled and PGM pin floating... (4) Trying to use a crystal oscillator on a solderless breadboard...
Usual suspects are; (1) MCLR not pulled up to VCC... (2) Missing bypass capacitor on VDD and VSS pins... (3) LVP enabled and PGM pin floating... (4) Trying to use a crystal oscillator on a solderless breadboard...
bananasiong New Member Jul 15, 2008 #6 Hi, Code: andlw b'000[COLOR=Red][B]0[/B][/COLOR]1111' movwf PORTA Anything ANDed with 0 is 0. Last edited: Jul 15, 2008