TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137096 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56122 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42071 times)
  6. FT800 Library (41384 times)
  7. GSM click (29112 times)
  8. mikroSDK (26561 times)
  9. PID Library (26489 times)
  10. microSD click (25486 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: 30 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

2x30W Amp click

0

2x30W Amp click is a class-D audio amplifier with a tremendous output power, considering its size and lack of huge heatsinks, usually associated with the audio amplifiers.

[Learn More]

Magneto 8 click

5

Magneto 8 Click is a compact add-on board that contains an easy-to-program magnetic rotary position sensor with incremental quadrature (A/B) and 12-bit digital outputs. This board features the AS5601, 12-bit programmable contactless encoder IC from AMS-AG.

[Learn More]

BT click

0

BT Click is a compact add-on board targeted for applications that require both Bluetooth Smart and Classic connectivity. This board features the BT121, a dual-mode Bluetooth Smart Ready module solution that gives unparalleled flexibility to integrate both Bluetooth Smart and Bluetooth Basic Rate/Enhanced Data Rate (BR/EDR) wireless technologies from Silicon Labs.

[Learn More]