16F819 PortA as Outputs


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2010
    Posts
    5

    Default 16F819 PortA as Outputs

    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

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    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

  3. #3
    Join Date
    May 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    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

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    You beat me to it mackrackit. My response was going to be identical
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  6. #6
    Join Date
    May 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    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

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Try
    _INTRC_IO
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts