element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Transportation & Automotive
  • Technologies
  • More
Transportation & Automotive
Blog CAN communication with Hercules Safety Microcontroller - part 3d: Design a Bus Driver PCB - Test
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Transportation & Automotive to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 16 Feb 2019 7:56 PM Date Created
  • Views 1366 views
  • Likes 8 likes
  • Comments 1 comment
  • automotive
  • hercules
  • can
  • safety
Related
Recommended

CAN communication with Hercules Safety Microcontroller - part 3d: Design a Bus Driver PCB - Test

Jan Cumps
Jan Cumps
16 Feb 2019

This may be my slowest blog series ever - previous post was October '17.

 

I'm trying out basic CAN communication on a Hercules microcontroller.

In this part I have my driver boards working.

image

 

I designed a tiny CAN driver PCB more than a year ago, for the Microchip CAN Bus Analyser Tool Road Test.

At the time, it didn't work. Road Test stress and work and life prevented me from getting to the bottom of the issue.

You can see some of my trials in the comments of part 3c: Design a Bus Driver PCB - Layout

This week - I had holidays - I took the time to beep out all the connections on both boards.

I found that two of the CAN driver IC pins on one board gave contact when I measured near the PCB, but not when I measured on the top of the IC.

Turns out that they made bad contact and were slightly floating over the solder.

I removed the IC, cleaned the footprint and put it back. Everything is working now.

 

Differential Signal

 

On the microcontroller side of a CAN chip, all is digital. In my case, the signal is on a 3V3 logic level.

In automotive, a signal is exposed to interference. Loads of things happen inside a car.

If you run a wire that has a digital signal in a car, data will get corrupted.

That's why the CAN physical layer is made. It defines that the physical layer is a (relatively) strongly driven signal.

It's differential,and the wiring is twisted pair. These measures take care that the signal is much more resilient to .environmental influences.

image

 

The differential signal is a direct function of the digital signal. But instead of a single signal referenced to ground, it's two opposite signals referenced to each other.

Both twisted pair and the differential nature helps to filter out external noise. Physics take care that most of the noise cancels itself.

 

Driver

 

The driver is responsible for translating from data layer to physical layer and back. It's not a fully implemented OSI model but implements several layers.

 

image

The controller logic, in my case, is part of the microcontrollers. I'm using an automotive Hercules TMS570LS04.

( am using 2 CAN controllers of the same microcontroller today, but you get the point).

 

The ICs on my drive boards, TCAN332D,  are the ones that do that translation.

I've chosen simple devices that only do the translation.

There are more advanced ICs that handle errors on the physical layers.

I haven't used those for a few reasons:

  • my main goal is to validate the Microchip CAN analyser on physical level
  • the Hercules controllers have a fair amount of error handling themselves
  • keep the design focused. There are elaborate development kits available. I wanted a bare basic one.

 

Test

 

I'm testing with an oscilloscope now. I'll use the Microcip CAN BUS analyser on the physical layer once I'm sure I'm within its operating conditions.

image

 

I'm using a design that I tested on the logic layer, so I'm confident that the logic works (see TI Hercules LaunchPad -  test the CAN with a poor man's CAN driver).

The driver boards allow me to analyse the traffic on the physical level.

I can confirm that the design is working - and that the signals are within the limits of the Microchip analyser.

In the next post, I'll try to capture the data using that analyser (edit: done part 4: Analyze the Physical layer of CAN Bus).

 

Road Test Blog
part 1: First trials
part 2: Inject CAN Messages
part 3: Analyzer as Test Tool
part 4: Analyze the Physical layer of CAN Bus
Related Blog
part 1: tryout
part 2: Communication between 2 Devices
part 3a: Design a Bus Driver PCB
part 3b: Design a Bus Driver PCB - Schematics and Custom Components
part 3c: Design a Bus Driver PCB - Layout
part 3d: Design a Bus Driver PCB - Test
  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 4 years ago +1
    I have new ICs for my test gigs. The previous ones died in various scenarios. Solder time.
  • Jan Cumps
    Jan Cumps over 4 years ago

    I have new ICs for my test gigs. The previous ones died in various scenarios.

     

    image

     

    Solder time.

    • 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 © 2025 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