Transitioning Applications from CAN 2.0 to CAN FD Wilhelm - - PowerPoint PPT Presentation

transitioning applications from can 2 0 to can fd
SMART_READER_LITE
LIVE PREVIEW

Transitioning Applications from CAN 2.0 to CAN FD Wilhelm - - PowerPoint PPT Presentation

Transitioning Applications from CAN 2.0 to CAN FD Wilhelm Leichtfried Orlando Esparza Fernando Gonzalez October 2015 Application Driver Door Module 2 Requirements CAN 2.0 DDM Analog: Temperature Sensor Inputs: door lock, window lift,


slide-1
SLIDE 1

Transitioning Applications from CAN 2.0 to CAN FD

Wilhelm Leichtfried

Orlando Esparza Fernando Gonzalez

October 2015

slide-2
SLIDE 2

2

Driver Door Module

Application

slide-3
SLIDE 3

3

Requirements CAN 2.0 DDM

Analog: Temperature Sensor Inputs: door lock, window lift, mirror control, door ajar Outputs: window and door lock driver Interior Lighting: LED intensity control Communication:

CAN 2.0: 500kb/s; 75% sample point +/-0.4% bit time tolerance LIN: 19.2kb/s; for mirror control

slide-4
SLIDE 4

4

Communication: CAN 2.0

slide-5
SLIDE 5

5

Temperature Sensor Door Lock Door Ajar Mirror Control Window Lift Control LIN Transceiver A2D Digital In UART CAN 2.0 CAN 2.0 Transceiver Door Lock Driver Window Motor LED Driver Digital Out

MCU

FLASH RAM CPU PLL PWM 48 MHz 8 MHz

CAN 2.0 HW

slide-6
SLIDE 6

6

CAN 2.0 FW

Communication Drivers UART Driver CAN Driver I/O Drivers I/O Driver MCU Peripherals CAN UART I/O

  • Comm. Hardware Abstraction

I/O Abstraction CAN Interface LIN Interface Application I/O Interface CAN Network Management LIN Network Management Door Un/Lock Window Lift

  • Temp. Sensing

Interior Lighting CAN 2.0 Transceiver LIN Transceiver

slide-7
SLIDE 7

7

Development Effort

Hardware design: 1 TQ Firmware design: 3-5 TQ Validation: 3-5 TQ

slide-8
SLIDE 8

8

Motivation for CAN FD

OEM face bandwidth issues

EOL programming Growth of features

Limits of CAN 2.0

500kb/s data rate 8 data bytes per message

Solution -> CAN FD

500kb/s arbitration phase; 2Mb/s data phase 5 to 8Mb/s programming 64 data bytes per message

slide-9
SLIDE 9

9

CAN 2.0 vs. CAN FD

slide-10
SLIDE 10

10

Requirements CAN FD DDM

Temperature – send data more often Inputs: door lock, window lift, mirror control, door ajar Outputs: window and door lock driver Interior Lighting: RGB LED Communication:

CAN FD: 500kb/s-2Mb/s; 75.0% sample point; +/-0.4% bit time tolerance; 40 (or 20 or 80) MHz CAN clock LIN: for mirror control

slide-11
SLIDE 11

11

Temperature Sensor Door Lock Door Ajar Mirror Control Window Lift Control LIN Transceiver A2D Digital In UART CAN 2.0 CAN 2.0 Transceiver Door Lock Driver Window Motor LED Driver Digital Out

MCU

FLASH RAM CPU PLL PWM 48 MHz 8 MHz

CAN FD HW

FLASH RAM CAN FD Transceiver CAN FD RGB LED Driver 4x PWM 64 MHz 40 MHz

slide-12
SLIDE 12

12

CAN FD FW

Communication Drivers UART Driver I/O Drivers I/O Driver MCU Peripherals CAN FD UART I/O

  • Comm. Hardware Abstraction

I/O Abstraction LIN Interface Application I/O Interface LIN Network Management Door Un/Lock Window Lift

  • Temp. Sensing

CAN FD Transceiver LIN Transceiver CAN Driver CAN Interface CAN Network Management Interior Lighting RGB Interior Lighting CAN FD Driver CAN FD Interf. CAN FD Network M.

slide-13
SLIDE 13

13

CAN FD MCU availability

Limited number of CAN FD MCU Most MCUs are high end targeting Gateway applications Major re-design effort of HW and FW Major re-validation effort

slide-14
SLIDE 14

14

New MCU FW

Communication Drivers UART Driver I/O Drivers I/O Driver MCU Peripherals CAN FD UART I/O

  • Comm. Hardware Abstraction

I/O Abstraction LIN Interface Application I/O Interface LIN Network Management Door Un/Lock Window Lift

  • Temp. Sensing

CAN FD Transceiver LIN Transceiver CAN Driver CAN Interface CAN Network Management Interior Lighting RGB Interior Lighting CAN FD Driver CAN FD Interf. CAN FD Network M. UART Driver I/O Driver LIN Interface I/O Interface

slide-15
SLIDE 15

15

Temperature Sensor Door Lock Door Ajar Mirror Control Window Lift Control LIN Transceiver A2D Digital In UART Door Lock Driver Window Motor LED Driver Digital Out

MCU

FLASH RAM CPU PLL PWM FLASH RAM CAN Transceiver CAN 2.0 RGB LED Driver 4x PWM 64 MHz CAN FD Transceiver CAN FD Controller SPI 4 MHz

External Controller

slide-16
SLIDE 16

16

External CAN FD Controller FW

Communication Drivers UART Driver I/O Drivers I/O Driver MCU Peripherals SPI UART I/O

  • Comm. Hardware Abstraction

I/O Abstraction CAN FD Interf. LIN Interface Application I/O Interface CAN FD Network M. LIN Network Management Door Un/Lock Window Lift

  • Temp. Sensing

RGB Interior Lighting CAN FD Controller/XCVR LIN Transceiver CAN Driver SPI Driver

slide-17
SLIDE 17

17

External Controller

Benefit of Using an External Controller

Maximize design re-use Minimize cost

Keep microcontroller No need to upgrade to available high end CAN FD MCU Minimize re-validation

Increased choices of MCU Easily add additional CAN FD channels

slide-18
SLIDE 18

18

External CAN FD controller blockdiagram

SPI Interface CAN Clock Generation SPI Pins INT Pins RAM TX/RX Msg Objects TX/RX FIFOs

TXCAN RXCAN

BSP Bit Stream Processor TX Handler TX Prioritization RX Handler Acceptance Filter Memory IF CAN SFR Mode Control Time Stamping CAN Interrupts FIFO and Buffer Control Filter and Masks

slide-19
SLIDE 19

19

External CAN FD controller FAQ

Are there security considerations?

Add ECC to RAM Secure SPI with optional CRC

What is the required SPI speed?

500k/2M -> 10MHz 500k/5M -> 12MHz SPI with DMA recommended

slide-20
SLIDE 20

20

CAN FD bit time setup

slide-21
SLIDE 21

21

Summary

CAN 2.0 to CAN FD transition has begun

Both Automotive and Industrial

Lack of CAN FD capable MCUs

Increases OEM/Supplier costs and complexities

CAN FD External Controller is a viable alternative solution

Maximizes hardware and firmware reuse

slide-22
SLIDE 22

22

Questions / Demo