5 Replies Latest reply on May 20, 2020 12:50 AM by ShipingW_81

    S6E2GM8H0A CAN bit1 error

    FeNi_4676936

      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.