EasySync Ltd
CAN-DP Serial to CAN bus DIP Module
User Guide
Document Reference No.: ES_000091
Rev
1.0
Issue Date: 2012-07-12
The EasySYNC CAN-DP Module provides a simple method of connecting CANbus devices to a Serial/UART
interface. The CAN-DP uses the same command set as the EASYSync S1-A-7001, but comes in a 28-pin
0.6” Dual In-Line format for easy integration into OEM designs. This guide covers the following products:
CAN-DP
Serial to CANbus DIP Module
EasySync Ltd
Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow, G41 1HH, United Kingdom
Tel.: +44 (0) 141 418 0181
Fax: + 44 (0) 141 418 0110
Web:
http://www.easysync.co.uk
E-Mail (Support):
support@easysync.co.uk
Neither the whole nor any part of the information contained in, or the product described in this manual, may be adapted or reproduced
in any material or electronic form without the prior written consent of the copyright holder. This product and its documentation are
supplied on an as-is basis and no warranty as to their suitability for any particular purpose is either made or implied. EasySync Ltd will
not accept any claim for damages howsoever arising as a result of use or failure of this product. Your statutory rights are not affected.
This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure of the product
might reasonably be expected to result in personal injury. This document provides preliminary information that may be subject to
change without notice. No freedom to use patents or other intellectual property rights is implied by the publication of this document.
EasySync Ltd, Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow, G41 1HH, United Kingdom. Scotland Registered Number:
SC224924
Copyright © 2012 EasySync Limited
Document Reference No.: ES_000091
CAN-DP Serial to CAN bus DIP
Module
User Guide
Rev 1.0
Clearance No.: ES #
048
1
Introduction ................................................................................... 4
1.1
1.2
1.3
1.4
1.5
1.6
Functional Description .................................................................................. 4
Block Diagram ............................................................................................... 5
Block description ....................................................................................... 5
LED Description ............................................................................................. 7
Features ........................................................................................................ 8
Performance Figures ..................................................................................... 8
Ordering Information .................................................................................... 8
1.2.1
2
Pins and Connections ..................................................................... 9
2.1
2.2
2.3
CAN-DP ......................................................................................................... 9
Example Circuit (RS232) ............................................................................. 12
Example Circuit (TTL / Logic Level) ............................................................ 13
3
4
Firmware Update .......................................................................... 14
Application Programming Interfaces ............................................ 15
4.1
ASCII commands ........................................................................................ 15
Set UART Baud Rate (U) ............................................................................17
Set CAN Channel Timing – simple (S) .........................................................18
Set CAN Channel Timing – advanced (s)......................................................19
Set Acceptance Mask (m) ..........................................................................20
Set Acceptance Filter (M) ..........................................................................21
Enable Time Stamp (Z) .............................................................................22
Open CAN Channel (O)..............................................................................23
Open CAN Channel for Listen Only (L) .........................................................24
Close CAN Channel (C) ..............................................................................25
Echo / Synchronize (E) ..............................................................................26
Transmit Standard CAN Frame – 11-bit ID (t) ..............................................27
Transmit Extended CAN Frame – 29-bit ID (T) .............................................28
Get Status Flags (F) ..................................................................................29
Get Hardware and Firmware Versions (V) ....................................................30
Get Serial Number (N) ..............................................................................31
Reset Microcontroller (R) ...........................................................................32
Prepare Bootloader (B)..............................................................................33
Help (H, h or ?) .....................................................................................................16
4.1.2
4.1.3
4.1.4
4.1.5
4.1.6
4.1.7
4.1.8
4.1.9
4.1.10
4.1.11
4.1.12
4.1.13
4.1.14
4.1.15
4.1.16
4.1.17
4.1.18
5
Electrical details ........................................................................... 34
5.1
5.2
Power Requirements ................................................................................... 34
CANbus ....................................................................................................... 34
©2012 EasySync Ltd.
2
Document Reference No.: ES_000091
CAN-DP Serial to CAN bus DIP
Module
User Guide
Rev 1.0
Clearance No.: ES #
048
5.3
5.4
RS232 Level Signals .................................................................................... 34
TTL Logic Level Signals (Serial lines and LED outputs) ............................... 35
6
7
8
Schematic ..................................................................................... 36
Mechanical Details ........................................................................ 37
Physical Environment Details ....................................................... 38
8.1
8.2
Storage ....................................................................................................... 38
Operating .................................................................................................... 38
9
Environmental Approvals & Declarations ...................................... 39
9.1
9.2
9.3
9.4
9.5
EMI Compatibility ........................................................................................ 39
Safety ......................................................................................................... 39
Environmental ............................................................................................. 39
Reliability .................................................................................................... 39
Import / Export Information ....................................................................... 39
10 Troubleshooting ........................................................................... 40
10.1
10.2
Hardware .................................................................................................... 40
Software ..................................................................................................... 40
Technical Support ................................................................................................. 41
11 Contact Information ..................................................................... 42
Appendix A – References ................................................................... 43
Appendix B - List of Figures and Tables ............................................. 44
Appendix C - Revision History ............................................................ 45
©2012 EasySync Ltd.
3
Document Reference No.: ES_000091
CAN-DP Serial to CAN bus DIP
Module
User Guide
Rev 1.0
Clearance No.: ES #
048
1
Introduction
1.1
Functional Description
The CAN-DP is a Serial to CANbus module which operates at up to 1Mbps on both Serial and CANbus
interfaces.
The module has a DIP (Dual In-line Package) format, allowing it to be used in a standard 28-pin 0.6” IC
socket as part of an OEM design as well as in prototyping boards for initial development.
The integrated electronics include a Microchip PIC with the ECAN controller and a Microchip CAN Bus
transceiver. LEDs on the module give a visual indication of the CANbus status.
Communications are accomplished with ASCII commands to the CAN controller. The ASCII commands
are listed in Section 4.1. The command set is identical to the EasySYNC S1-A-7001, allowing current
designs using that unit to be migrated onto a board-level solution without changing the software.
The CAN-DP requires a power supply with an input voltage range of +6VDC to +15VDC.
The maximum CANbus data rate is 1Mbps. Serial data rates range from 2400bps to 460.8Kbps and
1Mbps.
The CAN-DP can be interfaced to either RS232 or Logic levels on it’s UART interface. The Logic level
interface uses 5V logic levels and can be interfaced to 5V TTL or CMOS devices.
There are two separate sets of Serial interface pins for this purpose, one with RS232 levels (pins 1, 2, 3
and 4 ) and one with TTL levels (pins 19, 20, 21 and 22). The operation is identical in each case except
for the voltage levels. The TTL_EN signal selects between TTL mode and RS232 Mode. Only one interface
may be used at a time, and the TxD, RxD, RTS and CTS pins of the interface which is not being used
must be left un-connected.
Figure 1.1 –CAN-DP Module
©2012 EasySync Ltd.
4
Document Reference No.: ES_000091
CAN-DP Serial to CAN bus DIP
Module
User Guide
Rev 1.0
Clearance No.: ES #
048
1.2
Block Diagram
The block diagram of the CAN-DP is shown below:
TTL Serial
Interface Pins
on DIP Header
PIC18F2680
CANbus
controller
MCP2551
CANbus
Transceiver
CAN Interface
pins on DIP
Header
RS232 Serial
Interface Pins
on DIP Header
RS232 Level
Shifter
Voltage
regulator with
5V0 output
VIN_CAN pin
on DIP Header
TTL_EN Pin on
DIP Header
LED outputs
and 5V0 output
CAN-DP Module
Figure 1.2 – CAN-DP Block Diagram
1.2.1 Block description
RS232 Serial Interface Pins
The RS232 interface uses the TxD_232, RxD_232, RTS_232 and CTS_232 pins on the module pin header.
These pins use RS232 voltage levels and are used to connect to the external serial circuit (for example a
PC serial port) which uses RS232 levels. A ground connection is also required so that the module has a
common ground to the other serial device. These lines can be used in applications which were previously
using the S1-A-7001 interface.
The TTL_EN input must be low or floating in order to enable the RS232 interface. If the TTL_EN input is
high (TTL mode), leave the RS232 Serial Interface Pins un-connected. Please see the TTL_EN section
below.
RS232 Level Shifter
The RS232 level shifter converts the RS232 levels used on the TxD_232, RxD_232, RTS_232 and
CTS_232 pins into suitable 5V logic levels for the PIC microcontroller on the CAN-DP module.
The TTL_EN must be pulled low or floating in order to enable the RS232 transceiver.
TTL_EN Input
This TTL level input is used to enable or disable the RS232 Level Shifter.
When this pin is low, the RS232 Level Shifter is enabled. In this case, the RS232 Serial Interface is used
and the connection to the external serial device should be made through the RS232 Serial Interface Pins.
The TTL Serial Interface pins should be left un-connected. The TTL_EN input can be connected to GND or
can be left floating (due to it’s internal pull-down) to select RS232 mode.
©2012 EasySync Ltd.
5