Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the difference between mscan and flexcan?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about the difference between mscan and flexcan. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In the official account of embedded programmers, NXP's flexcan and some other protocols and developments based on flexcan have been introduced many times. Recently, another piece of NXP is used, using mscan. These two are very different at the bottom. All registers and configurations are different, but they all comply with CAN2.0A/B. We should pay attention when using them. The registers in flexcan are 32 bits, while mscan are 8 bits, and the two are different in structure and mechanism, there are two IP at chip level. Mscan is the mechanism commonly used on 8-bit computers of NXP before, but it is basically flexcan on kinetis32 bits.

In CAN, we must remember that the recessive representative is 1, and the dominant representative is 0. If you can't remember, you can remember that 0 is fat and not easy to hide, so it is dominant. 1 is thin, so easy to hide is recessive.

There is also the most important point, I think it is necessary to configure several parameters related to the Porter rate time, the calculation articles and practical articles that have been pushed, if you forget, you can read it over and over again, hoping to help you.

How to calculate the Baud rate of CAN Communication

The bit time requirements of the CAN standard must be followed when configuring bit rate related parameters.

Synchronization segment:

The synchronization segment of bit time is used to synchronize different nodes on the bus. There should be a jump edge in this paragraph.

Propagation segment:

The propagation segment is used to compensate for the physical delay within the network. It is twice the sum of the input comparator delay and the output driver delay on the bus.

Phase buffer segment 1, phase buffer segment 2 (PHASE SEG1, PHASE SEG2):

The phase buffer segment is used to compensate for the error in the edge stage. These two segments can be lengthened or shortened by resynchronization.

Sampling points:

The sampling point is a point in time to read the bus level and interpret your values. The sampling point is located after the phase buffer section 1 (PHASE_SEG1).

The propagation segment and the phase buffer are configured in the same place in mscan, and the two values are configured separately in flexcan. In flexcan

Mscan configuration

Thank you for reading! This is the end of the article on "what's the difference between mscan and flexcan". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report