Four Channel CAN Module USER’S MANUAL retired ACROMAG INCORPORATED 30765 South Wixom Road Wixom, MI 48393-7037 U.S.A. Tel: (248) 295-0310 Email: solutions@acromag.com Copyright 2018, Acromag, Inc., Printed in the USA. Data and specifications are subject to change without notice. 8501100D...
AcroPack Series AP560 CAN Bus Interface Module Table of Contents AcroPack Series AP560 USER’S MANUAL GENERAL INFORMATION Intended Audience ..........................5 Preface ..............................5 Trademark, Trade Name and Copyright Information Radio Frequency Interference Statement Environmental Protection Statement AP560 OVERVIEW ............................ 5 Ordering Information ..........................
Page 3
AcroPack Series AP560 CAN Bus Interface Module HI-3111 MODES OF OPERATION ......................24 Initialization Mode Normal Mode Loopback Mode Monitor Mode Sleep Mode CAN PROTOCOL OVERVIEW........................25 BIT ENCODING ............................25 Message Frames ............................ 26 Standard Data Frame Extended Data Frame Remote Frame Error Frame Overload Frame...
Page 4
AcroPack Series AP560 CAN Bus Interface Module Command Summary HI-3111 Transmit Buffer ........................55 MESSAGE TRANSMISSION SEQUENCE LOADING THE TRANSMIT FIFO Transmit History FIFO Single Frame Transmission HI-3111 Receive Buffers and Frame Acceptance Filters ................ 59 Receive Buffers Filter and Mask ID Format Reading the Receive Buffers Programming Interrupts Interrupt Programming Example...
Preface The information contained in this manual is subject to change without notice, and Acromag, Inc. (Acromag) does not guarantee its accuracy. Acromag makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.
AcroPack Series AP560 CAN Bus Interface Module Ordering Information The AcroPack ordering options are given in the following table: Model Operating Temperature Range AP560E-ISO-LF -40 to +71C 1. Applications requiring operating temperatures of 65°C to 71°C will require purchase of AP-CC-01 AcroPack Conduction Cool Kit (See APPENDIX for installation instructions) with a minimum airflow of 400LFM.
Endpoint. Signal Interface Products This AcroPack module will mate directly to all Acromag AcroPack carriers. Once installed on the carrier, the module is accessed via a front panel connector. The following cable is available for AcroPack carriers with the 68- pin CHAMP connector: Model 5028-609 adapter cable, 7 inches, 68-pin CHAMP 0.8mm to four...
It is important that the user employ satisfactory overall system design. It is understood and agreed by the Buyer and Acromag that this is the Buyer's responsibility. WARNING: This board utilizes static sensitive components and should only be handled at a static-safe workstation.
AcroPack Series AP560 CAN Bus Interface Module For repairs to a product damaged in shipment, refer to the Acromag Service Policy to obtain return instructions. It is suggested that salvageable shipping cartons and packing material be saved for future use in the event the product must be shipped.
Page 10
AcroPack Series AP560 CAN Bus Interface Module Typically, the CAN bus is a twisted pair of wires with a characteristic impedance of 120 ohms. Each end of the bus is terminated with 120 ohm resistors in compliance with the standard to minimize signal reflections on the bus.
Page 11
AcroPack Series AP560 CAN Bus Interface Module 68 Pin 50 Pin Ribbon Module Field I/O Signal Champ Carrier Champ Carrier Connector Carrier Connector Number Connector Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation CAN1H CAN1L Reserved/isolation Reserved/isolation Reserved/isolation RTN1 Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation...
Page 12
AcroPack Series AP560 CAN Bus Interface Module 68 Pin 50 Pin Ribbon Module Field I/O Signal Champ Carrier Champ Carrier Connector Carrier Connector Number Connector Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation CAN2H CAN2L Reserved/isolation Reserved/isolation Reserved/isolation RTN2 Reserved/isolation Reserved/isolation...
Page 13
AcroPack Series AP560 CAN Bus Interface Module 68 Pin 50 Pin Ribbon Module Field I/O Signal Champ Carrier Champ Carrier Connector Carrier Connector Number Connector Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation Reserved/isolation CAN3H CAN3L Reserved/isolation Reserved/isolation Reserved/isolation RTN3 Reserved/isolation Reserved/isolation Note: 1.
AcroPack Series AP560 CAN Bus Interface Module 2. APCe7020E-LF is an example of a carrier that uses the 50-pin Champ connector. See image of carrier. 3. The APCe7040E-LF is an example of a carrier that uses the 68-pin Champ connector. See image of carrier below. On these carriers, pins 26 thru 34 and 60 thru 68 are not connected.
AcroPack Series AP560 CAN Bus Interface Module This Acromag AP560 is a PCI Express Base Specification, Revision 2.1compliant AcroPack module. The carrier/CPU connects a PCIe bus to the AcroPack module. The PCI bus is defined to address three distinct address spaces: I/O, memory, and configuration space.
AcroPack Series AP560 CAN Bus Interface Module Location Register, (Read Only) – (Base + 04H) This read-only register is used identify the module’s plugin location in a system. Table 6 Location Register Bit(s) FUNCTION Module Site Location Bits. These bits identify the location on the carrier of the AP module.
Page 20
AcroPack Series AP560 CAN Bus Interface Module Table 8 Interrupt Pending Register FUNCTION Channel 0 CAN controller interrupt pending - This bit can be read to determine the interrupt pending status of the Channel 0 CAN controller. When this bit is logic “1” an interrupt is pending, and will cause an interrupt request if bit-0 of the Board Interrupt Register is set.
AcroPack Series AP560 CAN Bus Interface Module Channel x Command Register, (Read/Write) - (BAR0 + Chan X base + 00H) A write to this register triggers the serial transmission of the SPI instruction from the FPGA to the HI3111 CAN controller. Any additional data bytes required for the selected instruction are also transmitted.
AcroPack Series AP560 CAN Bus Interface Module Channel x Output Message Registers, (Read/Write) - (BAR0 + Chan X base + 10H thru 1CH) Write the data bytes to these registers prior to writing the command register. The function of each of the control register bits are described in Table 13 Output Message Register Table 13 Output Message Registers Bits...
AcroPack Series AP560 CAN Bus Interface Module The 10-bits digitized and output from the ADC can be converted to temperature by using the following equation. ADCcode − Temperatur 1024 The 10-bits digitized and output from the ADC can be converted to voltage by using the following equation.
AcroPack Series AP560 CAN Bus Interface Module Table 16 FPGA Voltage and Temperature Range Minimum Typical Maximum Vccint 0.95 1.05 Vccaux 1.71 1.89 Recommended -40°C 50-60°C 100°C Operating Temperature Range Notes: 1. Absolute maximum junction temperature 125°C Firmware Revision Register (Read Only) - (Base + 200H) This is a read only register.
AcroPack Series AP560 CAN Bus Interface Module Acceptance filters can be set up to accept or reject specific messages into the FIFO and all interrupt flags are set as required in the usual way. While in this mode, any bus activity is ignored. Loopback is activated by programming the MODE<2:0>...
AcroPack Series AP560 CAN Bus Interface Module This means that a bit stream of “1”s or “0”s appears continuous on the bus. A logic “0” is called a dominant bit and a logic “1” is called a recessive bit. Bit stuffing is used to ensure frequent enough transitions occur to achieve synchronization.
Page 27
AcroPack Series AP560 CAN Bus Interface Module The data field is followed by the 16-bit Cyclic Redundancy Check (CRC) field. This is used to check transmission errors by computing a 15-bit CRC sequence from the previous bit stream (SOF, arbitration field, control field and data field, excluding stuff bits).
Page 28
AcroPack Series AP560 CAN Bus Interface Module Figure 2 Standard Data Frame - 28 -...
AcroPack Series AP560 CAN Bus Interface Module Extended Data Frame The extended data frame is shown in Figure 3. In this frame format, SOF is followed by a 32-bit arbitration field consisting of a 29-bit identifier, ID28 - ID0. The first 11 most significant bits of the ID are known as the base identifier.
Page 30
AcroPack Series AP560 CAN Bus Interface Module Figure 3 Extended Data Frame - 30 -...
AcroPack Series AP560 CAN Bus Interface Module Remote Frame The remote frame is shown in Figure 4. The function of remote frames is to allow a receiver which periodically receives certain types of data to request that data from the transmitting source. The identifier of the remote frame must be identical to the identifier of the requested transmitting node’s data frame and the data length code (DLC) should be equal to the DLC of the requested data.
Page 32
AcroPack Series AP560 CAN Bus Interface Module Figure 4 Remote Frame - 32 -...
AcroPack Series AP560 CAN Bus Interface Module Error Frame The error frame is shown in Figure 5. Any node detecting an error generates an error frame. The error frame consists of two fields, the error flag field and the error delimiter. The type of error flag field depends on the error status of the node, error-active or error-passive (see below).
Page 34
AcroPack Series AP560 CAN Bus Interface Module Figure 5 Error Frame - 34 -...
AcroPack Series AP560 CAN Bus Interface Module Overload Frame The overload frame is shown in Figure 6. It has the same format as the active error frame, consisting of an overload flag field and an overload delimiter. The overload flag consists of 6 consecutive dominant bits. This condition violates the rule of bit-stuffing and causes all other nodes on the bus to generate echo flags, similar to the active error flag echoes.
AcroPack Series AP560 CAN Bus Interface Module Figure 6 Overload Frame BIT WISE ARBITRATION The CAN standard resolves data contention on the bus using a scheme called Carrier Sense Multiple Access/Collision Detection-Carrier Resolution (CSMA/CDCR). Carrier Sense: Each node waits for a period without bus activity (bus idle state) before attempting transmission.
Page 37
AcroPack Series AP560 CAN Bus Interface Module Collision Detection: Collisions occur if two nodes attempt to transmit at the same time. Collision Resolution: Collisions are resolved by bitwise arbitration. Highest priority messages (lowest binary identifiers) are sent first without delay and lower-priority messages are automatically re-transmitted later.
AcroPack Series AP560 CAN Bus Interface Module BIT TIMING The CAN protocol supports a broad range of bit rates, from a few kHz up to 1MHz (Note: the minimum bit rate of the HI-3111 is limited to 40kHz by the permanent dominant timeout protection of the transceiver).
AcroPack Series AP560 CAN Bus Interface Module Figure 8 CAN Bit Time Phase Buffer Segment 1 and Phase Buffer Segment 2 (Phase Seg1 and Phase Seg2) The phase buffer segments are used to compensate for phase errors on the bus. Phase Seg1 can be lengthened or Phase Seg2 can be shortened during the re-synchronization bit period automatically by the HI-3111 so that the bit time can be adjusted to account for phase errors.
AcroPack Series AP560 CAN Bus Interface Module Phase Errors (e) If a bit edge occurs within the Sync Seg as expected, there is no phase error (e = 0). However, if an edge occurs outside Sync Seg, a phase error is deemed to have occurred.
AcroPack Series AP560 CAN Bus Interface Module REGISTERS Each of the four HI3111 CAN controllers on the AP560 has fourteen register for control and status. The addresses listed in the following table are offsets from each channels’ base address. This section describes the HI-3111 registers. All register bits are active high. Unless otherwise indicated, all registers are reset in software to the logic zero condition after Master Reset: REGISTER R/W...
AcroPack Series AP560 CAN Bus Interface Module Power-On-Reset Following power-on, the HI-3111 will automatically perform a Master Reset and return all registers to the default state. Following reset, the device will default to Initialization Mode to allow programming of Control and Bit Timing Registers (see following sections).
Page 43
AcroPack Series AP560 CAN Bus Interface Module 000 - Normal Mode. Normal CAN operation. 001 - Loopback Mode. The transceiver digital input is fed back to the receiver without disturbing the bus. This mode can be used for test purposes, allowing the HI-3111 to receive its own messages.
Page 44
AcroPack Series AP560 CAN Bus Interface Module Control Register 1 Table 18 CTRL1 (Write 0x16, Read 0xD4) FUNCTION Not used OSCOFF – Oscillator off This bit should be set to a one since the FPGA on the AP560 provides the clock signal. 0 –...
AcroPack Series AP560 CAN Bus Interface Module BIT Timing Register 0 BTR0 defines the value of the Re-synchronization Jump Width (SJW) and the Baud Rate Prescaler (BRP). This register can be read anytime and written only in init mode (MODE<2:0> bits set to <1xx> in the CTRL0 register). Table 19 BTR0 (Write 0x18, Read 0xD6) FUNCTION BRP 5:0 –...
Page 46
AcroPack Series AP560 CAN Bus Interface Module BIT Timing Register 1 BTR1 configures the CAN protocol bit timing segments in terms of time quanta (Tq) and sets the number of sampling points. This register can be read anytime and written only in init mode (MODE<2:0> bits set to <1xx> in the CTRL0 register).
AcroPack Series AP560 CAN Bus Interface Module Transmit Error Counter Register The TEC register reflects the current value of the CAN Transmit Error Counter. This register can be written for test purposes. Table 21 TEC (Write 0x26, Read 0xEC) FUNCTION TEC 7:0 –...
AcroPack Series AP560 CAN Bus Interface Module Message Status Register This register reflects transmission status and which filters were responsible for filtering valid received messages. It is read-only. Table 23 MESSTAT (Read only, 0xDA) FUNCTION TSTAT 1:0 – Transmission Status bits <1:0> These bits reflect the transmission status.
AcroPack Series AP560 CAN Bus Interface Module Error Register The ERR register indicates CAN bus status and protocol errors. It is read only. All bits default to 0 at power up and maintain their status following reset. Bits 4:0 are reset following a host read. Table 24 ERR (Read only, 0xDC) FUNCTION STUFERR –...
AcroPack Series AP560 CAN Bus Interface Module Interrupt Flag Register The Interrupt Flag Register INTF bits will be set by HI-3111 when the corresponding related events described below occur. If individual bits in the Interrupt Enable Register INTE are set, the INT pin will be latched high when any of the corresponding INTF bits are set.
AcroPack Series AP560 CAN Bus Interface Module Interrupt Enable Register Setting bits in the Interrupt Enable Register causes a hardware interrupt to be generated at the INT pin when the corresponding bits in the Interrupt Flag Register are set by HI-3111 because of the related events described below. Table 26 INTF (Write 0x1C, Read 0xE4) FUNCTION F0MESSIE –...
AcroPack Series AP560 CAN Bus Interface Module Status Flag Register The Status Flag Register STATF bits will be set by HI-3111 when the corresponding related events described below occur. Unlike the Interrupt Flag Register, reading this register will NOT clear all bits. These bits are reset automatically by HI-3111 when the described status for each bit changes (e.g.
AcroPack Series AP560 CAN Bus Interface Module Free Running Timer A single command reads the16-bit timer value in two data bytes, TIMERUB and TIMERLB. TIMERUB is read first. Table 28 TIMERUB, TIMERLB (Read-only 0xFA) FUNCTION T 15:8 - Free Running Timer Upper Byte, bits <15:8>. The 16-bit free-running timer starts counting from zero following RESET.
Page 54
AcroPack Series AP560 CAN Bus Interface Module Read Commands Code Data bytes Description Read Mask 6 ID 0xC2 (see Table 34) Read Mask 7 ID 0xC4 (see Table 34) Read Control Register 0 0xD2 (see Control Register 0) Read Control Register 1 0xD4 (see Control Register 1) Read Bit Timing Register 0...
AcroPack Series AP560 CAN Bus Interface Module Read Commands Code Data bytes Description Write Filter 4 ID 0x6A (see Table 33) Write Filter 5 ID 0x6C (see Table 33) Write Filter 6 ID 0x6E (see Table 33) Write Filter 7 ID 0x72 (see Table 33) Write Mask 0 ID...
AcroPack Series AP560 CAN Bus Interface Module b) The message is not successful due to lost arbitration or message error. Lost Arbitration: If arbitration is lost, the current message stays in the Transmit Buffer for re- transmission. Message error: Flag BUSERR is set in the Interrupt Flag Register.
AcroPack Series AP560 CAN Bus Interface Module Figure 9 Simplified Transmission Flow Diagram Single Frame Transmission For single frame transmission, use TX1M, bit 6, Register CTRL1. When using TX1M for single frame transmission, TXEN should be low. Following a successful transmission, TXEN should be reset and the FIFO re-loaded with the next message.
Page 58
AcroPack Series AP560 CAN Bus Interface Module Table 30 Standard Frame Message Offset Bit Description Address Byte Content 0x10 Message Tag 0x11 ID28 to ID21 ID28 ID27 ID26 ID25 ID24 ID23 ID22 ID21 0x12 ID20 to ID18, RTR, ID20 ID19 ID18 0x13 r0, DLC3 to DLC0...
AcroPack Series AP560 CAN Bus Interface Module HI-3111 Receive Buffers and Frame Acceptance Filters Receive Buffers The HI-3111 has an extremely flexible receive buffer and ID filter scheme. Acceptance filters and masks may only be programmed when the device is in Initialization Mode.
Page 60
AcroPack Series AP560 CAN Bus Interface Module FILHIT2:0 bits. As can be seen in Table 35, bits specific to extended frames will be read as zeros for standard frames. If the received data does not contain an 8-byte payload (8 data bytes), the HI-3111 will pad the remaining data bytes with zeros.
Page 61
AcroPack Series AP560 CAN Bus Interface Module Table 33 Filter ID Format Offset Bit Description Address Byte Content 0x10 FID28 to FID21 FID28 FID27 FID26 FID25 FID24 FID23 FID22 FID21 0x11 FID20 to FID18, RTR, IDE, FID17 to FID15 (Note: FID17 to FID15 should be written as zeroes for Standard ID)
Page 62
AcroPack Series AP560 CAN Bus Interface Module Table 35 Receive Data Format Offset Bit Description Address Byte Content 0x20 Message Tag (Note This byte does not apply to Temporary Receive Buffer) FILHIT2 FILHIT1 FILHIT0 0x21 Time Tag Upper Byte (Note: This byte only applies to time tag instructions;...
AcroPack Series AP560 CAN Bus Interface Module Programming Interrupts Interrupts can be enabled for generation by the CAN controllers or events occurring on each of the CAN channels. Interrupts generated by the AP560 use interrupt request line INTA#. Interrupt Programming Example 1.
AcroPack Series AP560 CAN Bus Interface Module 10. If the AP560’s interrupt stimulus has been removed, the interrupt cycle is completed and the board holds the INTA# inactive. 3. THEORY OF OPERATION This section contains information regarding the hardware of the AP560. A description of the basic functionality of the circuitry used on the board is also provided.
AcroPack Series AP560 CAN Bus Interface Module CAN Transceiver The ADM3053 CAN transceivers create a fully isolated interface between the CAN controllers and the physical layer bus. These devices have current limiting and thermal shutdown features to protect against output short circuits.
SERVICE AND REPAIR ASSISTANCE Surface-Mounted Technology (SMT) boards are generally difficult to repair. It is highly recommended that a non-functioning board be returned to Acromag for repair. The board can be easily damaged unless special SMT repair and service tools are used. Further, Acromag has automated test equipment that thoroughly checks the performance of each board.
AcroPack Series AP560 CAN Bus Interface Module POWER Power Supply Idle Single Port +3.3V 480 mA 480 mA 500 mA 66 mA 180 mA 680 mA Note 1: Idle current draw was measured with no external loopbacks or termination installed and no active communication on any port. Note 2: Measured with one port transmitting at 1Mbps and other three ports receiving.
AcroPack Series AP560 CAN Bus Interface Module Reliability Prediction MTBF (Mean Time Between Failure): MTBF in hours using MIL-HDBK-217F, FN2. Per MIL-HDBK-217, Ground Benign, Controlled, G Temperature MTBF (Hours) MTBF (Years) Failure Rate (FIT 25°C 2,569,129 293.3 389.2 40°C 1,461,758 166.9 684.1 FIT is Failures in 10...
AcroPack Series AP560 CAN Bus Interface Module 6. APPENDIX AP-CC-01 Heatsink Kit Installation Hardware Bottom view Top view AP-CC-01 Heat Sink Kit This example will show how to install the AP-CC-01 Heatsink kit with an APCe7020 carrier. - 69 -...
Page 70
AcroPack Series AP560 CAN Bus Interface Module 1. Install two standoffs and secure with two screws. 2. Install the AcroPack module. 3. Install the Heatsink and secure with 4 screws. - 70 -...
Page 71
AcroPack Series AP560 CAN Bus Interface Module 4. AP-CC-01 Installation is complete. Note: Make sure the thermal pad is contacting the FPGA IC. - 71 -...
AcroPack Series AP560 CAN Bus Interface Module 7. CERTIFICATE OF VOLATILITY Acromag Model Manufacturer: AP560E-LF Acromag, Inc. 30765 Wixom Rd Wixom, MI 48393 Volatile Memory Does this product contain Volatile memory (i.e. Memory of whose contents are lost when power is removed) ■...
AcroPack Series AP560 CAN Bus Interface Module 8. REVISION HISTORY The revision history for this document is summarized in the table below. Release Date Version EGR/DOC Description of Revision 28 MAR 2018 ENZ/MJO Initial Release. 08 AUG 2018 ENZ/MJO Added power requirements. Edited physical specifications and power requirements.
Need help?
Do you have a question about the AcroPack AP560 and is the answer not in the manual?
Questions and answers