TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 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 (136713 times)
  2. FAT32 Library (69925 times)
  3. Network Ethernet Library (55937 times)
  4. USB Device Library (46259 times)
  5. Network WiFi Library (41884 times)
  6. FT800 Library (41150 times)
  7. GSM click (28979 times)
  8. PID Library (26410 times)
  9. mikroSDK (26355 times)
  10. microSD click (25353 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: 21 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

DC MOTOR click

0

This application change the speed and direction of DC Motor

[Learn More]

Spectral 2 click

0

Spectral 2 click is a multispectral color sensing device, which uses the state-of-the-art sensor IC for a very accurate color sensing.

[Learn More]

Color 2 click

1

Color 2 click carries the ISL29125 RGB color light sensor. It detects red, green and blue in a variety of lighting conditions, outputting 16-bit resolution data in a 5.7m lux-10,000 lux measuring range. The board communicates with the target MCU through the mikroBUSâ„¢ I2C interface (SCL and SDA pins).

[Learn More]