CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problems with 18f4525

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

View user's profile Send private message Send e-mail MSN Messenger

Problems with 18f4525
PostPosted: Fri Jun 23, 2006 7:09 pm     Reply with quote

Hi people,

im having some weird problem with this pic.

its just stops working...
im using a LCD on PORTD which controls pins are connecteds on PORTE (RE0, RE1 and RE2)...

the project was working fine but suddenly stops working..
im tried everything.. i changed the crystal (20mhz), i changed capacitors. but LCD doesnt working anymore..

but when i use pic 16f877 the project starts working again..
i buy another 18f4525 and didnt work either..


i dont know why it just working on 16f877 now..

all peripheral on portd are disabled...


please.. heeeeeeeeeeeeeeelp.

regards.
_________________
Andre
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Fri Jun 23, 2006 7:24 pm     Reply with quote

i already now that is problem with my hardware and not with pic...
because i did half of circuit on protoboard and it works fine..

but.. the question is.. why works with 16f877 and doesnt work with 18f4525 ???
_________________
Andre
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jun 24, 2006 12:18 am     Reply with quote

The most likely reason for the LCD not working when moving from 16F
to 18F is the i/o Port addresses in the LCD driver. For example, in the
16F877, Port D has the address of 0x08, but in the 18F4525 it's 0xF83.
Also, the addresses for Port E are 0x09 and 0xF84, respectively.
CCS has taken care of this problem by using #ifdef statements in their
LCD.C driver to select the proper address for PCM or PCH. You didn't
say what LCD driver you are using. If you're not using the CCS
driver or if you are using an older driver, then this could be the problem.
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Sat Jun 24, 2006 7:43 am     Reply with quote

PCM,

i took care about this..

as i said..
i was working.. then.. it stops..

i found the problem.. maybe is my power suply (switched) but i have filters and regulators in my hardware.

but, why it still working with 16f877 and 18f4525 not ?
_________________
Andre
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group