background image

Pmod CAN Reference Manual 

 

 

Copyright Digilent, Inc. All rights reserved. 

Other product and company names mentioned may be trademarks of their respective owners.

 

Page 

3

 of 

8

 

 

Header J3 

Pin 

Signal 

Description 

CANL 

CAN Low-Level Voltage I/O 

CANH 

CAN High-Level Voltage I/O 

GND 

Power Supply Ground 

 

Jumpers 

Pin 

Signal 

Description 

JP1 

Loaded/ Unloaded 

End of bus terminated with a combined 120Ω impedance/ Do not 

terminate the end of the bus 

JP2 

Loaded/ Unloaded 

Terminate the CAN bus lines with a capacitor to ground/ No termination 

 

1.2  Physical Dimensions 

The pins on the pin header are spaced 100 mil apart. The PCB is 1.8 inches long on the sides parallel to the pins on 
the pin header and 1.4 inches long on the sides perpendicular to the pin header. 

 

Functional Description 

The Pmod CAN utilizes the 

Microchip MCP25625

 to enable CAN communication with a variety of external devices. 

A complete CAN solution with a controller and transceiver can be implemented on a system board by 
communicating with the host board via the 

SPI protocol

 in SPI mode 0 or 3. The two differential lines on the 

transceiver, CANH and CANL, enable balanced differential signaling to eliminate most of the electromagnetic field 
(EMF) and provide high noise immunity within the system. 

2.1  Serial Communication 

The Pmod CAN communicates with the host board via the SPI protocol. By driving and keeping the Chip Select line 
(pin 1) at a logic level low, users may communicate back and forth with the Pmod depending on whether or not 
both sets of data lines are enabled. The embedded chip on the Pmod operates in SPI Mode 0 or 3, with data 
captured on the rising edge of the clock and data transferred on the falling edge of the clock, and a minimum clock 
cycle time of 100 nanoseconds as per Table 7-6 (page 70) of the 

Microchip MCP25625 datasheet

. 

Nine SPI instructions are available to read the status of the receiver, load a transmit buffer, modify bits in a register 
and more. Most of the instruction commands are single byte instructions followed by an address byte. More 
information is available in the Quick Start section as well as Section 5 (page 55) of the MCP25625 datasheet. 

2.2  Register Details 

2.2.1  CANINTE 

The CANINTE register (page 51) enables the generation of interrupts on Pin 7. 

 

 

Summary of Contents for Pmod CAN

Page 1: ...Power Supply Voltage Vcc 2 7 5 5 V High Level Input Voltage RxCAN 2 Vcc 1 V Low Level Input Voltage RxCAN 0 3 0 15 Vcc V High Level Output Voltage TxCAN Vcc 0 7 V Low Level Output Voltage TxCAN 0 6 V Bit Frequency 14 4 1000 kHz The Pmod CAN Standalone CAN 2 0B controller with an integrated CAN transceiver Compatible with ISO 11898 1 ISO 11898 2 and ISO 11898 5 Suitable for automotive applications ...

Page 2: ...rmal mode 0 9 Vcc Parameter Value Units Standby Current 10 μA 1 1 Pinout Table Diagram Header J1 Pin Signal Description 1 N C Not Connected 2 CANL CAN Low Level Voltage I O 3 GND Power Supply Ground 4 N C Not Connected 5 N C Not Connected 6 GND Power Supply Ground 7 CANH CAN High Level Voltage I O 8 N C Not Connected 9 N C Not Connected S1 GND Power Supply Ground S2 GND Power Supply Ground Header ...

Page 3: ... protocol in SPI mode 0 or 3 The two differential lines on the transceiver CANH and CANL enable balanced differential signaling to eliminate most of the electromagnetic field EMF and provide high noise immunity within the system 2 1 Serial Communication The Pmod CAN communicates with the host board via the SPI protocol By driving and keeping the Chip Select line pin 1 at a logic level low users ma...

Page 4: ...sabled This is the default value on power up or reset 2 2 2 CANINTF The CANINTF register page 51 holds the flags of all the interrupts that are enabled through the CANINTE register If an interrupt flag is set it must be cleared by the system board to reset the interrupt condition CANINTF 0x2C Bit Name Bit Number Bit Description Bit Values Functional Description MERRF 7 Message Error Interrupt Flag...

Page 5: ... Flag Code Bit 0 0 See the Interrupt Flag Code Bit Table 0 Unimplemented 0 Unimplemented read as 0 This is the default value on power up or reset 2 2 4 Operation Mode BitTable Operation Mode Bit Table Bit values for Operation Mode bits 2 1 0 Mode 0 0 0 Device is in Normal Operation Mode 0 0 1 Device is in Sleep Mode 0 1 0 Device is in Loopback Mode 0 1 1 Device is in Listen Only Mode 1 0 0 Device ...

Page 6: ...0 through 0x5D to a value of 0x00 This can be done for each register by performing the following steps 2 Send a write SPI command 0x02 3 Send the register address of interest 4 Send the value to be written 0x00 4 Set the CAN mode for any message type 1 Send modify register SPI command 0x05 2 Send the address of the control RXB0CNTRL 0x60 3 Send a mask to get things prepared 0x64 4 Send the actual ...

Page 7: ...end a Request To Send SPI command for one or more of the three registers of interest Transmit buffer 0 TXB0 uses 0x81 Transmit buffer 1 TXB1 uses 0x82 Transmit buffer 2 TXB2 uses 0x84 Multiple transmit buffers can be simultaneously primed by OR ing the SPI commands Note that this command does not actually initiate a message transmission The MCP25625 still internally goes through arbitration on the...

Page 8: ... 8 Timing diagrams from page 58 of the MCP25625 datasheet for the Pmod CAN for data coming in and out through SPI are provided below The timing values for the parameters shown in the images can be found in Table 7 6 page 70 of the MCP25625 datasheet Figure 1 SPI input timing diagram from MCP25625 datasheet Figure 1 SPI output timing diagram from MCP25625 datasheet ...

Page 9: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Digilent 410 353 ...

Reviews: