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 1
  • 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: 2 Feb 2015 1:25 PM Date Created
  • Views 921 views
  • Likes 0 likes
  • Comments 0 comments
  • hercules_launchpad
  • arm_cortex
  • automotive
  • real_time
  • texas_instructments
  • protocol
  • safety_devices
  • hercules
  • launchpad
  • can
Related
Recommended

Probing your Hercules LaunchPad CAN bus Part 1

Jan Cumps
Jan Cumps
2 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.

 

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

 

What you need to follow along:

  • A Hercules LaunchPad, with Code Composer Studio and HALCoGen installed
  • 1 resistor (I used 3K3 - value not critical, search your spare parts drawers)
  • 2 to 3 diodes (whatever you have in those same drawers)

 

 

The CAN protocol

 

The theory

CAN bus - Wikipedia, the free encyclopediaimage

 

The hardware

Some hardware is needed to make the CAN examples work on the Launchpads.

I have made a previous blog post that shows how to get the signals out for a LaunchPad type I (TI Hercules LaunchPad -  test the CAN with a poor man's CAN driver).

TI has now launched (pun intended) a new version with three CAN controllers. More buses = more possibilities, so I'm going to start with the TI's 2 CANs example, and then move on to 3.

 

A typical can implementation expects that you use line drivers and twisted pair as the physical wire. And that is the proper way to work.

image

A common setup is that for Transmit (Tx) , the signal from the controller is translated in the CAN line driver to a balanced signal. For incoming traffic,

the driver picks up the info from the balanced line signal and gives that to the controller's Receive (Rx) pin.

Our Hercules LaunchPads don't have a CAN line driver (some other development boards from TI do have them on-board). But that does not mean that we can't work with CAN.

 

Siemens has published a paper that describes a simplified version: AP2921 On-Board Communication via CAN without Transceiver.

Siemens' setup only requires a single resistor, and a jellybean diode per CAN device. So we can get started with a 3.3K resistor and two diodes.

For our LaunchPads, the schematic for this setup is so easy that we can build it up on a breadboard:

 

image

If you have a Hercules LaunchPad MK I (LAUNCHXL-RM42, LAUNCHXL-TMS570004), you'll be able to communicate to 2 CANs.
On the MK II (LAUNCHXL2-RM46, LAUNCHXL2-TMS57012) you can also run that 2 CANs setup, but additionally you 'll be able to extend your setup to 3 CANs.

The review of the example code and the setup instructions for each configuration will follow in the next posts.

 

related posts

Probing your LaunchPad CAN bus Part 2

Probing your Hercules LaunchPad CAN bus Part 3

  • Sign in to reply
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