View Full Version : Problem with porta.5 on pic 16f873A
santamaria
- 18th March 2008, 12:43
I try many changes but i can't give high on porta.5 pin.all other pins are working as digital but porta.5 don't work.what i miss here can anyone help me?
I am using pic pasic pro ver 2.47 and my code is the following:
"
define osc 20
ADCON1=7
CMCON=7
TRISA=0
PORTA=0
TRISB=0
PORTB=0
SSPCON=0
porta.0=1
porta.1=1
porta.2=1
porta.3=1
porta.4=1
porta.5=1
end
"
Archangel
- 18th March 2008, 16:12
Without looking at the data sheet, my first guess would be that it has an open collector output and needs a pullup resistor as the result . . .Gotta love those data sheets.
Edit: Nope portA.4 is open drain. A.5 appears to be a standard I/O, maybe your PIC is damaged, maybe your breadboard is bad. Check the pin with your voltmeter directly on the pin itself.<br> http://www.kirlian-photography.com/video/PIC16F87XA.pdf
Acetronics2
- 18th March 2008, 16:39
Hi,
Could it be a short circuit between PortA.5 and Vss ... the next pin ???
just an idea ... and a very good reason not to reach "1" state !!!
Alain
santamaria
- 18th March 2008, 18:22
You are correct.I find the problem.I was short circuit between porta.5 and gnd from breadboard .the good is that pin is steel working.thanks acetronics and joe.s for your help.
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.