element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Probing your Hercules LaunchPad CAN bus Part 3
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 9 Feb 2015 12:24 PM Date Created
  • Views 731 views
  • Likes 2 likes
  • Comments 1 comment
  • hercules_launchpad
  • papilio_pro
  • fpga
  • arm_cortex
  • automotive
  • real_time
  • logic_analyzer
  • texas_instructments
  • protocol
  • safety_devices
  • hercules
  • launchpad
  • can
  • rigol
Related
Recommended

Probing your Hercules LaunchPad CAN bus Part 3

Jan Cumps
Jan Cumps
9 Feb 2015

The Hercules LaunchPads of Texas Instruments have two (or three) CAN controllers.

It is possible to learn the CAN protocol and have real messages flowing with the LaunchPad and only three jellybean components.

This series explains how the standard TI examples work, but it goes further than that.

I'll also be looking at the signals with an oscilloscope and logic analyzer.

 

My first post in this series, Probing your Hercules LaunchPad CAN bus Part 1,

explains the minimal hardware required to get the example working on the LaunchPads (a resistor and two diodes).

In the second one, Probing your Hercules LaunchPad CAN bus Part 2, I check out the example project.
It's a step by step explanation of the CAN controller configuration and a code walk-trough.

 

This third post shows the hardware setup, and also the results on a logic analyzer and an oscilloscope.

 


image

 

Setup for the Hercules LaunchPad Make II

 

CAN1 and CAN2 are available on J10 of the second generation of Hercules LaunchPads.
J10 is on the long edge of the PCB and matches the standard breadboard grid.

The wiring is consistent with this Siemens App Note: AP2921 On-Board Communication via CAN without Transceiver.

 

 


image

 

There are three signals worth probing:

 

  • the transmit signal of CAN1
  • the transmit signal of CAN2
  • the common bus signal that has the combination of the two TX signals.
    This signals is also the RX signal for all connected controllers

 

(you can also see this from the image above. The two diodes act as a discrete OR gate).

 

 

Setup for the Hercules LaunchPad Make I

 

On the first generation, all signals are available on J10 (this time, J10 is one of the BoosterPack connectors).

image

(spot the typo in the TI schematic image )

 

Everything works the same as for the MK II LaunchPad. The only difference is that the pins are at a different location.

 

tl:dr

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 



Probing the signals with Logic Analyzer and Scope

 

 

Test Setup

I'm using two affordable instruments here.

 

My oscilloscope is a second hand Rigol DS1052E.

 

My logic analyzer is a Papilio Pro. This FPGA development board from Gadget Factory has two duties at Cumps Castle:

I'm using it as my FPGA proto board. It's very good at that
I'm using it as my Open Logic Sniffer compatible logic analyzer. It's very good at that tooimage

 

As probe, I use a Mueller 250 MHz probe with the 'ground spring' methodology.

That's kind of overkill when you're working with a breadboard - but it does give a cleaner square wave.

 

image

 

 

I've posted a short review of that 250 MHz probe:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

and also a review on the ground spring probing technique, but that seems to have gone lost in the internets

 

 

These images show what the CAN signals look like. If you look up the CAN specification, you can follow along.

 

The three signal on the logic analyzer:

 


image

 

Some stats of CAN1 Transmit signal:

 

image



The CAN BUS signal on the oscilloscope:

 

  imageimage

 

and some stats on the CAN BUS signal:

 

  imageimage

 

 

 

I've also attached the OpenLogic Sniffer's project to this article, and the raw data of the capure as .CSV file.

If you have jawi's OLS client, you can look at the data.

 


image

 

 

What next?

 

Maybe I'll try a conversation between 3 CANs, or make the 2 LaunchPads talk together over CAN. That 'll happen when I need such a set-up.

I may also beg TI to send a few real can drivers, so that I can set up an industry compliant CAN bus.

And if someone would please develop a CAN protocol analyzer for the LogicSniffer. Please?

 

 

related posts

Probing your Hercules LaunchPad CAN bus Part 1

Probing your LaunchPad CAN bus Part 2

Attachments:
RM46_25lc256_MIBSPI3.zip
RM46_canInt_fulltrace.csv.zip
  • Sign in to reply

Top Comments

  • martinvalencia
    martinvalencia over 8 years ago +1
    a great job, really see the use of CAN communication, not only in industry but in other useful applications.
  • martinvalencia
    martinvalencia over 8 years ago

    a great job, really see the use of CAN communication, not only in industry but in other useful applications.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube