View previous topic :: View next topic |
Author |
Message |
rfreddy
Joined: 03 Jun 2007 Posts: 7
|
Modbus example in 18F452 |
Posted: Sun Mar 16, 2008 6:40 pm |
|
|
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
|
Modbus problem |
Posted: Sat Jan 03, 2009 9:01 pm |
|
|
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: 1934 Location: Norman, OK
|
|
Posted: Sat Jan 03, 2009 9:48 pm |
|
|
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
|
No modbus code |
Posted: Mon Jan 05, 2009 1:46 am |
|
|
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 |
|
|
|