A customer wants us to build a box (basically a cinder block bristling with connectors) that includes a CAN bus for control. We'd include ethernet too, for more general use.
Can someone recommend a good chip or chip set to do slow CAN? A good eval kit or equivalent? A good way to make a PC talk CAN?
We'd have an internal uP, one of the ST Arm things.
fredag den 13. august 2021 kl. 18.08.40 UTC+2 skrev snipped-for-privacy@highlandsniptechnology.com:
yes you just need a transciever (and possibly a termination resistor) something like a MCP2551 or one of the numerous similar all in SO8 They need 5V, you can get 3.3V transceivers but I seem to remember some claiming they are not fully compliant with the all of the CAN spec. (though not in a way that I've seen matter)
There are several possible CAN pitfalls, mainly to do with physical interfaces and protocols. There is low speed fault tolerant CAN and the more common high speed not fault tolerant CAN. There are ISO specs. Then there are protocols, like CANOpen - but there are zillions of them.
The CAN peripheral on the ST chip will probably be OK for anything hardware except CAN FD. I've known people get fussy about clock speeds and want "exactly" the odd speed they are using which may not fit well with the processor clock.
If you need to write code to support some of the complex protocols it's a lot of work.
On the other hand if your customer has a sensible and documented home brew protocol it can be quite simple and problem free.
We prefer isolated CAN -- one less ground loop to debug. We've used the ISO1050 for years, but it's not FD-compliant and doesn't regulate the voltage on the isolated side. Also, the ISO1050 is out of stock everywhere, natch. But isolating your CAN bus is something to consider.
We are doing CANBUS on our newer stuff. Using STM32s, NXP and TI processors. We have a couple guys working on most of the CAN software.
Expect it to take a while to get it right. A single processor is probably a bit easier though than multiples as long as your requirements aren't too high.
At least the address filtering and such is done in hardware
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.