MORNSUN TD3USPCAN Supplément

第
1
页 共 60 页
Application Notes of TD5(3)USPCAN
Project
Content
Product
function
CAN controller, isolated transmission, signal
conversion, protocol conversion and port expansion
Summary
of notes
Application description and detailed
explanation of functions

第
2
页 共 60 页
Catalogue
1. Function introduction.......................................................................................................................................................4
1.1 Summary...................................................................................................................................................................4
1.2 Product characteristics......................................................................................................................................... 4
1.3 Product model........................................................................................................................................................ 4
1.4 Applications............................................................................................................................................................. 5
2. Hardware description...................................................................................................................................................... 5
2.1 Product appearance............................................................................................................................................ 5
2.2 Pin definition.............................................................................................................................................................5
2.3 IO description.......................................................................................................................................................... 7
2.4 UART to CAN hardware circuit............................................................................................................................ 7
2.5 SPI to CAN hardware circuit................................................................................................................................ 8
2.6 Peripheral protection circuit..............................................................................................................................10
2.7 Recommended networking mode..................................................................................................................11
3. Product application.......................................................................................................................................................11
3.1 Noun interpretation..............................................................................................................................................11
3.2 Work pattern.......................................................................................................................................................... 12
3.2.1 UART to CAN mode.................................................................................................................................. 14
3.2.2 SPI to CAN mode...................................................................................................................................... 15
3.2.3 UART configuration mode.......................................................................................................................19
3.2.4 SPI configuration mode........................................................................................................................... 19
3.3 Data conversion mode.......................................................................................................................................19
3.3.1Transparent conversion.............................................................................................................................19
3.3.2 Transparent conversion with identification.........................................................................................28
3.3.3 Custom protocol conversion..................................................................................................................35
4. Product configuration................................................................................................................................................... 40
4.1 Configuration parameter...................................................................................................................................40
4.1.1 Conversion parameter............................................................................................................................ 40
4.1.2 UART parameters.......................................................................................................................................41
4.1.3 SPI parameters........................................................................................................................................... 42
4.1.4 CAN parameters....................................................................................................................................... 42
4.2 Factory default configuration...........................................................................................................................44

第
3
页 共 60 页
4.3 Configure communication protocol....................................................................................................... 46
4.3.1 Write configuration parameters............................................................................................................ 47
4.3.2 Verify product hardware identification............................................................................................... 51
4.3.3 Read configuration parameters........................................................................................................... 53
4.4 Collocation method............................................................................................................................................ 54
4.4.1 MCU configuration mode.......................................................................................................................54
4.4.2 Configuration mode of upper computer........................................................................................... 56
5. Auxiliary development tools........................................................................................................................................ 56
5.1 TD5(3)USPCANCFG configuration software...................................................................................................56
5.2 TD5(3)USPCAN evaluation board.....................................................................................................................58
5.3 Upper computer configuration example.......................................................................................................60
6. Notes of product using..................................................................................................................................................61
7. Disclaimer......................................................................................................................................................................... 61

第
4
页 共 60 页
1.Function introduction
1.1 Summary
TD5(3)USPCAN series isolated UART/SPI to CAN module is a communication module integrating
microprocessor, CAN transceiver, DC-DC isolated power supply and signal isolation. It has the advantages of
high speed, high isolation, low power consumption and multi-protocol conversion function. It can expand
more CAN interfaces through UART/SPI interface when the CAN control resources on the user master control
board are in short supply.
This product has various functions and is easy to embed. Users can embed in devices with UART/SPI
without changing their hardware devices, so that users can get more CAN communication interfaces and
realize convenient data communication between UART/SPI devices and CAN bus.
1.2 Product characteristics
Built-in high-efficiency isolated power supply
Isolation at both ends (3kVDC)
UART baud rate up to 921.6Kbps
SPI rate up to 1.5Mbps
CAN baud rate up to 1Mbps
Support transparent conversion, transparent conversion with identification and custom
protocol conversion.
Support bidirectional data communication between UART/SPI and CAN interface
Operating temperature range: -40℃~ +85℃
The same network can support connecting 110 nodes.
It integrates the functions of isolation and ESD bus protection
1.3 Product model
Product
Power
input
(VDC)
Level
(VDC)
UART rate
(bps)
SPI rate
(bps)
CAN rate
(bps)
Number
of nodes
Package
TD3USPCAN
3.3
3.3
300-921.6k
0-1.5M
5k-1M
110
DIP-24
TD5USPCAN
5
3.3
300-921.6k
0-1.5M
5k-1M
110
DIP-24

第
5
页 共 60 页
1.4 Applications
Charging Station
BMS
Communication
Coal mining industry
Electrical industry
Instrument
Smart homes
2. Hardware description
2.1 Product appearance
The appearance of the product is shown in Figure 2.1.
Figure 2.1 product appearance drawing (TD5USPCAN)
2.2 Pin definition
TD5(3)USPCAN has three communication interfaces, namely SPI interface, UART interface and CAN
interface. Product definition is shown in Figure 2.2. The pin functions are defined in Table 2.1.

第
6
页 共 60 页
Figure 2.2 Pin arrangement
Table 2.1 Pin function (defintion)
Pin
Name
Function
Pin
Name
Function
1
VCC
Input power supply
positive
12
CANH
CANH pin
2
GND
Input power ground
18
SSEL
SPI chip select pin
3
RST
Reset pin
19
CTL0
SPI master control pin 0
4
TXD
UART sending pin
20
INT
Slave feedback pin
5
RXD
UART receiving pin
21
SCK
SPI SCK pin
6
MODE
Mode control pin
22
MOSI
SPI MOSI pin
7
CTL1
SPI master control
pin 1
23
MISO
SPI MISO pin
10
CGND
Isolated output
power ground
24
CFG
Configuration pin
11
CANL
CANL pin

第
7
页 共 60 页
2.3 IO description
Table 2.2 Product Pin Description Table
Pin
Name
Type
Explain
Pin
Name
Type
Explain
1
VCC
Input
--
12
CANH
Input/Output
--
2
GND
Input
--
18
SSEL
Input
5V voltage
tolerance
3
RST
Input
Low-level reset,
supporting
open-drain input
19
CTL0
Input
5V voltage
tolerance
4
TXD
Input
--
20
INT
Output
5
RXD
Input
5V voltage tolerance
21
SCK
Input
5V voltage
tolerance
6
MODE
Input
5V voltage tolerance
22
MOSI
Input
5V voltage
tolerance
7
CTL1
Input
5V voltage tolerance
23
MISO
Output
5V voltage
tolerance
10
CGND
--
--
24
CFG
Input
5V voltage
tolerance
11
CANL
Input/Output
--
2.4 UART to CAN hardware circuit
When using the UART-to-CAN function, it is necessary to connect the MODE pin to low level. The UART of
MCU is connected to the UART interface of TD5(3)USPCAN, and a GPIO is connected to the RST pin. If you
need to configure TD5(3)USPCAN through MCU, you need to connect additional GPIO to the CFG pin. Figure
2.3 and Figure 2.4 are the reference circuits of TD3USPCAN and TD5USPCAN respectively.

第
8
页 共 60 页
Figure 2.3 UART to CAN reference circuit (TD3USPCAN)
Figure 2.4 UART to CAN reference circuit (TD5USPCAN)
2.5 SPI to CAN hardware circuit
When using the SPI-to-CAN function, it is necessary to connect the MODE pin to the high level. The SPI
interface of MCU is connected with the SPI interface of TD5(3)USPCAN. At the same time, MCU needs to
provide the connection between GPIO and RST, INT, CTL0, CTL1 pins to realize the effective monitoring and
control of TD5(3)USPCAN. If TD5(3)USPCAN needs to be configured by MCU, additional GPIO is needed to
connect with the CFG pin. Figure 2.5 and Figure 2.6 are the reference circuits of TD3USPCAN and TD5USPCAN
respectively.

第
9
页 共 60 页
Figure 2.5 TD3USPCAN SPI to CAN hardware reference circuit
Figure 2.6 TD5USPCAN SPI to CAN hardware reference circuit

第
10
页 共 60 页
2.6 Peripheral protection circuit
TD5(3)USPCAN products can be used in various CAN bus occasions, and in harsh environments (such as
high voltage, lightning surge, and other environments), we recommend add protection circuits, which can
absorb the surge that interferes with the products in harsh environments and prevent the products from
being damaged. Figure 2.7 shows recommended peripheral protection circuit. Table 2.3 shows the value of
recommended protection circuit. Please determine whether to add peripheral protection circuit according
to the actual situation.
Figure 2.7 Peripheral protection circuit
Table 2.3 Recommended Parameter Table
Components
Recommended
parameters
Components
Recommended
parameters
R3
1MΩ
R1、R2
2.7Ω/2W
C1
1nF, 2kV
D1、D2
1N4007
T1
ACM2520-301-2
P
D3
SMBJ30CA
GDT
B3D090L
TVS1
TD3USPCAN TVS tube
SMBJ5.0A
Ce manuel convient aux modèles suivants
1
Table des matières
Manuels Matériel informatique populaires d'autres marques

EMC2
EMC2 VNX Series Manuel du propriétaire

Panasonic
Panasonic DV0PM20105 Manuel utilisateur

Mitsubishi Electric
Mitsubishi Electric Q81BD-J61BT11 Manuel utilisateur

Gigabyte
Gigabyte B660M DS3H AX DDR4 Manuel utilisateur

Raidon
Raidon iT2300 Manuel utilisateur

National Instruments
National Instruments PXI-8186 Manuel utilisateur











