日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

can通道采样频率_CAN采样点设置为多少合适?设置不对会咋样?

發布時間:2024/7/23 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 can通道采样频率_CAN采样点设置为多少合适?设置不对会咋样? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

網上有人說道:

(1)一般配置在75-80%的位置

(2)選擇采樣點位置在85%左右為佳

(3)

75%???? when 波特率 > 800K

80%???? when 波特率 > 500K

87.5%?? when 波特率 <= 500K

===========================================

那么到底是多少呢?

本博主在ISO11898-1沒有找到確切的值。但是cia官網找到了(http://www.can-cia.org/index.php?id=systemdesign-can-physicallayer&L=1&amp%3BL=3):

The CAN bit comprises – depending on the configured “atomic” time unit called time quantum (tq) – multiple of these time quanta. The time quanta length derives from the bit-rate prescaler and the used oscillator frequency.

The CAN bit is logically divided into four segments. The synchronization segment has always a length of 1 tq. The following propagation segment and phase-segment 1 are not distinguishable for the user. It is configured as one value. The forth part is the phase-segment 2. Between the two phase-segments, the sample-point is located. If the bit-timing settings move the sample-point to the end of the bit, the propagation segment is enlarged, so that you can realize longer networks. If the sample-point is configured in the other direction, the re-synchronization capability is increased.

The sample point should be the same in all connected CAN nodes. However, in practice it is sufficient if the sample points don't vary too much. The automotive industry has specified some recommendations for the bit timing settings in the SAE J2284 series. For CANopen networks, the recommendations given in CiA 301 should be used. The sample points should be at 87,5 percent of the bit time. For most of the specified bit-rates a range of 85 percent to 90 percent is allowed. Of course, the larger the tolerance range, the shorter the maximum possible length of the network。

==================

本博主由于工作的關系,得以接觸到各種廠商的can設備,測試都是在80%以上,如81.25之類的。另外,老外的can分析儀都是80%以上。

看了上面的英文就弄懂了采樣點的作用了。是關于重同步的。如果can采樣點選取合適,can總線就能容納更多的can節點。因此極其重要。

至于我的STM32設置成多少,明天再議,肯定是80%-87.5之間了。

75%

when

波特率

>?800K

80%

when

波特率

>?500K

87.5%

when

波特率

<=?500K

75%

when

波特率

>?800K

80%

when

波特率

>?500K

87.5%

when

波特率

<=?500K

總結

以上是生活随笔為你收集整理的can通道采样频率_CAN采样点设置为多少合适?设置不对会咋样?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。