PDA

View Full Version : ECIO with a PIC18F2525



Szczepaniec
- 17th April 2012, 22:28
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.

mackrackit
- 17th April 2012, 23:01
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

Szczepaniec
- 18th April 2012, 02:48
It worked. Thank you very much.

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

mackrackit
- 18th April 2012, 03:51
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.

Szczepaniec
- 19th April 2012, 18:19
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?

Darrel Taylor
- 19th April 2012, 19:52
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.