TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139248 times)
  2. FAT32 Library (71743 times)
  3. Network Ethernet Library (57115 times)
  4. USB Device Library (47428 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28073 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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-07-09

Package Version: 2.0.0.7

mikroSDK Library: 2.0.0.0

Category: CAN

Downloaded: 74 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

V to Hz Click

5

V to HZ click is a device that turns analog voltage into a pulse wave signal of a certain frequency.

[Learn More]

Vibro Motor 4 Click

0

Vibro Motor 4 Click is a compact add-on board that makes an ideal solution for adding simple haptic feedback in any design. This board features the G1040003D, a coin-sized linear resonant actuator (LRA) that generates vibration/haptic feedback from Jinlong Machinery & Electronics, Inc. Driven by a flexible Haptic/Vibra driver, the DRV2605, G1040003D vibrates in the Z-axis, which is perpendicular to the face of the vibration motor. It draws a maximum of 170mA while producing the highest G force/vibration energy of 2 GRMS. This Click board™ makes an excellent choice for devices with limited battery capacity and for users who require crisp haptic feedback and low power consumption.

[Learn More]

Dual LIN click

5

The Dual LIN click is a Click boardâ„¢ based on the TLE7268SKXUMA1, a Dual LIN transceiver from Infineon. Given the features included in this transceiver, the Dual LIN transceiver designed for data transmission rates up to 20 kbps being fully compliant to the ISO17987-4, LIN specification 2.2A and SAE J2602 standards.

[Learn More]