TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136982 times)
  2. FAT32 Library (70095 times)
  3. Network Ethernet Library (56023 times)
  4. USB Device Library (46343 times)
  5. Network WiFi Library (41961 times)
  6. FT800 Library (41274 times)
  7. GSM click (29051 times)
  8. mikroSDK (26488 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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

FT click

Rating:

5

Author: MIKROE

Last Updated: 2020-06-26

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: RS485

Downloaded: 1873 times

Not followed.

License: MIT license  

FT Click is a compact smart transceiver add-on board that helps you add a Free Topology (FT) interface to any host board with the mikroBUS socket.

No Abuse Reported

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

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

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

FT click

FT click

Native view of the FT click board.

View full image
FT click

FT click

Front and back view of the FT click board.

View full image

Library Description

The library contains functions to provide communication between 2 or more click boards.

Key functions:

  • void ft_send_package( uint8_t *data_buf, uint16_t len, uint8_t queue ) - Sends full package to other module
  • void ft_process ( uint8_t rsp_data ) - Collecting and preserving data received via uart interrupt routine
  • uint16_t ft_get_data ( uint8_t *data_buf ) - Gets new received data

Examples description

The application is composed of three sections :

  • System Initialization - Initialize UART module and sets aplication mode (RX or TX)
  • Application Initialization - Initialize driver init
  • Application Task - RX mode : Reads and logs new receive data. TX mode : sends (MikroE) data every 1 seconds.
void application_task ( )
{
    if ( app_mode == APP_MODE_RX )
    {
        if ( ft_get_data_status( ) == FT_NEW_DATA_AVAILABLE )
        {
            rsp_data_num = ft_get_data( &rsp_data_buf[ 0 ] );
            if( rsp_data_num != 0 )
            {
                mikrobus_logWrite( "---------------------------", _LOG_LINE );
                mikrobus_logWrite( "--> READ: ", _LOG_TEXT );
                mikrobus_logWrite( rsp_data_buf, _LOG_LINE );
                mikrobus_logWrite( "---------------------------", _LOG_LINE );
            }
        }
    }
    else
    {
        mikrobus_logWrite( "--------------------------", _LOG_LINE );
        mikrobus_logWrite( "-->  SEND MIKROE DATA  <--", _LOG_LINE );
        mikrobus_logWrite( "--------------------------", _LOG_LINE );
        ft_send_package( &MIKROE_DATA_BUF[ 0 ], MIKROE_DATA_BUF_LEN, MIKROE_DATA_QUEUE );
        Delay_ms( 1000 );
    }
}

Note - Before the start program check uart interrupt routine in the Click_FT_other peripherals file.

Other mikroE Libraries used in the example:

  • UART Library
  • Conversions library

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

GPS 3 click

0

GPS3 click carries Quectel’s L80 GPS module, a high-sensitivity ultra slim GPS module with a patch antenna.

[Learn More]

Hall current 2 Click

5

Hall current 2 click is a very accurate current measurement Click board, which relies on the Hall effect. The maximum current which can be measured with the Hall current 2 ranges from -12A to +12A, with optimized precision.

[Learn More]

BattMon click

5

BATT-MON Click is a very versatile, high accuracy, multiple-chemistry battery gauge for applications single-cell batteries.

[Learn More]