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 (136638 times)
  2. FAT32 Library (69847 times)
  3. Network Ethernet Library (55897 times)
  4. USB Device Library (46231 times)
  5. Network WiFi Library (41868 times)
  6. FT800 Library (41091 times)
  7. GSM click (28947 times)
  8. PID Library (26402 times)
  9. mikroSDK (26320 times)
  10. microSD click (25329 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: 1846 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

6DOF IMU 4 click

0

6DOF IMU 4 Click is an advanced 6-axis motion tracking Click board™, which utilizes the ICM-20602, a high-performance integrated motion sensor, equipped with a 3-axis gyroscope, and a 3-axis accelerometer.

[Learn More]

Buck Boost 2 click

0

Buck-Boost 2 click is an advanced DC-DC step-down/step-up regulator (buck/boost), which is able to provide regulated 5V on its output, regardless of the input voltage.

[Learn More]

OLED C click

0

OLED C click is equipped with the 96x96 high-color OLED display. It can display up to 65K/262K different colors and shades on a compact size display, based on the OLED technology.

[Learn More]