在线时间0 小时
UID272285
ST金币0
蝴蝶豆0
注册时间2011-3-24
新手上路
- 最后登录
- 1970-1-1
|
a0a.1 0b0c
自发自收,设置发送速率为36M/((1+3+4)*1)=36/8,那接收速率是多少?如果把发送速率降低,接收到数据时,发送数据没有发送完,
CAN_InitStructure.CAN_TTCM = DISABLE;
CAN_InitStructure.CAN_ABOM = DISABLE;
CAN_InitStructure.CAN_AWUM = DISABLE;
CAN_InitStructure.CAN_NART = DISABLE;
CAN_InitStructure.CAN_RFLM = DISABLE;
CAN_InitStructure.CAN_TXFP = DISABLE;
CAN_InitStructure.CAN_Mode = CAN_Mode_LoopBack;
CAN_InitStructure.CAN_SJW = CAN_SJW_1tq;
CAN_InitStructure.CAN_BS1 = CAN_BS1_3tq;
CAN_InitStructure.CAN_BS2 = CAN_BS2_4tq;
CAN_InitStructure.CAN_Prescaler =1; //不能为零
CAN_Init(CAN1,&CAN_InitStructure); |
|