công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UM0459 bảng dữ liệu(PDF) 14 Page - STMicroelectronics

tên linh kiện UM0459
Giải thích chi tiết về linh kiện  ST10F27xZx CAN library
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0459 bảng dữ liệu(HTML) 14 Page - STMicroelectronics

Back Button UM0459 Datasheet HTML 10Page - STMicroelectronics UM0459 Datasheet HTML 11Page - STMicroelectronics UM0459 Datasheet HTML 12Page - STMicroelectronics UM0459 Datasheet HTML 13Page - STMicroelectronics UM0459 Datasheet HTML 14Page - STMicroelectronics UM0459 Datasheet HTML 15Page - STMicroelectronics UM0459 Datasheet HTML 16Page - STMicroelectronics UM0459 Datasheet HTML 17Page - STMicroelectronics UM0459 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 29 page
background image
Controller area network (CAN) routines
UM0459
14/29
2.2.7
CAN_SetTiming function
Example:
This example illustrates how to enable the configuration change bit, to be able to set the
specific timing parameters: TSEG1=11, TSEG2=4, SJW=4, BRP=5
{
CAN_EnterInitMode(CAN1, CAN_CR_CCE);
CAN_SetTiming(CAN1, 11, 4, 4, 5);
CAN_LeaveInitMode( CAN1 );
}
Table 11.
CAN_SetTiming function description
Function name
CAN_SetTiming
Prototype
void CAN_SetTiming(CAN_TypeDef* CAN, u16 tseg1, u16 tseg2,
u16 sjw, u16 brp);
Behavior description
Sets up the CAN timing with specific parameters. It writes the timing
value in the Bit Timing Register, from tseg1, tsg2, sjw and bits 5..0 of
brp parameter and writes the BRPR register with bits 9..0 of brp
parameter. All written values are the real values decremented by one
unit.
Input parameter 1
CAN: pointer to the CAN1 or CAN2 CAN structure.
Input parameter 2
tseg1: Time segment before the sample point position.
It can take values from 1 to 16.
Input parameter 3
tseg2: Time segment after the sample point position.
It can take values from 1 to 8.
Input parameter 4
sjw: Synchronization jump width.
It can take values from 1 to 4.
Input parameter 5
brp: Baud rate prescaler.
It can take values from 1 to 1024.
Output parameter
None
Return value
None
Required preconditions
CAN_EnterInitMode() must have been called before.
Called functions
None



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com