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]
Rating:
Author: MIKROE
Last Updated: 2020-03-06
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: CAN
Downloaded: 2881 times
Not followed.
License: MIT license
CAN FD 3 Click is a add-on board based on TLE9251V CAN network transceiver, designed for HS CAN networks up to 5 Mbit/s in automotive and industrial applications.
Library Description
Library provides functions for communication via UART module, and a function for controlling cs pin, which sets device mode.
Key functions:
void canfd3_write_byte ( uint8_t input )
- Writes single byte of datauint8_t canfd3_read_byte( )
- Reads single byte of datauint8_t canfd3_byte_ready ( )
- Checks if new data ic receivedvoid canfd3_set_cs_pin ( uint8_t mode )
- Sets state of the CS pinExamples description
The application is composed of three sections :
void application_task ( )
{
float read_data;
char txt_out[ 30 ];
read_data = thermo17_read_temp( THERMO17_TEMPERATURE_LOCAL );
FloatToStr( read_data, txt_out );
mikrobus_logWrite( " - LOCAL: ", _LOG_TEXT );
mikrobus_logWrite( txt_out, _LOG_LINE );
Delay_ms( 100 );
read_data = thermo17_read_temp( THERMO17_TEMPERATURE_REMOTE );
FloatToStr( read_data, txt_out );
mikrobus_logWrite( " - REMOTE: ", _LOG_TEXT );
mikrobus_logWrite( txt_out, _LOG_LINE );
Delay_ms( 100 );
mikrobus_logWrite( " ******************** ", _LOG_LINE );
Delay_ms( 1000 );
}
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB 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.
Button R click is the simplest solution for adding a single pushbutton to your design. The button itself is transparent, 6.8mm in diameter and has a red LED backlight. When pressed, it sends an interrupt signal to the target board microcontroller, while the LED is controlled separately through the mikroBUS PWM pin.
[Learn More]Smart Buck 2 Click is a compact add-on board that contains a high-frequency synchronous step-down DC-DC converter. This board features the TPS62363, a 3A processor supply with remote sense from Texas Instruments. The converter is optimized for battery-powered portable applications for a small solution size. It has an input range of 2.5V to 5.5V, which is common for battery technologies. The converter provides up to 3A peak load current operating at 2.5MHz typical switching frequency.
[Learn More]RS485 Isolator 2 Click features ADM2867E a 5.7 kV rms signal and power isolated full duplex RS-485 transceiver. The device also features cable invert pins, allowing the user to quickly correct reversed cable connection on A, B, Y, and Z bus pins while maintaining receiver full receiver fail-safe performance.
[Learn More]You have unsaved changes. If you choose to leave all changes will be discarded.
Do you want to subscribe in order to receive notifications regarding "CAN FD 3 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "CAN FD 3 click" changes.
Do you want to report abuse regarding "CAN FD 3 click".