ECIO with a PIC18F2525


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2011
    Posts
    42

    Default ECIO with a PIC18F2525

    I am having an issue with a project running an 18F2525. It is my understanding that when I choose ECIO for the OSC in the meProg configuration that the PIC should be taking the clock signal in on OSC1 and leaving porta.6 as an IO pin. When I choose ECIO the PIC doesn't run as if there was no clock at all. If I choose EC Clockout then it runs just fine however I need pin A.6 so that isn't a desirable option for me. Can anybody tell me where I am going wrong? I cannot see anything in the datasheet that tells me different. Thanks in advance.

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


    Did you find this post helpful? Yes | No

    Default Re: ECIO with a PIC18F2525

    Try
    _OSC_ECIO6_1H

    You can find all of the settings in the *.inc file in the directory.
    C:\Program Files (x86)\Microchip\MPASM Suite
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    May 2011
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: ECIO with a PIC18F2525

    It worked. Thank you very much.

    Why didn't it work when I selected that choice in the programmer menu?

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


    Did you find this post helpful? Yes | No

    Default Re: ECIO with a PIC18F2525

    I never trusted the programmer menu. The sure way is to set the configs in code space.
    If you use PBP3 the documentation is included with the program. If using PBP2.6 or lower then take a look at this http://www.picbasic.co.uk/forum/showthread.php?t=543

    The other nice about setting the configs in code space is the code is complete, you do not have to remember what the settings were as they are always there.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    May 2011
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: ECIO with a PIC18F2525

    Quote Originally Posted by mackrackit View Post
    I never trusted the programmer menu. The sure way is to set the configs in code space.
    If you use PBP3 the documentation is included with the program. If using PBP2.6 or lower then take a look at this http://www.picbasic.co.uk/forum/showthread.php?t=543

    The other nice about setting the configs in code space is the code is complete, you do not have to remember what the settings were as they are always there.

    I guess I will join the crowd that doesn't trust the programmer menu. I wonder how many other projects I have scrapped in frustration over the same or similar issue?

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: ECIO with a PIC18F2525

    Check the options menu in meProg.

    If you have "Reread File before Programming" and "Update Configuration from file" checked, any changes you make in the configuration dropdowns will not have an affect.
    It will only use the configurations contained in the .hex file.

    If you want to change them manually, uncheck one or both of those options.
    If you do a read from the chip, the configuration window will show you exactly which settings were programmed.

    There is no reason not to trust the dropdowns.
    DT

Members who have read this thread : 1

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