Can't properly configure RA3,Ra4 as digital out (PIC16F876A)
Hi!
Please help me to configure RA3 and RA4 as digital out (PIC16F876A). On Proteus simulator all are working fine but not in real world.
I know that RA$ is Digital I/O – Open-drain when configured as output.
I have used:
TRISA = %00000001
ADCON1 = %10001110
cmcon = %00000111
Thank you very much.
PIC16F876A Datasheet
Re: Can't properly configure RA3,Ra4 as digital out (PIC16F876A)
can't see anything wrong with your settings ,its only porta4 that's open drain but I assume is just a typo
have you tried adcon1=6 just to try a minimal setting ?
maybe if you post your code something will stand out
Re: Can't properly configure RA3,Ra4 as digital out (PIC16F876A)
Thank you for your answer, richard.
I know that RA4 is Digital I/O – Open-drain when configured as output.
I will try adcon1=6
Re: Can't properly configure RA3,Ra4 as digital out (PIC16F876A)
Quote:
Originally Posted by
richard
can't see anything wrong with your settings ,its only porta4 that's open drain but I assume is just a typo
have you tried adcon1=6 just to try a minimal setting ?
maybe if you post your code something will stand out
He He $, that's a Capital 4 . . . do that myself every now and again . .
Try setting ADCON0 to zero, at least bit zero.
Re: Can't properly configure RA3,Ra4 as digital out (PIC16F876A)
AllDigital will tell you exactly what you need.
http://www.picbasic.co.uk/forum/showthread.php?t=18529
Robert