
MICROSAR CAN Transceiver driver
Technical Reference
Tja1145
Version 3.04.00
Authors
Timo Vanoni, Eugen Stripling, Jan Hammer, Carsten
Gauglitz
Status
Released

Technical Reference MICROSAR CAN Transceiver driver Tja1145
© 2019 Vector Informatik GmbH Version 3.04.00 2
based on template version 3.1
1 Document Information
1.1 History of Template
Author
Date
Version
Remarks
Timo Vanoni
2010-04-21
1.00.00
Creation
Table 1-1 History of the template
1.2 History of Document
Author
Date
Version
Remarks
Timo Vanoni
2011-08-02
1.00.00
Creation
Timo Vanoni
2012-03-19
1.01.00
Add support for asynchronous
Spi.
Timo Vanoni
2012-08-13
2.00.00
Add support for ASR4.0.3
Timo Vanoni
2013-04-10
2.01.00
ESCAN00064694, Support
configuration of Wake pin
Eugen Stripling
2013-11-04
2.01.01
Described that bus error
polling is not supported (s.
chapter 8.2.2)
Eugen Stripling
2014-11-13
3.00.00
AUTOSAR3 removed,
Post-build selectable
Eugen Stripling
2014-11-26
3.00.01
Added support for Uja1168
Eugen Stripling
2015-11-13
3.00.02
ESCAN00086474
Eugen Stripling
2015-12-09
3.01.00
Add support for automatic
re-initialization (chapter 3.8)
Chapter 8.3.7 added, chapter
3.2 adapted
Eugen Stripling
2015-03-15
3.02.00
Add support for Post-build
loadable
Eugen Stripling
2015-05-21
3.02.01
Reference to Tja1145
datasheet updated
Eugen Stripling
2017-01-21
3.02.02
Chapter 4.4 updated
Eugen Stripling
2017-04-26
3.03.00
Chapter 3.9 added,
ESCAN00094881
Eugen Stripling
Jan Hammer
2017-06-06
2017-08-29
3.03.01
Typos corrected, Chapter 6.2
improved
Adapted due to
ESCAN00096444: Support
ATA6570

Technical Reference MICROSAR CAN Transceiver driver Tja1145
© 2019 Vector Informatik GmbH Version 3.04.00 3
based on template version 3.1
Author
Date
Version
Remarks
Carsten Gauglitz
2019-05-02
3.04.00
Add emulated sleep mode to
chapter 3.3; Add note for PN
configuration to chapter 3.6;
Add support for newer SPI
driver (ASR4.1.1 or higher) to
chapter 8.2.3
Table 1-2 History of the document
1.3 Reference Documents
No.
Title
Version
[1]
AUTOSAR_SWS_CAN_TransceiverDriver.pdf
3.0.0
[2] [
AUTOSAR_SWS_CANTransceiverDriver.pdf
4.2.2
[3]
AUTOSAR_SWS_DET.pdf
2.2.1
[4]
AUTOSAR_BasicSoftwareModules.pdf
V1.0.0
[5]
AUTOSAR_SWS_TimeService.pdf
4.3.0
[6]
AUTOSAR_SWS_SPIHandlerDriver.pdf
4.0.3
[7]
TJA1145.pdf
Rev. 2 - 18 April 2014
[8]
UJA1168.pdf
Rev. 2 - 16 April 2014
[9]
atmel-9340-can-van-networking-
ata6570_datasheet.pdf.pdf
11/2016
Table 1-3 Reference documents
1.4 Scope of the Document
This technical reference describes the specific use of the CAN transceiver driver
CanTrcv_30_Tja1145.
Please note
We have configured the programs in accordance with your specifications in the
questionnaire. Whereas the programs do support other configurations than the one
specified in your questionnaire, Vector´s release of the programs delivered to your
company is expressly restricted to the configuration you have specified in the
questionnaire.

Technical Reference MICROSAR CAN Transceiver driver Tja1145
© 2019 Vector Informatik GmbH Version 3.04.00 4
based on template version 3.1
Contents
1 Document Information ................................................................................................. 2
1.1 History of Template ............................................................................................ 2
1.2 History of Document .......................................................................................... 2
1.3 Reference Documents ....................................................................................... 3
1.4 Scope of the Document...................................................................................... 3
2 Introduction................................................................................................................... 8
2.1 Supported Hardware .......................................................................................... 9
3 Functional Description ............................................................................................... 10
3.1 Features .......................................................................................................... 10
3.2 Initialization ...................................................................................................... 11
3.3 Set operation mode .......................................................................................... 11
3.4 Get operation mode ......................................................................................... 11
3.5 Get version info ................................................................................................ 12
3.6 Wakeup by bus event detection ....................................................................... 12
3.6.1 Get bus wakeup reason ................................................................... 12
3.6.2 Set wakeup mode ............................................................................ 13
3.7 Development Error Reporting........................................................................... 13
3.8 Automatic recovery from SYSERR situations ................................................... 14
3.9 Switching to active mode ................................................................................. 14
4 Integration ................................................................................................................... 16
4.1 Scope of Delivery ............................................................................................. 16
4.1.1 Static Files ....................................................................................... 16
4.1.2 Dynamic Files .................................................................................. 16
4.2 Compiler Abstraction and Memory Mapping ..................................................... 17
4.3 Data consistency.............................................................................................. 18
4.4 Exclusive Areas ............................................................................................... 18
4.4.1 CANTRCV_EXCLUSIVE_AREA_0 .................................................. 18
4.5 Cyclic Tasks ..................................................................................................... 19
5 Dependencies to other components ......................................................................... 20
5.1 SPI driver ......................................................................................................... 20
5.1.1 SPI Configuration ............................................................................. 20
5.1.1.1 Device............................................................................ 20
5.1.1.2 Channel_x ..................................................................... 21
5.1.1.3 Job ................................................................................. 21

Technical Reference MICROSAR CAN Transceiver driver Tja1145
© 2019 Vector Informatik GmbH Version 3.04.00 5
based on template version 3.1
5.1.1.4 Sequence N ................................................................... 22
5.1.1.5 Sequence M .................................................................. 22
5.1.1.6 Sequence L ................................................................... 23
5.2 Icu driver .......................................................................................................... 24
5.2.1 ICU configuration ............................................................................. 25
5.2.2 Implementation of the signal notification function ............................. 26
6 API Description ........................................................................................................... 27
6.1 Services provided by CANTRCV ...................................................................... 27
6.1.1 CanTrcv_30_Tja1145_InitMemory .................................................... 27
6.1.2 CanTrcv_30_Tja1145_Init ................................................................ 28
6.1.3 CanTrcv_30_Tja1145_SetOpMode .................................................. 29
6.1.4 CanTrcv_30_Tja1145_GetOpMode .................................................. 30
6.1.5 CanTrcv_30_Tja1145_GetBusWuReason ........................................ 31
6.1.6 CanTrcv_30_Tja1145_SetWakeupMode .......................................... 32
6.1.7 CanTrcv_30_Tja1145_GetVersionInfo .............................................. 33
6.1.8 CanTrcv_30_Tja1145_CheckWakeup .............................................. 34
6.1.9 CanTrcv_30_Tja1145_GetTrcvSystemData ..................................... 35
6.1.10 CanTrcv_30_Tja1145_ClearTrcvWufFlag ......................................... 36
6.1.11 CanTrcv_30_Tja1145_ReadTrcvTimeoutFlag .................................. 37
6.1.12 CanTrcv_30_Tja1145_ClearTrcvTimeoutFlag .................................. 37
6.1.13 CanTrcv_30_Tja1145_ReadTrcvSilenceFlag ................................... 38
6.1.14 CanTrcv_30_Tja1145_CheckWakeFlag ........................................... 39
6.1.15 CanTrcv_30_Tja1145_MainFunction ................................................ 40
6.1.16 CanTrcv_30_Tja1145_SetPNActivationState ................................... 41
6.2 Services used by CANTRCV ........................................................................... 42
7 Configuration .............................................................................................................. 43
7.1 Configuration with DaVinci Configurator 5 ........................................................ 43
7.2 User configuration ............................................................................................ 43
7.2.1 #define CANTRCV_30_TJA1145_SPI_MAINFUNCTION() .............. 43
7.2.2 #define CANTRCV_30_TJA1145_SPI_SYNC_TRANSMIT(Ret,
Seq) ................................................................................................. 44
7.2.3 #define
CANTRCV_30_TJA1145_WAKE_PIN_EVENT_RISING/.._FALLIN
G ...................................................................................................... 45
7.2.4 #define CANTRCV_30_TJA1145_AUTO_REINIT ............................ 45
7.3 Configuration of Post-build loadable................................................................. 46
8 AUTOSAR Standard Compliance............................................................................... 47
8.1 Additions/ Extensions ....................................................................................... 47
8.1.1 Memory initialization ......................................................................... 47