CAN BUS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CAN BUS

3,504 次查看
carrielbr
Contributor II

Someone has an example of how to use the CAN BUS in mk20dx256vll10?

Thank you

标记 (4)
0 项奖励
回复
1 回复

1,543 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Caio Carriel:

I would recommend you to download the KSDK platform: Software Development Kit for Kinetis MCUs|Freescale

Once installed you will find CAN examples. The examples are for the TWR-K60D100M, but you can create a new K20 project as indicated in the next document. Just select the K20 device in the New Project Wizard:

Writing my first KSDK1.2 Application in KDS3.0 - Hello World and Toggle LED with GPIO Interrupt

Then copy the source files and code from the CAN example.

Besides of KSDK, then depending on your software platform (CodeWarrior, KDS, IAR, with/without Processor Expert) there are some other examples available:

- In our webpage: K20_100 |Kinetis 20 100 MHz MCUs|Freescale  (Kinetis 100 MHz Rev 2 Example projects)

- Other posts by searching in this community:

CAN driver code example for Kinetis K60

CAN interface of K60/K40 controller using Processor Expert

CAN example coding for kinetis

CAN_LDD usage

Kinetis K60 CAN Configuration

Most examples are for K60_100 MHz, but the module is the same in your K20_100 MHz device, so you can copy the code in a new project, or for the Processor Expert projects you can copy the components to a new K20 project and replicate the source files, like next tutorials by colleague Erich Styger:

Copy of Processor Expert Components | MCU on Eclipse

Export and Import Processor Expert Component Settings | MCU on Eclipse

Regards!

Jorge Gonzalez

0 项奖励
回复