TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136652 times)
  2. FAT32 Library (69875 times)
  3. Network Ethernet Library (55904 times)
  4. USB Device Library (46245 times)
  5. Network WiFi Library (41880 times)
  6. FT800 Library (41115 times)
  7. GSM click (28968 times)
  8. PID Library (26404 times)
  9. mikroSDK (26333 times)
  10. microSD click (25345 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

LIN click

Rating:

5

Author: MIKROE

Last Updated: 2019-11-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: LIN

Downloaded: 2770 times

Not followed.

License: MIT license  

The LIN Click is a Click boardâ„¢ that features the TLE7259-3GE, a LIN transceiver from Infineon Technologies, with integrated wake-up and protection features.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "LIN click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "LIN click" changes.

Do you want to report abuse regarding "LIN click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

LIN click

LIN click

Native view of the LIN click board.

View full image
LIN click

LIN click

Front and back view of the LIN click board.

View full image

Library Description

The library includes functions to write or read data from UART. You can set state of pins(PWM - WK, INT - INH, EN - CS) you want to change it.

Key functions:

  • void lin_writeByte(uint8_t writeData) - Writes one byte via UART
  • uint8_t lin_readByte() - Reads one byte via UART
  • uint8_t lin_dataReady() - Checks if data is ready to be read via UART

Examples description

The application is composed of three sections :

  • System Initialization - Intializes UART module
  • Application Initialization - Driver intialization
  • Application Task - Choose one mode (read or write) of task. If you reading it checks if data is ready to be read and then reads one byte and if you are wiriting send data via UART.
void applicationTask()
{
    uint8_t tmp;
	char rec;
    uint8_t rdyFlag;
    uint8_t mode = _LIN_READ_MODE;

    if( mode == _LIN_READ_MODE )
    {
        // RECEIVER - UART polling
        rdyFlag = lin_dataReady();

        if (_LIN_DATA_READY == rdyFlag)
        {
            rec = lin_readByte();
            mikrobus_logWrite( &rec, _LOG_BYTE );
        }
    }
    else if( mode == _LIN_WRITE_MODE )
    {
        // TRANSMITER - TX each 2 sec
        for (tmp = 0; tmp < 11; tmp++)
        {
            lin_writeByte( MESSAGE_DATA[tmp] );
            if(tmp < 6)
            {
                Delay_ms(100);
            }
        }
        Delay_ms(2000);
    }
    

}

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

MAGNETO 4 click

0

Magneto 4 click is a high-resolution magnetic encoder Click board™ which allows contactless motion sensing down to 0.5µm.

[Learn More]

IR Sense 3 click

0

IR Sense 3 Click is the infrared sensor Click board, designed to be used for the short range IR sensing applications.

[Learn More]

ECG GSR Click

0

ECG GSR click is a complete solution for PPG, ECG and GSR application development, utilizing a specialized IC with a clinical-grade analog front-end (AFE) and electrical front-end. ECG GSR click uses the AS7030B IC, an ultra-low power, multi-channel bio-sensor, which features a wide range of different options, making it an ideal solution for development of blood oxygen level, heart rate and galvanic skin response monitoring applications, fitness applications, for the ECG bio-authentication, and similar applications related to heart monitoring. ECG GSR click is also equipped with the 3.5mm electrodes connectors, making it ready to be used out of the box.

[Learn More]