Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top