6 Replies Latest reply on Jun 27, 2013 4:27 AM by resh

    PSOC4 + LIN

    user_10354431

      Hi everybody,

         

      Another difficult question...

         

      Does the PSOC4 support LIN bus? PSOC Creator does not have the LIN component for the PSOC4 device, but the datasheet states:

         

       

         

      When you add a UART object then you can select between IrDA and Smartcard, but there is no LIN either.

         

      PSOC5/PSOC5LP has a very nice LIN component with a packet builder. Will this be implemented for the PSOC4?

         

      Thank you,
      Errol.

         

       

         

       

         

       

         

       

         

      This is a full-feature UART operating at up to 1 Mbps. It supports automotive single-wire interface (LIN), infrared interface (IrDA), and SmartCard (ISO7816) protocols, all of which are minor variants of the basic UART protocol.

        • 1. Re: PSOC4 + LIN
          user_10354431

          The post editor totally mangled my previous post. The last line is the quote from the datasheet...

          • 2. Re: PSOC4 + LIN
            user_78878863

            I'm looking at the PSoC4 4200 data sheet (http://www.cypress.com/?docID=43142 ), and it says the serial block supports

               
                  
            • UART
            •     
            • I2C
            •     
            • SPI
            •    
               

            but no LIN. Where did you get this statement from?

            • 3. Re: PSOC4 + LIN
              user_10354431

              Hi hli,

                 

              It is in the same document you have. LIN is a sub protocol of UART. On page 7, top right, there is a section about UART Mode. That is where I copied from.

                 

              UART Mode: This is a full-feature UART operating at up to 1 Mbps. It supports automotive single-wire interface (LIN), infrared interface (IrDA), and SmartCard (ISO7816) protocols, all of which are minor variants of the basic UART protocol. In addition, it supports the 9-bit multiprocessor mode that allows addressing of peripherals connected over common RX and TX lines. Common UART functions such as parity error, break detect, and frame error are supported. An 8-deep FIFO allows much greater CPU service latencies to be tolerated. Note that hardware handshaking is not supported. This is not commonly used and can be implemented with a UDB-based UART in the system, if required.

              • 4. Re: PSOC4 + LIN
                user_1377889
                        Errol, I'm afraid you'll have to write your owm protocol for LIN which is not too difficult (peep into the PSoC5 sources) Bob (Again a "small window")   
                • 5. Re: PSOC4 + LIN
                  user_10354431

                  That sort of defeats the purpose.

                     

                  I wanted to move my employer's designs from PIC18 to PSOC4 as there is a better price match, and I wanted to use the nice LIN Drag & Drop features as a selling point.

                     

                  If I have to write the LIN drivers myself, just like for the PIC18, then my boss will not budge.

                  • 6. Re: PSOC4 + LIN
                    resh

                     LIN is supported by the PSoC4 device. But, the feature is not available in Creatore now. Hope the UART-LIN component will be available in the next revision of Creator.