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 (136659 times)
  2. FAT32 Library (69896 times)
  3. Network Ethernet Library (55915 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41124 times)
  7. GSM click (28970 times)
  8. PID Library (26405 times)
  9. mikroSDK (26342 times)
  10. microSD click (25349 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

Dual LIN click

Rating:

5

Author: MIKROE

Last Updated: 2019-12-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: LIN

Downloaded: 2475 times

Not followed.

License: MIT license  

The Dual LIN click is a Click boardâ„¢ based on the TLE7268SKXUMA1, a Dual LIN transceiver from Infineon. Given the features included in this transceiver, the Dual LIN transceiver designed for data transmission rates up to 20 kbps being fully compliant to the ISO17987-4, LIN specification 2.2A and SAE J2602 standards.

No Abuse Reported

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

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

Do you want to report abuse regarding "Dual 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

Dual LIN click

Dual LIN click

Native view of the Dual LIN click board.

View full image
Dual LIN click

Dual LIN click

Front and back view of the Dual 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(RST - BUS1, CS - BUS2) you want to change it, and get state of pin(INT - INH).

Key functions:

  • void duallin_write_byte ( uint8_t input ) - Write single byte of data
  • uint8_t duallin_read_byte ( void ) - Read single byte of data
  • uint8_t duallin_byte_ready ( void ) - Check for new byte received
  • uint8_t duallin_bus1_status ( uint8_t state ) - Sets state of bus1 pin

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 = DUALLIN_WRITE_MODE;

    if ( mode == DUALLIN_READ_MODE )
    {
        // RECEIVER - UART polling
        rdyFlag = duallin_byte_ready(  );

        if ( DUALLIN_DATA_READY == rdyFlag )
        {
            rec = duallin_read_byte(  );
            mikrobus_logWrite( &rec, _LOG_BYTE );
        }
    }
    else if ( mode == DUALLIN_WRITE_MODE )
    {
        // TRANSMITER - TX each 2 sec
        for ( tmp = 0; tmp < 11; tmp++ )
        {
            duallin_write_byte( 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

I2C Isolator 7 click

0

I2C Isolator 7 Click is a compact add-on board that offers completely isolated bidirectional communication. This board features the ADuM1252, an ultra-low power, bidirectional I2C isolator from Analog Devices. It can isolate I2C bidirectional data transfer of up to 2MHz SCL and bidirectional SCL for advanced bus topologies, and it supports clock stretching and multiple controllers across the isolation barrier. It also features the enhanced hot-swappable side 2 IO.

[Learn More]

Tamper click

5

Tamper click is equipped with SDS001, a low profile side-actuated detect switch, made by C&K company. The click is additionally equipped with the RC filter that minimizes the bouncing effect, making this click a reliable solution for any contact detection application.

[Learn More]

WiFi 8 click

0

WiFi 8 Click is a compact add-on board that contains a wireless combo module. This board features the ATWINC3400-MR210CA, a Bluetooth 5.0 certified module optimized for low power and high-performance mobile applications from Microchip Technology.

[Learn More]