Hi,
I'm currently on a project, where we need either a can or a profibus connection to an embedded system (atmega 128 avr-device).
Well I started to and found that for can-bus there are some can-buscontollers e.g. MCP2510 available, that (as I understand), are doing the whole comunication stuff.
My first question might sound trivially to you: Is it so, that I have to connect all devices on the can bus to the same physical wires (canSend and canRecieve)? Or do I need another phy-driver (e.g PCA82C250)? Is there a well defined protokoll also necessary or is that done by the controller: My idea is something like: The atmega tells the canbus controller: Send to device 2 the start-command...Is there a difference in implementing an master or slave device?
On the other hand, the profibus can be hardware based on the rs485. So an simple I/O driver (e.g. maxim) should work. But as I understand, I'd have to implement the profibus protokoll (I need the dp Variant) in the avr, right? I didn't find a controller, but at profichip.com an asic probably doing some protokollstuff is selled? Any experience with this? Is there a difference in implementing an master or slave device?
Ok a lot of newbie question. Perhaps you have some answers. Thanks in advance.
Michael