How to interface to the CAN bus on the TWR-K22F120M Tower Board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to interface to the CAN bus on the TWR-K22F120M Tower Board

ソリューションへジャンプ
1,146件の閲覧回数
marks
Contributor IV

Hello, Looking to develop a new product based on an existing MCF5213 Coldfire design. The MCF5213 would be perfect except it is in Not Recommended for New Design status (NRND). Almost any Kinetis MCU with CAN would work but we would like to pick a main stream part with lots of the usual features so the MCU could be used in other product in the future. I though the K22 with CAN would be good but I can not figure out how to connect to the CAN bus on the Tower Board. I know there is a TWR-SER (Serial Module) with CAN but I dont see how the TWR-K22F120M  connects. Looks like the connections to the elevator cards are not there.

To make a long story short. I'm looking for a main stream general purpose Kinetis MCU with CAN that has the CAN bus accessible on a Freedom or Tower board. Any suggestions?

Thanks!

Mark

0 件の賞賛
1 解決策
880件の閲覧回数
mjbcswitzerland
Specialist V

Mark

The K22 on the TWR-K22F120M doesn't have a CAN controller in it and that is why there is no connection. There are quite a number of Kinetis parts that do though and can be used in the tower kit.
eg. https://www.youtube.com/watch?v=Ha8cv_XEvco

The Kinetis CAN controller is virtually identical to the one in the MCF5213 but the Kinetis parts are simply massively better than the old Coldfire V2s (in almost every aspect) so certainly go for a Kinetis.

I developed the uTasker CAN driver for the 5213 back in 2006: http://www.utasker.com/kirin3.html
and, as mentioned, it runs virtually unchanged on the Kinetis parts: http://www.utasker.com/kinetis.html
just everything else if better, faster, lower power, much feature-rich, cheaper.... etc. Various Kinetis parts also have two of them.

Regards

Mark

P.S. Be very careful with the K22 parts - there are various types, but with many surprises since their feature sets and capabilities can vary dramatically. They look to be compatible but if you step up or down in Flash size you may find that bits are then missing, speeds can't be obtained, and other potential pitfalls. Probably they should have given the chips different names but they didn't so one needs to tread carefully and compare the user manuals attentively.


Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
880件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Mark Sample,

   Mark Butcher's reply is correct, the chip on TWR-K22F120M don't have the FlexCAN mode, that's why you can't find the according connection.

   I suggest you to use the TWR-K21F120M board, this board have the flexcan module and the according connection:

pastedImage_1.png

pastedImage_2.png

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
880件の閲覧回数
marks
Contributor IV

Hello Mark and Kerry, Thank you so much for the quick and useful replies! Very helpful!

Best regards,

Mark

0 件の賞賛
881件の閲覧回数
mjbcswitzerland
Specialist V

Mark

The K22 on the TWR-K22F120M doesn't have a CAN controller in it and that is why there is no connection. There are quite a number of Kinetis parts that do though and can be used in the tower kit.
eg. https://www.youtube.com/watch?v=Ha8cv_XEvco

The Kinetis CAN controller is virtually identical to the one in the MCF5213 but the Kinetis parts are simply massively better than the old Coldfire V2s (in almost every aspect) so certainly go for a Kinetis.

I developed the uTasker CAN driver for the 5213 back in 2006: http://www.utasker.com/kirin3.html
and, as mentioned, it runs virtually unchanged on the Kinetis parts: http://www.utasker.com/kinetis.html
just everything else if better, faster, lower power, much feature-rich, cheaper.... etc. Various Kinetis parts also have two of them.

Regards

Mark

P.S. Be very careful with the K22 parts - there are various types, but with many surprises since their feature sets and capabilities can vary dramatically. They look to be compatible but if you step up or down in Flash size you may find that bits are then missing, speeds can't be obtained, and other potential pitfalls. Probably they should have given the chips different names but they didn't so one needs to tread carefully and compare the user manuals attentively.


Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts

0 件の賞賛