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 CAN communication with Hercules Safety Microcontroller - part 3a: Design a Bus Driver PCB
  • 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: 8 Oct 2017 12:15 PM Date Created
  • Views 709 views
  • Likes 4 likes
  • Comments 0 comments
  • automotive
  • hercules
  • launchpad
  • can
Related
Recommended

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

Jan Cumps
Jan Cumps
8 Oct 2017

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

In this third blog I'll design driver PCBs.

The first part checks the design rules from the datasheet.

image

 

 

Real CAN driver

 

In the previous post I was using a makeshift CAN bus. But CAN buses that comply with the standard require a differential bus driver.

I bought 2 TCAN332DTCAN332D driver ICs. I've selected those because they are simple and require only a few additional components (in fact, if you don't care about protection: none. But that's not OK in automotive settings).

The PCB I design will have place for all protection components listed in the datasheet. I can choose to populate them or not. As long as I don't build them into a car, I can leave them off.

The board will also have optional components for the case when the device is an end point of the bus and needs to properly close the line with the correct impedance.

 

Here's the layout guideline from the tech ref.

 

image

(message to Texas Instruments: This is the ugliest Layout Example drawing I've ever seen in a datasheet. Where's your aesthetic feeling?)

 

My device doesn't have Fault, Sleep and Shutdown pins. I chose the simplest one. The grey components don't apply.

 

From the data sheet:

I removed instructions for signals not available on the TCAN332D

13.1 Layout Guidelines

TCAN33x family of devices incorporates integrated IEC 61000-4-2 ESD protection. Should the system requires

additional protection against ESD, EFT or surge, additional external protection and filtering circuitry may be

needed.

 

In order for the PCB design to be successful, start with design of the protection and filtering circuitry. Because

ESD and EFT transients have a wide frequency bandwidth from approximately 3 MHz to 3 GHz, high frequency

layout techniques must be applied during PCB design.

Design the bus protection components in the direction of the signal path. Do not force the transient current to

divert from the signal path to reach the protection device. Below is a list of layout recommendations when

designing a CAN transceiver into an application.

 

• Transient Protection on CANH and CANL: Transient Voltage Suppression (TVS) and capacitors (D1, C5 and

C7 shown in Figure 40) can be used for additional system level protection. These devices must be placed as

close to the connector as possible. This prevents the transient energy and noise from penetrating into other

nets on the board.

 

• Bus Termination on CANH and CANL: Figure 40 shows split termination where the termination is split into two

resistors, R5 and R6, with the center or split tap of the termination connected to ground through capacitor C6.

Split termination provides common mode filtering for the bus. When termination is placed on the board

instead of directly on the bus, care must be taken to ensure the terminating node is not removed from the

bus, as this causes signal integrity issues if the bus is not properly terminated on both ends.

 

• Decoupling Capacitors on VCC: Bypass and bulk capacitors must be placed as close as possible to the supply

pins of transceiver (examples are C2 and C3).

 

• Ground and power connections: Use at least two vias for VCC and ground connections of bypass capacitors

and protection devices to minimize trace and via inductance.

 

• Digital inputs and outputs: To limit current of digital lines, serial resistors may be used. Examples are R1, R2,

R3 and R4.

 

• Filtering noise on digital inputs and outputs: To filter noise on the digital I/O lines, a capacitor may be used

close to the input side of the I/O as shown by C1, C8 and C4.

 

• TXD input pin: If an open-drain host processor is used to drive the TXD pin of the device, an external pullup

resistor between 1 kΩ and 10 kΩ must be used to help drive the recessive input state of the device (weak

internal pullup resistor)

 

For the termination, I can use symmetric or simple:

image

 

I'll provide footprints for both options on the PCB. All in all, this will be an easy design.

I selected SOIC ICs, but smaller footprints are available.

I've designed some PCBs with smaller ones in the past but they turned out hard to reproduce.

 

In the next blog I'll start creating the PCB. And I'll use my favourite KiCAD tool Kipart to generate the IC schematic symbol.

For the disclaimer inclined reader: I purchased the ICs. The shipping was free. I have a free shipping agreement with the supplier.

 

 

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
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