Hello,
I've got a few questions if anyone could toss out some ideas or answers.
I am still in the process of building a modbus rtu slave controller and a I can foresee a problem. I have the software for communicating on the modbus 485 network working but only with a master and one slave. I am getting no bus collisions and all is fine. However I can see in the future that when I get multiple devices on the network my pic is going to be pretty busy dealing with network (bus) traffic and not have a lot of time for anything else.
So my thought was that I was going to have 2 pics on my control board, one for communication duties and one for running the control board (inputs, outputs, math, and so on). My thought was to have the pic for the communications receive bus traffic on 1 usart and transfer important data to the controller pic with the 2 usart. Problem is, that most pics don't have 2 usart and I did not realize this until after my idea.
I am going to use a 18F8722 for my controller pic and I have not decided what pic to use for my communication Pic. The reason why I want to use usart is because I understand pretty well how to use the on board hardware and interrupts for them. I realize that the 18F8722 does have 2 Usarts but the 18F8722 is a little bit over kill for just handling communications on the 485 network, and it is a bit expensive.
I searched awhile and saw an interesting thread on using entire ports to transfer data but could not rap my head around how to do this.
All I want to transfer between pics is first, an address of 1 word size and then a value(variable) of 1 word size. I don't need long strings of characters or anything like that just heres an address and heres the value. Or heres the address whats the value.
However I get this accomplished I would like to do it with on interrupts and hardware on the pic instead of commands like serout or serin. Stuff like that kind of leaves the pics hanging.
Any suggestions or Help would be appreciated. Links
Thanks
Shawn
Bookmarks