- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use a TJA1051 to CAN Connection,the S6E2G's VCC is 5V and the PPL frequency is 160M HZ.
It can transmit successful in 100k bit/s.Code as follows
stcCanConfig.bTouchPrescaler = TRUE;
stcCanConfig.stcBitrate.u8TimeSegment1 = 13;
stcCanConfig.stcBitrate.u8TimeSegment2 = 6;
stcCanConfig.stcBitrate.u8SyncJumpWidth = 1;
stcCanConfig.stcBitrate.u16Prescaler = 8;
stcCanConfig.stcBitrate.enCanPrescaler = CanPreDiv110; // 160 MHz / 10 = 16 MHz
but it's failed in 200k bit/s.Code as follows,I changed stcCanConfig.stcBitrate.u16Prescaler.
stcCanConfig.bTouchPrescaler = TRUE;
stcCanConfig.stcBitrate.u8TimeSegment1 = 13;
stcCanConfig.stcBitrate.u8TimeSegment2 = 6;
stcCanConfig.stcBitrate.u8SyncJumpWidth = 1;
stcCanConfig.stcBitrate.u16Prescaler = 4;
stcCanConfig.stcBitrate.enCanPrescaler = CanPreDiv110; // 160 MHz / 10 = 16 MHz
The STATR Register' LEC = 4 .It means BIT 1 error.
When the error occurs the voltage of tx pin of TJA1051 is about 2.7V. It is stange ,because in the DATASHEET ,the H level outputvoltage is VCC-0.5~VCC ,the L level outputvoltage is VSS ~ 0.4V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the voltage on the tx pin of TJA1051 when the transmssion speed is 100k bit/s? Is it normal?
Is the test board DVK board or your custom board?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
its custom board.the voltage is normal ,about 5v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you ever tried with DVK board? If yes, what's the test result?
If possible, could you upload your application schematic?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the function en_result_t Can_SetTransmitMsgBuffer and en_result_t Can_UpdateAndTransmitMsgBuffer in can.c download in the official website
Can you tell me some possible reasons could cause bit error when speed up ,please.
THANK U very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We may need your shcematic or whole project for further debugging. Can you provide? If you tried DVK board, what's the test result for speed up?