Please Somebody help me!
I need to know:
How to set PORTA.6 and PORTA.7 as outputs in PIC 16F819?
Thanks in advance
Oswaldus
Please Somebody help me!
I need to know:
How to set PORTA.6 and PORTA.7 as outputs in PIC 16F819?
Thanks in advance
Oswaldus
PORTA.6 and PORTA.7 on the 16F819 are the oscillator pins. I assume therefore that you are using the internal oscillator. If so, you need to make sure the config bits for the oscillator are set to _INTRC_IO (assuming you are using PMASM as your assembler).
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Greetings Kamikaze47,
Thanks for your reply
Yes I am using internal oscillator.
I don't know How set config bits in _INTRC_IO, Can you let me know, How I make this from PicBasic Pro?
Thanks in advance
Oswaldus
Dave
Always wear safety glasses while programming.
OK,
I aded @ __config _INTRC_OSC_NOCLKOUT to set the PIC for Internal Oscillator allowing
use of the OSC pins as I/O, but when I compile, the error 44 : symbol not previously defined
appear.
Any suggestion?
thanks,
Oswaldus
mackrackit,
I Try _INTRC_IO, but I have now: Error 118 Overwriting previous address contents (2007)
thanks,
oswaldus
That sounds like you did not comment out the config lines in the chips inc file as described in the link.
Or you could just modify the inc file and not set the config in code space.
Dave
Always wear safety glasses while programming.
I comment out the config lines in the chips inc file as described in the link, and Port A works fine.
Thanks for your help, Kamikaze47 and mackrackit
Best regards,
oswaldus
Bookmarks