3 Replies Latest reply on Jul 19, 2018 9:52 PM by ShanmathiN_06

    LIN Bus Master Implementation

    info_1957421

      Hello,

       

      I use a CY84247AZI-M485 for a LIN-Master application.

       

      So I have some questions:

       

      How can I set the LIN-Break Signal Lenght to 13 Bits?

      How can I send a  Break Signal?

      How can I evaluate the Break Signal? if (LIN_INTR_RX_BREAK_DETECT) ... ?

       

       

      // UART Name = LIN
      
      CY_ISR(LINRxIsr)
      {
          uint8 rxStatus,errorStatus;         
          uint8 rxData;       
          
          if (LIN_GetInterruptCause()==LIN_INTR_CAUSE_RX) {
                if (LIN_INTR_RX_BREAK_DETECT) {
                
                }
           }
      
      int main(void)
      {
           LIN_SetCustomInterruptHandler(LINRxIsr);
      
           CyGlobalIntEnable; // Enable global interrupts.
      }
      

       

      Regards,

      Michael