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: 2024-07-09
Package Version: 2.0.0.5
mikroSDK Library: 2.0.0.0
Category: CAN
Downloaded: 86 times
Not followed.
License: MIT license
The application demonstrates CAN Transmit functionality.
Do you want to subscribe in order to receive notifications regarding "CAN Transmit Demo" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "CAN Transmit Demo" changes.
Do you want to report abuse regarding "CAN Transmit Demo".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
5632_can_transmit_dem.zip [8.63KB] | GCC for ARM Clang for ARM mikroC AI for ARM GCC for RISC-V Clang for RISC-V mikroC AI for PIC mikroC AI for dsPIC XC16 mikroC AI for PIC32 XC32 |
|
Code developed on UNI-DS v8 and it can be used on other MIKROE development boards as well. Code was developed with purpose of easier understanding functions for Controller Area Network Interface (CAN). CAN Transmit Demo is meant to work with CAN Receive Demo, meaning that one should be programmed on one MCU and the other on another one and boards should be connected properly. Follow the steps to make the example work as it should.
This is a simple example that utilizes mikroSDK 2.10.0 CAN driver library. In this demo we send three bytes of data, of which the first and the third one are the same every time and they're used to make sure transmit and receive are not stuck. The second one is an 8-bit value that gets incremented in each transmit.
This code was developed on UNI-DS v8 board. For this hardware to work according to program, you will need the following:
Note: You might need terminal resistence (aproximately 120 Ohms). This is hardware dependent.
To connect everything properly, follow these steps:
We provide code for demonstrating the usage of functions contained in CAN driver library. To run this example, follow these steps:
In order to make this example work, proper clock setup is needed. To create a setup with the adequate clock scheme, follow these steps: