Home

Janus-MM-4LP User Manual - Diamond Systems Corporation

image

Contents

1. Compiling CAN Application using CANLib Library Export the Library path using below command export LD_LIBRARY_PATH LD_LIBRARY_PATH path to CANLib To compile the application use the below command g can_app c ICAN L path to CANLib o can app Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 29 Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 30 10 SPECIFICATIONS General Number of ports Data rate Controller Transceiver Isolation Frames Message queues Receive filters Termination Digital I O Logic levels Pull up pull down 2 or 4 CAN 2 0B ports 1Mbps FPGA based ADM3053 isolation transceiver 500V port to host and port to port Standard 11 bit identifier Extended 29 bit identifier Expanded TX and RX message queues 16 8 byte transmit message queues 31 8 byte receive message queues 16 Jumper selectable biased split termination 16 programmable digital I O lines arranged in 2 8 bit ports 3 3V or 5V jumper selectable Jumper selectable Direction control Software programmable Host interface PCI or ISA self selecting OS support Mechanical Environmental Input power Windows Embedded 7 and Linux Ubuntu 12 04LTS APIs and monitor programs included 5VDC 5 Power consumption Operating temperature Operating humidity Shock Vibration MTBF Dimensions Weight RoHS W at 5VDC 40 to 85 C 40 F to 185 F 5 to 95 non co
2. 28 9 Digital 1 0 COnfiguration TEE 30 UY Be ELLE sete cc cetesiseenceenecetde cede rusenneastoestaeeddeeudssbcestoecysesuiysliseseececenuoseuissedecrennnorets 31 Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 2 DIAMOND SZ st 1 IMPORTANT SAFE HANDLING INFORMATION WARNING ESD Sensitive Electronic Equipment Observe ESD safe handling procedures when working with this product Always use this product in a properly grounded work area and wear appropriate ESD preventive clothing and or accessories Always store this product in ESD protective packaging when not in use Safe Handling Precautions This board contains a high density connector with many connections to sensitive electronic components This creates many opportunities for accidental damage during handling installation and connection to other equipment The list here describes common causes of failure found on boards returned to Diamond Systems for repair This information is provided as a source of advice to help you prevent damaging your Diamond or any vendor s embedded computer boards ESD damage This type of damage is usually almost impossible to detect because there is no visual sign of failure or damage The symptom is that the board eventually simply stops working because some component becomes defective Usually the failure can be identified and the chip can be replaced To prevent ESD damage always follow proper ESD prevention practices wh
3. Connection CAN2 aud Rate HODE msg Type GEE connected Save Log Clear Log Write Message w ten CR Data Hex aa a aA aana Ee in in mee O seus ois DIAMOND CAN Monitor 2014 Diamond Systems Corp Software Version 1 0 4 E ei Le Aber www diamondsystems com Figure 9 Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 25 8 PORT CONFIGUARTION AND MANAGEMENT CANLib library provides the set of APIs to configure and manage the CAN ports The CANLib library can be used to build the CAN application It is a shared library built on top of Linux platform To compile the CANLib shared library use the below command cd CANLib make All the CAN APIs prototypes are defined in the can h file This file is located in the CANLib directory Include the can h file in the application to use all these APIs 8 1 API to Configure and Manage CAN ports init_canO amp init_can1 These function will initialize the CAN 0 amp CAN 1 ports respectively Both these functions will return the CAN file descriptor fd The return value of these functions should be retained for all subsequent operations Its prototypes are defined in the can h file Declare two CAN file descriptors and retains its return values include can h int canO_fd int can1_fd can0_fd init_canO if can0_fd lt 0 printf Error while initializing the CAN 0 n exit 0 can1_fd init_ca
4. connector J2 PC 104 bus 16 bit ISA connector J3 PC 104 Plus PCI connector J4 Digital I O connector J5 CAN1 connector J6 CAN2 connector J7 CANS connector J8 CAN4 connector J9 Termination jumper block for CAN3 J10 Termination jumper block for CAN4 J13 ISA IRQ jumper block J14 Configuration jumper block J15 Termination jumper block for CAN1 J16 Termination jumper block for CAN2 Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 12 5 CONNECTOR PINOUT AND PIN DESCRIPTION 5 1 CAN J5 J6 J7 J8 Each of the four CAN ports has its own 4 pin latching connector with the same pinout as shown below These connectors are located on the right side of the board CAN1 J5 is the topmost connector and CAN4 J8 is the bottommost connector Ground Iso CANL CAN H Ground Iso AJOJIN Connector Part Number Description JST SM04B GHS TB 4 pos 1 25mm right angle latching SMD 5 2 Digital UO J4 The sixteen digital I O lines are brought out on a 20 pin pin header J4 with the pinout shown below J4 DIO A0 1 2 DIOA1 DIOA2 3 4 DIOAS3 DIOA4 5 6 DIOAS DIOA6 7 8 DIOA7 DIOBO 9 10 DIO B1 DIO B2 11 12 DIO B3 DIO B4 13 14 DIO B5 DIO B6 15 16 DIO B7 V fused 17 18 V fused Ground 19 20 Ground Connector Part Number Description OUPIIN 2112 2210G00R 2mm pitch dual row right angle pin header with ejecto
5. is connected to the pull up or pull down option which is selected by the jumper R and controlled by the FPGA All 5V GND pins are shorted and connected to a 5V supply which is enabled by R The default is jumpers installed on positions IRQ7 and R which enables the pull down resistors J13 Jumper Information O O IRQ2 O O IRQ3 O O IRQ4 O O IRQ5 O O IRQ6 lo lol IRQ7 Jumper installed default O O IRQ10 O O IRQ11 O O IRQ12 O O IRQ14 O O IRQ15 R Jumper installed default Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 17 6 3 Configuration Jumper J14 Jumper block J14 has the following configuration options J14 Functional Description olo SV 5V digital I O logic level 3V3 3 3V digital I O logic level olo PU Digital I O lines pull up 0 ol PD Digital I O lines pull down Al PCI slot select A1 Oo lo AO PCI slot select AO olo PCI ISA PCI select o lo M2 CAN base address M2 Ollo M1 CAN base address M1 Olo MO CAN base address MO olo 109 DIO base address 109 o lo 108 DIO base address 108 olol 107 DIO base address 107 106 DIO base address 106 olo 105 DIO base address 105 Oo Oo CH Factory use only olo C1 Factory use only Olo co Factory use only PCI Slot Select Table AO A1 PCI Slot 0 0 00 1 0 10 0 1 01 default 1 1 11 DIAMON
6. the PCI CAN utility in Step 5 export LD_LIBRARY_PATH LD_LIBRARY_PATH path to CANLib Step 5 Start the PCI CAN Utility using the command below from the CAN_Monitor directory where the zip file is extracted cd CAN_monitor JCAN The above command will open the CAN interface utility Note To start CAN utility in the future follow Steps 3 to 5 only Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 20 amp PIAMOND 7 2 Setting the Baud Rate Using the CAN interface utility software the baud rate for each port can be selected On the desired CAN port select the baud rate from the Baud Rate drop down menu After selecting the desired baud rate press Connect to connect with specified baud rate as shown in Figure 5 File CANT CAN2 7 Select Baud rate Connection CAN1 Tia Baud Rate es I Msg Type iD 6000 Len RB Data Hex Senna fs amp a Connection CAN2 Baud Rate DEES Msg Type Standard Disconnected Save Log Clear Log CAN 2 Messages Write Message id 60000000 Len 8 Data Hex Gennes amp BE DIAMOND CAN Monitor 2014 Diamond Systems Corp Software Version 1 0 4 s r Le de www diamondsystems com Figure 5 To select the Baud Rate To change the baud rate click on Disconnect and select a new baud rate Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 21 DIAMOND 7 3 Setting the CAN ID and Messa
7. 01 x 0x0300 default 1 1 0 1 X 0x0340 S Y DIAMOND S T Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 19 7 DRIVER INSTALLATION 7 1 Installing the Software The following steps are used to install the CAN interface utility software Step 1 Unzip the PCI CAN Interface zip file on the enclosed CD using the below commands Unzip PCI CAN Interface zip A pci can directory will be created where the zip file is extracted The pci can directory contains the following files Is l 1 CANLib CAN Library 2 pci fpga ko PCI CAN Interface driver 3 CAN Monitor PCI CAN CAN Monitor utility 4 qt opensource linux x86 5 2 1 run_ Qt Installer which is required by the PCI CAN Interface utility Step 2 Install the Qt shared libraries using the Qt Installer Execute the command below and follow the Qt Installer instructions Use the command below to install the Qt shared libraries Install Qt at the default locations cd pci_can qt opensource linux x86 5 2 1 run Note The Qt shared libraries should be installed only once Step 3 Load the PCI CAN interface driver using the command below from the pcifpga_driver directory where the zip file is extracted cd pcifpga_driver insmod pci_fpga ko Step 4 PCI CAN Utility is based on the CANLib library Linux expects the Library path to be exported before using it Use the below command to export the Library path before starting
8. 4 A15 B15 A16 B16 A17 B17 A18 B18 A19 B19 A20 B20 A21 B21 A22 B22 A23 B23 A24 B24 A25 B25 A26 B26 A27 B27 A28 B28 A29 B29 A30 B30 A31 B31 A32 B32 J1 PC 104 8 bit bus connector Ground RESET 5V IRQ9 5V DRQ2 12V OWS 12V Key SMEMW SMEMR IOW IOR DACK3 DRQ3 DACK1 DRQ1 Refresh SYSCLK IRQ7 IRQ6 IRQ5 IRQ4 IRQ3 DACK2 TC BALE 5V OSC Ground Ground Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 14 DIAMOND L I S L SA PC 104 J3 The board contains a non stack through short pin PC 104 connector J3 on the top side in the standard position as described by the PC 104 Plus specification J3 GT J EC GNDVS OV KEY mme roy sov apie eno ND S N ND AD18 GND ND N V D Pin 8 8 ES G Connector Type 30 x 4 pin 2mm pitch with solder tails Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 15 6 JUMPER CONFIGURATION The module provides the following jumper configurations All jumpers are implemented in 2mm pitch jumper blocks The following functionality can be selected by jumpers e PCI or ISA bus interface e PCI slot selection e CAN circuit memory base addresses in ISA mode e DIO circuit I O base address in ISA mode e VIO 3 3V 5V selection for digital UO line
9. 5 x 3 775 90mm x 96mm without wings 40C to 85 C ambient operating temperature Power input requirements 5VDC 5 PCI 3 3V and ISA 5V host interfaces MIL STD 202G shock and vibration compatible Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 4 3 FUNCTIONAL OVERVIEW 3 1 Functional Block Diagram Figure 1 shows the block diagram for Janus MM 4LP PC 104 Plus Quad CAN Module CAN port 1 ADM3053 ADM3053 ADM3053 ADM3053 CAN TRANSCEIVER CAN TRANSCEIVER CAN TRANSCEIVER CAN TRANSCEIVER WITH ISOLATION WITH ISOLATION WITH ISOLATION WITH ISOLATION SYSTEM BUS PC 104 plus Connector Figure 1 Block Diagram Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 5 DIAMON Y STEMS 3 2 Mechanical Board Drawing Figure 2 shows the mechanical drawing for Janus MM 4LP The module adheres to the PC 104 Plus standard XY LOCATIONS 3375 3575 MOUNTING HOLE OIA 120MI OG ODID IDDIE CT 000000000000 XY LOCATIONS 3350 200 Figure 2 Mechanical Drawing Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 6 DIAMOND 3 st 3 3 Key Subsystems 3 3 1 CAN Controllers The module has two or four CANbus 2 0 controllers implemented as FPGA cores inside a Xilinx Artix 7 FPGA The FPGA core provides the following key features e Conforms to the ISO 11898 1 CAN 2 0A and CAN 2 0B standards e Supports both standard 11 bit identifier and extended 29 bit id
10. CAN ID if the msgType is MSG STANDARD then it should be 11 Bit CAN Message ID if the msgType is MSG_EXTENDED then it should be 29 Bit CAN Message ID len 4 CAN Transmit Data Length data CAN message data data 0 0x1A data 1 OxAB data 2 0x22 data 3 0x4D ret val can tx can0 fd msgType can id dlc data if ret val lt 0 printf Error while transmitting the CAN message n close can1_fd exit 0 The above sample code will transmit the CAN Standard message with CAN ID 0x12 of data length 4 and message data 0x1A OxAB 0x22 0x4D CAN Receive Prototype int can rx int can_fd unsigned char msgType unsigned char rv data unsigned int can id unsigned char can msg len Pass the appropriate pointers for calling the can rx function if can rx can0 fd amp msgType data Scan id amp dlc If msgType MSG_STANDARD received message is CAN Standard Message else if msgType MSG_EXTENDED received message is CAN Extended Message dic Received CAN Data Length can id Will contain the CAN Message ID Data of dic length printf ID x DLC d Data can id dlc for i 0 i lt dlc i printf x datal i printf n Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 28 EISE s Y ST The sample example programs for both transmit and receive can be found in the CANLib directory for the reference
11. D en 8 a i Jumper Information One of 5V or 3V3 must be selected One of 5V or 3V3 must be selected default One of PU or PD must be selected One of PU or PD must be selected default See PCI Slot Select Table default Install jumper for ISA See CAN Base Address Table default default See DIO Base Address Table default default default Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 18 CAN Base Address Table M2 M1 MO Base Address CANO CAN1 CAN2 CAN3 0xE000 to OxE100 to 0xE200 to 0xE300 to 0 0 0 OxE000 OxEOFF OxE1FF OxE2FF OxE3FF SE 0x1100 to 0x1200 to 0x1300 to 0 0 1 0x1000 Ox10FF Ox11FF 0x12FF 0x13FF 0x2000 to 9 5100 to 0x2200 to 0x2300 to 0 1 0 0x2000 0x20FF 0x21FF 0x22FF 0x23FF 0x3000 0x3000 to 5 3100 to ox3200 to 0x3300 to 0 1 1 default Ox30FF Ox31FF 0x32FF 0x33FF 0x4000 9 vim to ox4200 to 17200 to 1 0 0 0x4000 0x40FF 0x41FF 0x42FF 0x43FF 0x5000 to GE 0x5200 to 0x5300 to 1 0 1 0x5000 0x50FF Ox51FF Ox52FF Ox53FF Ox6000 to 0x6100 to oemro ox6300 to 1 1 0 0x6000 Ox60FF Ox61FF Ox62FF Ox63FF 0x7000 to 0x7100 to 0x7200 to 0x7300 to 1 1 1 Ox7000 0x70FF 0x71FF 0x72FF 0x73FF Digital UO Base Address Table 109 108 107 106 105 Base Address 0 1 0 0 X 0x0100 0 1 0 1 X 0x0140 0 1 1 0 X 0x0180 0 1 1 1 X 0x01C0 1 0 0 0 X 0x0200 1 0 0 1 X 0x0240 1 1 0
12. DIOB6 DIOB5 DIOB4 DIOB3 DIOB2 DIOB1 DIOBO 2 W LED 2 R 3 RW DIRB DIRA 3 3 5 Power Supply The module is powered by 5V from the PCI and ISA connectors It provides all other required voltages on board including 3 3V for the CAN transceivers and the FPGA core voltages The digital I O connector provides power for external circuitry The voltage is selected between 3 3V and 5V with a jumper which also controls the voltage of the digital I O transceivers The current is limited via a poly switch thermal resettable fuse with a hold current capacity of 350mA 3 3 6 Multi Host Interface The FPGA used on the board contains a PCI interface core and ISA interface core Both the PCI and ISA interfaces are available Only one bus interface can be active at any time The active interface is selected with a bus power 5V signal from the PCI connector routed through a jumper to an input pin on the FPGA If the FPGA detects a high on the input pin the PCI interface is used otherwise the ISA interface is used If the PCI interface is not selected it is inactive and all FPGA PCI interface pins are tristated Likewise if the ISA interface is not selected it is inactive and all FPGA ISA bus interface pins are tristated Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 8 DIAMOND Sf st 3 3 7 PCI Bus Interface The FPGA includes a 32 bit 33MHz PCI core that interfaces to the PC 104 P us PCI Th
13. INTRODUCTION 2 1 Description The Janus MM 4LP XT family of I O modules offers two or four opto isolated CANbus 2 0B ports plus 16 digital I O lines Models are available in both the PC 104 P us and PC 104 form factors Janus MM 4LP is based on Xilinx Artix 7 FPGA This core houses the CAN controller logic and digital I O logic providing data rates up to 1Mbps Each CAN port supports standard and extended frames as well as expanded TX and RX message queues for enhanced performance Each port has its own combination isolator and transceiver chip The 16 digital I O lines have a selectable voltage level of 3 3V or 5V 2 2 Features fr gt e gt gt gt FH FH 2 or 4 CAN 2 0B compatible ports Data rates up to 1Mbps Supports standard 11 bit identifier and extended 29 bit identifier frames Extended TX and RX message queues for enhanced performance 16 8 byte transmit message queues 31 8 byte receive message queues 16 receive filters Galvanically isolated transceivers 500V port to host and port to port isolation Jumper selectable biased split termination for improved noise reduction 16 digital I O lines Latching I O connectors for increased ruggedness PCI and ISA bus interfaces 2 3 Operating System Support Windows Embedded 7 and Linux Ubuntu 12 04LTS Basic CAN driver included with APIs and monitor program 2 4 Mechanical Electrical Environmental gt gt gt PC 104 Plus form factor compliant 3 5
14. Janus MM 4LP User Manual PC 104 Plus Dual or Quad CAN Port Module Revision Date Comment A 00 10 28 2015 Initial release Copyright 2015 FOR TECHNICAL SUPPORT Diamond Systems Corporation PLEASE CONTACT 555 Ellis Street Mountain View CA 94043 USA support diamondsystems com Tel 1 650 810 2500 Fax 1 650 810 2525 www diamondsystems com Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 1 CONTENTS 1 Important Safe Handling Information ccccseceeseeeeeeeeesneeeneeeeeeeeesaaeseneeeeneeeeseaesasaaesaeneeeeeeeescaeseseeeenseeeeeanes 3 si Intresse ege eg 4 21 1 DESCARTES SEEDEDE N AE lie tenet 4 22 TEE 4 2 3 Operating System SUPPOMT 2245 akain tananana aa dass adedana aaa aaiae aaa aeiiae aatan an Re ke L GE 4 2 4 Mechanical Electrical Emironmental rest k tk SEERE RENEE LEE E RENE REE LEE E NERE ELLER E REESE LEE REESE 4 3 Functional Overview LEE E E E EEN ERE E ED les 5 SL Foncdional Block RT EE 5 3 2 Mechanical Board Drawing E 6 E e EE H 3 3 1 GAN Re eut H 3 3 2 CAN TraNSCENVETS EE 7 3 3 3 EE LTE 7 334 Digital VO EE 8 33 5 POWER SUPPI gren lee are aaaea aa aaea ae aa aaa Taaa on de et aa ia niaka aaae 8 3 3 6 Multi Host INTO ACE sr earn EAAS AA EAEE E 8 3 87 PCI Bus IMtertace ta ities ED enai eaa neiaint aneii d aaaeaii aidi PEN eders de ee 9 3 3 8 PCI Configuration Space W u u u ssseeeee eee renerne eee 9 3 3 9 ISA host Interface AAA 10 3 3 10 Programmab
15. ble pull up pull down resistors The entire circuit is enabled or disabled based on the settings of 3 I O configuration jumpers When the circuit is enabled the 8 bit ports are accessed at registers Base 0 Port A and Base 1 Port B where Base is the base address selected with jumpers JAQ 5 The ports power up and reset to 0 and input mode When a port is in output mode its I O pins are in output mode and reflect the value of the corresponding output registers and these output values may also be read back during a read cycle to the port s address When a port is in input mode its I O pins are in input mode and their values are read back during a read cycle to the port s address Each port s direction is controlled by a bit in a control register at Base 3 When a control bit is 0 the port is in input mode and when it is 1 the port is in output mode The control register powers up and resets to 0 The control register may also be read back during a read cycle to Base 3 The FPGA has an output pin P_LED which can be used to drive an LED to indicate the FPGA is alive and responding to commands P_LED is controlled by the LED bit in the register at base 2 The pin logic level is the opposite of the register value On power up or reset the register bit is 1 and the pin is low turning the LED on AO turns the LED off Offset 7 6 5 4 3 2 1 0 0 RW DIOA7 DIOA6 DIOA5 DIOA4 DIOA3 DIOA2 DIOA1 DIOAO 1 RW DIOB7
16. ch with SA 15 10 000000 CS Config pins Window size CSO CS1 CS2 CS3 DIO circuit 0b000 0 bytes Inactive Inactive Inactive Inactive Inactive 0b001 4 bytes Inactive Inactive Inactive Inactive Base 0 3 0b010 16 bytes Base 0 15 Inactive Inactive Inactive Inactive 0b011 20 bytes Base 0 15 Inactive Inactive Inactive Base 0 3 0b101 8 bytes Base 4 Base 5 Base 6 Base 7 Base 0 3 0b111 36 bytes Base 0 7 Base 8 15 Base 16 23 Base 24 31 Base 32 35 Each chip select is activated by an UO read or write cycle to an address within the selected address range When a chip select is active it is low and when it is inactive it is high On this board the CS config pins are hardwired to option 001 so that only the DIO circuit is active at Base 0 3 The JA 9 5 pins are connected to a jumper block with pull down resistors When a jumper is out the pin is pulled low for a logic 0 input to the FPGA When a jumper is inserted the pin is shorted to 3 3V to provide a logic 1 to the FPGA Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 10 4 BOARD LAYOUT ps ss sp ans eee eee ee eee J3 J5 J4 J15 J6 J16 J7 J9 J13 J8 J14 J10 ae rer atid LOTITI TITIN a bo Ji J2 Figure 3 JNMM 4LP Board Layout Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 11 DIAMOND SES 4 1 Connector and Jumper List Connector Description J1 PC 104 bus 8 bit ISA
17. ds that all our boards be stored only in individual ESD safe packaging If multiple boards are stored together they should be contained in bins with dividers between boards Do not pile boards on top of each other or cram too many boards into a small location This can cause damage to connector pins or fragile components Power supply wired backwards Our power supplies and boards are not designed to withstand a reverse power supply connection This will destroy each IC that is connected to the power supply i e almost all ICs In this case the board will most likely will be unrepairable and must be replaced A chip destroyed by reverse power or by excessive power will often have a visible hole on the top or show some deformation on the top surface due to vaporization inside the package Check twice before applying power Overvoltage on digital I O line If a digital I O signal is connected to a voltage above the maximum specified voltage the digital circuitry can be damaged On most of our boards the acceptable range of voltages connected to digital I O signals is 0 5V and they can withstand about 0 5V beyond that 0 5 to 5 5V before being damaged However logic signals at 12V and even 24V are common and if one of these is connected to a 5V logic chip the chip will be damaged and the damage could even extend past that chip to others in the circuit Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 3 DIAMOND CN 853 2
18. e PCI host interface may be selected by a combination of power pin detection and jumper enable The PCI interface includes 5 memory address ranges four for the CAN controllers and one for the general purpose The PCI interface is active when the FPGA detects the presence of the PCI bus and a jumper option is selected Presence is detected by one 5V pin from the PCI connector connected to an input pin P_PCISEL on the FPGA via a jumper This FPGA pin has a pull down resistor connected to it If the pin is high the PCI bus is selected otherwise the ISA interface is selected The PCI interface uses 3 3V logic levels No level translators are required to interface the FPGA to the PCI 104 bus The PCI 104 connector must be labeled as a 3 3V only interface since it is not 5V tolerant 3 3 8 PCI Configuration Space The PCI configuration space requires the use of five base address registers or BARs with the following parameters BAR no Function Type Size 0 CAN Memory As required by CAN core 1 CAN2 Memory As required by CAN core 2 CAN3 Memory As required by CAN core 3 CAN4 Memory As required by CAN core 4 UO block Memory 32 bytes only the first 4 are currently used The PCI configuration space has the following ID information Vendor ID 0x4453 Device ID 0x1100 Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 9 DIAMOND CN 853 3 3 9 ISA host Interface The FPGA includes an ISA host interface with 16 bit I O addre
19. en handling computer boards Damage during handling or storage On some boards we have noticed physical damage from mishandling A common observation is that a screwdriver slipped while installing the board causing a gouge in the PCB surface and cutting signal traces or damaging components Another common observation is damaged board corners indicating the board was dropped This may or may not cause damage to the circuitry depending on what is near the corner Most of our boards are designed with at least 25 mils clearance between the board edge and any component pad and ground power planes are at least 20 mils from the edge to avoid possible shorting from this type of damage However these design rules are not sufficient to prevent damage in all situations A third cause of failure is when a metal screwdriver tip slips or a screw drops onto the board while it is powered on causing a short between a power pin and a signal pin on a component This can cause overvoltage power supply problems described below To avoid this type of failure only perform assembly operations when the system is powered off Sometimes boards are stored in racks with slots that grip the edge of the board This is a common practice for board manufacturers However our boards are generally very dense and if the board has components very close to the board edge they can be damaged or even knocked off the board when the board tilts back in the rack Diamond recommen
20. entifier frames e Supports bit rates up to 1Mbps e Transmit message FIFO with a user configurable depth of up to 64 messages e Transmit prioritization through one High Priority Transmit buffer e Automatic re transmission on errors or arbitration loss e Receive message FIFO with a user configurable depth of up to 64 messages e Acceptance filtering with a user configurable number of up to 16 acceptance filters Sleep Mode with automatic wake up Loop Back Mode for diagnostic applications Maskable Error and Status Interrupts Readable Error Counters 3 3 2 CAN Transceivers The CAN transceivers are Analog Devices ADM3053 with a combination of isolation and transceiver The device is powered by 5V It generates isolated power to power the isolated side of the transceiver and the transceivers feature programmable slope control with a resistor 3 3 3 Isolation Janus MM 4LP supports 500V isolation between each CAN port and the host and between each CAN port and the other via the ADM3053 isolated transceiver An insulating film has been added to the bottom of the PCB in the isolated area for additional protection Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 7 DIAMOND 3 st 3 3 4 Digital I O Janus MM 4LP offers 16 digital I O lines organized in two 8 bit I O ports which are buffered with external data transceivers The logic levels are jumper selectable for 3 3V or 5V operation and the DIO lines have jumper selecta
21. ge Length Set the CAN ID and CAN message length for each CAN port by entering the desired numbers into the ID and Len fields respectively for that port File CAN1 CAN2 Connection CAN1 baud Rate RSC 8 Msg Type Standards ID Write M Message Length ID Len m Data Hex LITEIT Bee Connection CAN2 sac ate HOGS Leet Msg Type Standard Disconnected CAN 1 Messages Connected CAN 2 Messages Write Message mp 00000000 Len 8 Data Hex do o 00 00 00 00 00 00 a DIAMOND CAN Monitor 2014 Diamond Systems Corp Software Version 1 0 4 i Le NN www diamondsystems com Figure 6 To set the CAN ID Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 22 DIAMOND SYSTEMS 7 4 Writing a Message To write a message on a CAN port define the CAN message by entering the desired data into the Data Hex fields Then click on Write Message as shown in the Figure 7 File CAN CAN2 Connection CAN1 aud Rate SOOKE msg yee mae Connectea o E ten FR CAN Messages Data Hex Connection CAN2 Baud Rate DESS msg Tyee SERENE Disconnected CAN 2 Messages ip 00660000 Len Me Data Hex mm wm 00 om o wm wm CS eem gem Senden DIAMOND CAN Monitor 2014 Diamond Systems Corp Software Version 1 0 4 VAN Leide www diamondsystems com Figure 7 To Write a Message To transmit to a different CAN ID c
22. hange the data in the CAN ID field enter the desired data into the Data Hex fields and click on Write Message To change the message length change the CAN message length to the new length enter the desired data into the Data Hex fields and click on Write Message To transmit a different CAN message to the same CAN ID change the CAN message to the desired data and click on Write Message Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 23 PIAMOND 7 5 Viewing Messages Transmitted messages are listed in the CAN message box for the sending CAN port as shown in Figure 8 File CANT CAN2 Connection CAN1 sou nate SRST vo ype CS Seet CAN 1 Messages Write Message w G2 ten 8 Data Hex Sasa aaa wmd Connection CAN2 Msg Type Standard Disconnected Write Message iD 00000000 Len 8 Data Hex 00 o 00 00 00 00 00 00 semen CAN Monitor 2014 Diamond Systems Corp Software Version 1 0 4 DIAMOND diamond th ia or www diamondsystems com Figure 8 To view the Message Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 24 PIAMOND Received CAN messages are listed in the CAN message box for the CAN port receiving the message as shown in Figure 9 File CANT CAN2 Connection CAN1 saud Rate Fee msg une Das connected Write Message iD GER ten E Data Hex me EB a
23. le Chip Selects c ccccceecsceceeeeceeeeeeeaeeeeeeeeeeeeceaeeeeaaeseeeeesaeeeeaaeseeaeeseeeeeseaeessaeeseneeees 10 Ai Board LAV TE 11 41 GOMMECEOM MAS E 12 5 Connector Pinout and Pin DeSCription sccsseeceeeeeeeseeeseeeeneneeeeeeeescaesenneeeeeeeeseaesasaesaseeeeeeeeessaesaseenenseaes 13 Bd ACAI EE 13 52 Digital e DEEN 13 53 ISA CONMGCUO ssccce tec sin is dasenanciesansadaceuppsezecsat ged ac ictepinneadueleoeattenqehedenesdocanee sabe ERE Een en ai EEN kald 14 5A PONOA EE 15 6 Jumper Configuration steet ENEE 16 BT Tomipnaton dumper osese SEA cneldphd aetanistaaatdestattuweed estedelaaedtena teed 16 T Driver instalation ssori cee toe ce cece ste na atic abe cee ee ct ce duce ste acted ANANA oe hee ewer een tee 20 7 14 Installing the Software AA 20 7 2 Setting the Baud Hate 0 ec ceccecence cece eeeeaeeeeeeeeeeeeeeeaeeeeaaeseaeecaaeeeceaesseaaesgaeeesaeeeeaaesesaeesgeeeesaeeesaeseeneeee 21 7 3 Setting the CAN ID and Message Length cccceceeeeeeeeeeeeeeeeeeeeeeeaeeeeaaeseeeeeseaeeesaaeeseaeeseeeeesiaeeesaeeeeeeeee 22 TA Writing a MOSSAGC E 23 LO NIOWING NEE Le EE 24 8 Port Configuartion and Managementt cccssccsseceeseeeeeseeesneeeneeeeeeseeescaesasneeenseeeseaesasaaeeaseaeeeeeeessaesaseenenenaes 26 8 1 API to Configure and Manage CAN ports u u u u ssseeeeeeer reen renerne nen 26 8 1 1 Baud rate configurato sr T E 27 8 1 2 CAN Receive Prototype W W sssesesee seeren renen kreere ener
24. n1 if cani_fd lt 0 printf Error while initializing the CAN 1 n exit 0 Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 26 DIAMOND CN 8 a i 8 1 1 Baud rate configuration set baudrate This function will configure the baud rate for the specified CAN port By default it will not configure any baud rate Set 500k Baud rate for CAN 0 ret val set_baudrate can0_fd CAN_SPEED_500K if ret_val lt 0 printf Error while setting the baud rate n exit 0 Set 500k Baud rate for CAN 1 ret val set_baudrate can1_fd CAN SPEED 500K if ret val lt 0 printf Error while setting the baud rate n exit 0 Use below macros for setting the different baud rates These macros can also be found in can h file CAN_SPEED_1M CAN_SPEED_800K CAN_SPEED_500K CAN_SPEED_250K CAN SPEED 125K CAN SPEED 100K CAN SPEED 50K CAN SPEED 20K CAN Transmit amp Receive can tx amp can rx These function will be used to Transmit and Receive the CAN messages respectively CAN Transmit Prototype int can tx int can fd unsigned char msgType unsigned int can id int len unsigned char data Assign the appropriate values before calling the can tx function Cant fd CAN descriptor return value from init_canO function msgType MSG_STANDARD or MSG_EXTENDED Janus MM 4LP User Manual Rev 0 9 www diamondsystems com Page 27 EISE s Y ST can id 0x12
25. ndensing MIL STD 202G compatible MIL STD 202G compatible Tbd hours at 20 C 3 55 x 3 775 90mm x 96mm 2 502 71g Compliant Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 31
26. r latches Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 13 5 3 ISA Connector J1 amp J2 DIAMOND SES The board contains the non stack through short pin 8 bit and 16 bit PC 104 connectors on the top side in the standard position as described by the PC 104 Plus specification J2 PC 104 16 bit bus connector Ground DO CO Ground IOCHCHK MEMCS16 D1 C1 SBHE SD7 IOCS16 D2 C2 LA23 SD6 IRQ10 D3 C3 LA22 SD5 IRQ11 D4 C4 LA21 SD4 IRQ12 D5 C5 LA20 SD3 IRQ15 D6 C6 LA19 SD2 IRQ14 D7 C7 LA18 SD1 DACKO D8 C8 LA17 SDO DRQO D9 C9 MEMR IOCHRDY DACK5 D10 C10 MEMW AEN DRQ5 D11 C11 SD8 SA19 DACK6 D12 C12 SD9 SA18 DRQ6 D13 C13 SD10 SA17 DACKZ7 D14 C14 SD11 SA16 DRQ7 D15 C15 SD12 SA15 5V D16 C16 SD13 SA14 MASTER D17 C17 SD14 SA13 Ground D18 C18 SD15 SA12 Ground D19 C19 Key SA11 SA10 SA9 SA8 SA7 SA6 SA5 SA4 SA3 SA2 SA1 SAO Ground Connector Part Number Description J1 EPT Connectors 962 60323 12 64 pins 435 high solder tails J2 EPT Connectors 962 60203 12 40 pins 435 high solder tails A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 B6 A7 B7 A8 B8 A9 B9 A10 B10 A11 B11 A12 B12 A13 B13 A14 B1
27. s and power output on digital I O connector e ISA IRQ level and IRQ pulldown resistor configuration e 120 ohm line termination and bias resistors for each CAN port Each CAN port has its own jumper block for biased split termination The ISA IRQ settings are contained on one jumper block All the other jumper options are combined into a single jumper block All jumper positions are labeled on the board for easy user comprehension Optionally 0 ohm resistors can be used instead of jumpers for rugged applications where jumpers are not desired Contact Diamond Systems for more information 6 1 Termination Jumpers J9 J10 J15 J16 The Janus MM 4LP module has four biased split termination jumper blocks one for each CAN port Jumper block J15 is for CAN1 J5 jumper block J16 is for CAN2 J7 jumper block J9 for CAN3 J7 and jumper block J10 for CAN4 J8 Jumper blocks J15 J16 J9 and J10 are identical The default is jumpers installed in all three positions B H and L To add termination for a port s bias line CAN H line or CAN L line add a jumper at the B H or L location respectively Figure 4 illustrates adding a jumper for a port s bias line only Figure 4 Termination Jumper Block Janus MM 4LP User Manual Rev A 00 www diamondsystems com Page 16 DIAMOND 3 st 6 2 ISA IRQ Jumper J13 Jumper block J13 is used to change the status of the IRQ signals One side of the jumper is connected to the IRQ signal the other side
28. ssing 24 bit memory addressing and 8 bit data The interface is compatible with PC 104 implementations on embedded computers It uses IRQ but no DMA The ISA interface is 5V compliant External level shifting transceivers are used between the FPGA and the PC 104 connector to provide this compatibility All transceivers are one way except the data bus transceiver which is bidirectional The direction of this bidirectional transceiver is controlled with the FPGA signal P_RD When P_RD is low the data direction is from the ISA connector to the FPGA ISA write cycle addressing one of the active I O windows or idle and when it is high the direction is from the FPGA to the ISA bus ISA read cycle addressing one of the active I O windows The ISA interface offers two memory address ranges for the CAN controllers and one I O address range for the digital I O interface described below 3 3 10 Programmable Chip Selects The FPGA includes four programmable chip selects that can be used to drive external logic These chip selects are enabled and the sizes of their I O windows are controlled with the values of 3 configuration pins When the PCle or PCI interface is active the Base address is determined by the BAR2 configuration at boot up When the ISA interface is active the Base address is determined by the jumper inputs JA 9 5 The state of these jumpers is compared to the correspondingly numbered address lines SA 9 5 during an I O cycle to determine a mat

Download Pdf Manuals

image

Related Search

Related Contents

VC310 Câmara de Vídeo Digital Guia do usuário    Mode d`emploi ecoTEC exclusiv ??ft_00262_fr_BE?? VC  Emploi - Population active  Symantec Discovery 6.0 (10395098) for PC  Apple IBOOK 073-0581 User's Manual  Fastrack Tutorial  Service Manual  Slideout Cover Install Manual - E  Cobra Electronics microTALK PR 3500 PR 3500-2 DX VP Owner's Manual  

Copyright © All rights reserved.
Failed to retrieve file