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

Modbus example in 18F452

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



Joined: 03 Jun 2007
Posts: 7

View user's profile Send private message

Modbus example in 18F452
PostPosted: Sun Mar 16, 2008 6:40 pm     Reply with quote

Hi,

I have Modbus example running correctly for 2 16f877 as master and slave.

Now I tried to port slave's code to a 18f452 and my master now gets only exceptions, it seems to be that there is no data sent or received from the slave.

Does anybody have a running slave for this kind of pic or anybody could point me if I'm doing something wrong?

I think I'im having trouble with 452's interrupts handling because the slave doesn't process any request using INT_EXT or INT_RDA options. I have browsed for any idea and people who had problems with serial interruptions always had their rcv/xmit ports misconfigured, that is not my case. :(

Any help will be appreciated.

Thanks in advance,

Freddy
Olivera



Joined: 09 Oct 2008
Posts: 2

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

Modbus problem
PostPosted: Sat Jan 03, 2009 9:01 pm     Reply with quote

Hi Freddy.

I have been trying for a long time to implement the modbus on 2 pics but I have failed. May you do me the great favor to share you master and slave code? I would be geat to me...Thaks in advance. my email is:
marcos.olivera@gmail.com
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Jan 03, 2009 9:48 pm     Reply with quote

Olivera,
If you are a CCS user both the MODBUS master and slave code can be found in the CCS Examples directory
Olivera



Joined: 09 Oct 2008
Posts: 2

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

No modbus code
PostPosted: Mon Jan 05, 2009 1:46 am     Reply with quote

I lost the examples code. if you can help me with the modbus code and it`s working would be great. Thanks in advance anyway...
xxxx@gmail.com

Ref. CCS Forum Rules:
10. Don't post the CCS example code or drivers, or ask for such code and drivers.
-- Forum Moderator
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