Page 1 of 1

16f877a program to 18f4525

Posted: Wed Jul 29, 2009 7:16 am
by Nacho
Hi!
I need some help with a 18f4525-I/P micro.
I programed a 16f877a with flowcode v3 and PPP v3, and I used
one LCD e-block on port B, one power board e-block on port D, using D0 to D3 outputs, one relay board
e-block on port E, using E0 output, some leds on port A,using A0,A1,A2,A3,A5, and switches on port C
using all eight inputs, also, I configured the pic on XTAL, and everything works fine!

But i have tried to compile the same program to an 18f4525-I/P micro, because I want to make a bigger
program, and the result I get is that the LCD donΒ΄t work, and the delays seems to be 100 times greater.
IΒ΄m new on that micro pic things, so, can you tell me how to configure this 18f4525-I/P to work in the
same way as the 16f877a?
I tried some expert configurations,on ppp and flowcode, but I get really, really lost.
Thank you!

Re: 16f877a program to 18f4525

Posted: Wed Jul 29, 2009 8:08 am
by Benj
Hello

It sounds like a configuration setting problem eg no LCD and longer then expected delays. If you are using the crystal oscillator then check that the clock speed setting in Flowcode matches the crystal speed.

For normal operation you want to choose the HS oscillator and not the HS-PLL setting. Also make sure the watchdog, extended cpu and LVP settings are disabled.

Re: 16f877a program to 18f4525

Posted: Thu Jul 30, 2009 7:44 am
by Nacho
Thank you so much!!
I tried that config settings and it runs perfectly!
Have a nice day!
Nacho F.