Turn ON RA4 Permanently

Status
Not open for further replies.

Suraj143

Active Member
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
 
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...
 
Hi,
Code:
andlw  b'000[COLOR=Red][B]0[/B][/COLOR]1111'
movwf PORTA
Anything ANDed with 0 is 0.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…