TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136822 times)
  2. FAT32 Library (69985 times)
  3. Network Ethernet Library (55973 times)
  4. USB Device Library (46287 times)
  5. Network WiFi Library (41894 times)
  6. FT800 Library (41203 times)
  7. GSM click (29004 times)
  8. PID Library (26421 times)
  9. mikroSDK (26387 times)
  10. microSD click (25383 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

CAN Loopback Mode Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.0.0.4

mikroSDK Library: 2.0.0.0

Category: CAN

Downloaded: 22 times

Not followed.

License: MIT license  

The application demonstrates CAN functionality in Loopback Mode.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "CAN Loopback Mode Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "CAN Loopback Mode Demo" changes.

Do you want to report abuse regarding "CAN Loopback Mode Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

CAN Loopback

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) Loopback Mode.



Code description

This is a simple example that utilizes mikroSDK 2.10 CAN driver library. In this demo we use the internal CAN transceiver module. Sent and received data are compared at the end of cycle transmission-receiving.


Hardware Support

imageimage

This code was developed on UNI-DS v8 board. For this hardware to work according to program, it is necessary to:

  • For NXP, PIC32 and RISC-V MCUs provide CAN signals with the same baud rate values to CAN H and CAN L pins on MCU card or board.

Software Support

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:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and clock configuration and the project will open.
  5. Define test pins using TEST_PIN_x macros according to your hardware
  6. Program it by clicking on Flash.
  7. If transfer completes successfully, TEST_PIN_SUCCESS pin on the Board/Tester click will light up.

ALSO FROM THIS AUTHOR

RGB Driver click

5

RGB Driver click is an RGB LED driver, capable of driving RGB LEDs with the reasonably high amount of current, via the I2C interface.

[Learn More]

UART MUX 2 click

0

UART MUX 2 Click is a compact add-on board that enables pseudo-multidrop RS232 transmission. This board features the MAX399, a precise CMOS analog multiplexer that allows four remote RS-232 transceivers to share a single UART from Maxim Integrated. It offers fast switching speeds with a transition time of less than 250ns and low on-resistance less than 100Ω while retains CMOS-logic input compatibility and fast switching. Channel selection is performed through a set of specific GPIO pins and possesses additional functionality such as the manual ON/OFF feature. This Click board™ is suitable for a wide range of applications, from industrial and instrumentation to a consumer, communications, data-acquisition systems, and many more.

[Learn More]

WiFi ESP click

0

WiFi ESP click carries the ESP-WROOM-02 module that integrates ESP8266EX.

[Learn More]