Home

Manual: CAN plugin card ISA/XT, active

image

Contents

1. CPC XTI is a short PC plug in board for the CAN bus With its small size and the possible application in 8 bit slots CPC XTI can be used in space restricted conditions as well Designed for industrial series applications CPC XTI has a robust and cost efficient construction CPC XTI eases the development of application software on the PC The integrated microcontroller takes load of the PC CPU and buffers and preprocesses CAN messages A high level programming interface with modular design results in efficient software development A library of interface routines for Borland C Borland Pascal and Microsoft C is included CPC XTI is shipped with one or two CAN channels For high volume applications cost optimized versions without galvanic decoupling and with PROM based code storage are available Interrupt channels 3 7 are supported 1 3 Sample Applications The application area of CPC XTI is wide Some sample applications are detailed in the following and supported by corresponding software e Online configuration of CAN networks Network setup and analysis e Use of PCs as CAN nodes on the appli cation level e Visualisation of process parameters in CAN based systems EMS Dr Thomas W nsche 1 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual 1 4 Ordering Information 10 04 201 20 CPC 1041 SJA10008320 GTI CAN plug in board with microcontroller Dallas 80C320 and 1 galvanic
2. asynchronous handlers are called in the sequence of their entry position with the new message as parameter CPC_Handle returns immediately independant of the availability of a message Return value A pointer to a static memory area containing the message is returned This memory area is overwritten during following calls to CPC_Handle and also on use of many of the synchronous interface functions If no message is available CPC_Handle returns NULL 2 6 MS Windows Driver Additional Information Please notice this subchapter refers to the older version of the Windows Development Kit For information on the new version please read the CPC Series Development Kit for MS Windows environment manual The software functionality and interface equals the MS DOS version Differences exist in the software setup and a few additional functions 2 6 1 Installation The installation is provided by the setup program Run SETUP EXE from delivery disk The installation program performs the following actions e copy the files e install entry for virtual device driver in SYSTEM INI Windows9X 2 6 2 Additional Functions One additional function is necessary to compensate the fact that the initialisation structure is not directly accessible to the application CPC_Get_Init_Params_Ptr Syntax Description Return value include cpc h structure CPC_INIT_PARAMS CPC_Get_Init_Params_Ptr void This function
3. provides access to the initializa tion structure which is contained in the Dynamic Link Library A pointer to the initialization structure in the Dynamic Link Library EMS Dr Thomas W nsche 15 16 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual 3 Electrical Characteristics 3 1 Absolute Limiting Values Any also temporary stress in excess of the limiting values may cause permanent damage on CPC XTI Parameter Min Max Unit Storage temperature 20 80 C Operating 0 60 C temperature Voltage on the bus 30 30 V connections Current across 1 A ground connection Extended temperature range on demand 3 2 Nominal Values 4 Operation Instructions 4 1 Connection Scheme The CAN interface connector D Sub 9 male complies to CiA Standard DS 102 1 The pin usage is detailed in the following table Pin 1 Reserved by CiA Pin 2 CAN_L CAN_L bus line dominant low Pin 3 GND Ground Pin 4 Reserved by CiA Pin 5 Reserved by CiA Pin 6 GND Optional ground internally connected to Pin 3 Pin 7 CAN_H CAN_H bus line dominant high Pin 8 Reserved by CiA Parameter Min Typ Max Unit error line CAN 16 MHz Pin 9 V CAN Positive power supply controller from CAN not used by clock default frequency 10 20 50 kBit 100 125
4. CPC XTI User Manual Documentation for CAN Interface CPC XTI errr i ML iS Document version 1 3 Documentation date January 17th 2005 No part of this document or the software described herein may be reproduced in any form without prior written agreement from EMS Dr Thomas W nsche i at TE a f For technical assistance please contact EMS Dr Thomas Wunsche Sonnenhang 3 CAN PC Interface D 85304 Ilmm nster Tel 49 8441 490260 Fax 49 8441 81860 C P C XTI Email support ems wuensche com User Manual Our products are continuously improved Due to this fact specifications may be changed at any time and without announcement WARNING CPC XTI hardware and software may not be used in applications where damage to life Sonnenhang 3 health or private property may result from E M S D 85304 Ilmmiinster failures in or caused by these components i Tel 49 8441 490260 THOMAS WUNSCHE Fax 49 8441 81860 ii EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual Contents THIS PAGE INTENTIONALLY LEFT BLANK 1 Ov rvieW a eo Be ai ee ee See ee a 1 ti Attributes 528 in OE Se dk a cle ald 1 1 2 Generaldescription 1 1 3 Sample Applications 2 1 4 Ordering Information 3 2 Software oo 4 2 1 Functions of CPC XTI 4 2 2 Application program Realization Concepts 4 2 3 Synchronou
5. V line This feature does not provide protections against overvoltage overload short circuit or other error conditions The use of this option is in the resposibility of the user EMS Dr Thomas W nsche 19 20 EMS Dr Thomas W nsche User Manual CPC XTI User Manual 4 3 Installation WARNING CPC XTI may be installed in an empty expan sion slot on the mainboard of IBM XT or IBM AT compatible computers To avoid damage please pay attention to the following hints Computer devices and components are sensitive against static discharge For this reason keep CPC XTI in the antistatic cover until installing Just before removing CPC XTI from the protection cover touch the metal case of your computer Avoid damage by achieving equal potential between all devices on the CAN before plugging the connection To the rear side connectors of CPC XTI only CAN networks with a physical layer complying to CIA DS 102 may be attached In some versions of CPC XTI PC interface and CAN bus are not galvanic decoupled Use in systems with diverging ground potential of PC and CAN bus is not permitted in this case Besides the instructions below carefully observe the instructions in the computers user manual If you are not sure about the installation please contact EMS Dr Thomas W nsche Execute the following steps for installation only if you have knowledge about and ex perience in installing PC plug in boards e Disconnec
6. ally separated CAN channel with Philips SJA1000 10 04 211 20 CPC 1041 SJA1000D320 GTI CAN plug in board with microcontroller Dallas 80C320 and 2 galvanically separated CAN channels with Philips SJA1000 2 Software The software consists of two parts One part is executed by the microprocessor inside CPC XTI The application program runs on the PC and makes use of the interface library 2 1 Functions of CPC XTI CPC XTI offers enhanced functionality for CAN communication e Transmission and reception of CAN messages e Filtering and buffering of received mes sages e Measurement of bus load The functions of CPC XTI are accessed across the interface library of the PC 2 2 Application program Realization Concepts The library of interface functions supports two ways to implement the application program The synchronous mode complies with conventional programming The sequence of program steps is given by the program structure Asynchronous mode allows event driven programming similar to the way used in graphical user interfaces EMS Dr Thomas W nsche 4 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual 2 3 Synchronous Interface main program command initiation command wait for result execution by CPC XTI Implementation of the main program with synchronous interface allows simple and clearly arranged programs with sequential cont
7. cription CPC_Get_Version returns the version number of the connected CPC PP module Return value Pointer to a string with the version number or NULL in case of errors CPC_Init Syntax include cpc h int CPC_Init void Description CPC_Init initialises the communication with CPC XTI CPC XTI is initialised to standard parameters which are stored in the global structure CPC_Init_Params declaration in cpc h These parameters can be changed on demand before calling CPC_Init CPC_Init is to be called before using the other functions of the interface library Return value 0O for correct initialization 1 for initialization errors CPC_Read_Msg Syntax include cpc h void CPC_Read_Msg struct CPC_CAN_MSG Description CPC_Read_Msg receives a message from the CAN The received communication object is stored in a structure of type CPC_CAN_MSG which is indicated by the pointer passed on function call Return value CPC_Send_Msg Syntax include cpc h int CPC_Send_Msg struct CPC_CAN_MSG Description CPC_Send_Msg sends a message across the CAN The function call passes a pointer to a structure of type CPC_CAN_MSG which contains the communication object to be transmitted Return value EMS Dr Thomas W nsche 11 12 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual CPC_Send_RTR Syntax Description Return value includ
8. e cpc h int CPC_Send_RTR struct CPC_CAN_MSG CPC_Send_RTR transmits a Remote Transmission Request message across the CAN The function call passes a pointer to a structure of type CPC_CAN_MSG which contains the communication object to be transmitted 2 5 3 Functions for the Asynchronous Programming Interface CPC_Add_Handler Syntax Description Return value include cpc h int CPC_Add_Handler void handler const struct CPC_MSG CPC_Add_Handler adds the handler indicated by the pointer passed at function call to the list of handlers which are executed on any incoming CPC XTI message 0 on error free execution 1 ifthe list of handlers is full CPC_Remove_Handler Syntax Description Return value include cpc h int CPC_Remove_Handler void handler const struct CPC_MSG CPC_Remove_Handler removes the handler indicated by the pointer passed at function call from the list of handlers which are executed on any incoming CPC XTI message If the handler is contained more than once the last occurence is removed 0 on error free execution 1 if handler was not within the list EMS Dr Thomas W nsche 13 14 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual CPC_Handle Syntax include cpc h struct CPC_MSG CPC_Handle Description CPC_Handle checks for availability of a new message from CPC XTI If a message is available all
9. ription CPC_MSG serves for parameter transfer i between application program and interface library EMS Dr Thomas W nsche 5 6 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual struct CPC_CAN_MSG Declaration struct CPC_CAN_MSG unsigned short id unsigned char length unsigned char overrun unsigned char msg 8 y Description CPC_CAN_MSG serves for transfer of CAN messages between application program and interface library struct CPC_CAN_PARAMS Declaration struct CPC_CAN_PARAMS unsigned char acc_code unsigned char acc_mask unsigned char btr0 btr1 unsigned char outp_contr da Description CPC_CAN_PARAMS defines initialization values for the CAN controller in CPC XTI type PCA82C200 struct CPC_INIT_PARAMS Declaration struct CPC_INIT_PARAMS struct CPC_CAN_PARAMS std_can_params unsigned char secure_transmit void interrupt far inthandler i Description The global variable CPC_Init_Params which has this type holds initialization parameters EMS Dr Thomas Wunsche 7 8 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual 2 5 2 Synchronous Functions CPC Exit Syntax include cpc h SPCECAN INK void CPC_Exit void Syntax include cpc h int CPC_CAN_Init void Description CPC_CAN_Init initialises the parameters of the CAN controller within CPC XTI The CAN controller is set up with parameters supplied in the global struct
10. rol flow It is suitable mainly for simple applications which allow a predefinition of events to process This is true if for example only CAN messages are to be received or only bus load measurement is to be realized 2 4 Asynchronous Interface 2 5 Data Structures and Library Functions 2 5 1 Data Structures The following structures are declared in the include file CPC H Please notice that the structures and functions described in the following refer to the old DOS and Windows libraries and are included in this manual for compatibility reasons The new structures and functions are described within the manual CPC Series Development Kit for MS Windows Environment struct CPC_MSG The asynchronous interface Declaration struct CPC_MSG provides enhanced flexibility ee ate ve in reaction to events which UNSIgNEG enar engin are not predictable in their iono f 0 main sequence of occurrence unsigned char genericmsgl program Communication objects can ee ee be processed independent of aes serialmsgi command i d omm program state reactions can f eon be configured flexible For this struct Node canmsg PiE ues purpose every communication unas a us sea msg OR by CPC XTI object is handed on to a set of CPE CAN PARAMS as resi handling functions Such SANS E pe functions are provided within Sen Palas weg the programming library The f application programmer can 7 o o A Desc
11. s E 250 500 1000 and others EMS Dr Thomas W nsche 17 18 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual 4 2 Configuration The base address is set with jumper bank J1 The possible selections are listed in figure 2 The configuration of the address space and Jumper Allocation Sample Settings used interrupt channel is achieved by jumpers 1 8 vgs ejojojojojojojo Linear SaS on CPC XTI Their position on the board is ada Adress HINA Belg accress ocaooon indicated in figure 1 Bt 7 Te Ares 0000001 Bit 15 Bit 1 z H E K ji I Address 0D4000h Bit 12 E to ES Address ODFCOOh Address 0C0000h Jumper Value Jumper installed Bit 1 else Bit 0 J1 Figure 2 Address settings Jumper bank J2 determines the used interrupt channel The settings can be seen in figure 3 IRQ 5 is set as an example It is not allowed to set more than one jumper on this bank 8 Jumper Allocation 1 5 ele e ejo eje Figure 1 Jumper locations irq 3 Figure 3 Interrupt settings Jumper J3 optional allows to supply 12V from the PC to the CAN on CPC XTI card configurations without galvanic decoupling J3 may only be set if no other device supplies the CAN power line and the PC has enough capability on its 12
12. s Interface 5 2 4 Asynchronous Interface 5 2 5 Data Structures and Library Functions 6 2 6 MS Windows Driver Additional Information 15 3 Electrical Characteristics 17 3 1 Absolute Limiting Values 17 3 2 Nominal Values 17 4 Operation Instructions 18 4 1 ConnectionScheme 18 4 2 Configuration o 19 4 3 Installation 21 EMS Dr Thomas W nsche iii iv EMS Dr Thomas W nsche CPC XTI CPC XTI User Manual Overview 1 1 Attributes CPC XTI offers a range of unique features which make it valuable for many CAN based applications e CAN interface for industrial applications e Available with one or two CAN channels e Compact size for 8 bit slots e CiA DS 102 and ISO 11898 compatible physical layer Smart system with fast integrated micro controller Dallas DS80C320 e Equipped with CAN controller Philips PCA82C200 or SJA1000 e Philips PCA82C251 CAN transceiver for increased robustness e Extended ESD protection of the CAN transceiver s e Galvanic decoupling between PC and CAN bus e Modular application interface with libra ries for Borland C Borland Pascal and Microsoft C e Optional MS Windows driver with DLL based API and VxD technology for high communication throughput e Automatic address range detection by memory managers 1 2 General description
13. t the computer from the power line e Open the case of the computer and remove the cover from the expansion slot rear panel e Insert CPC XTI carefully into the ISA or EISA slot For this take the card at its top corners and shift it down into the slot equally Push onto the upper side of CPC XTI to achieve correct seat in the slot If the card can not be inserted without problems please don t use extensive force Remove the card and retry e Fix the mounting screw and close the PC case Connect the required cables If you do not have sufficient knowledge and experience to install the board please consult a computer service person with the mentioned prerequisites EMS Dr Thomas W nsche 21 EMS Dr Thomas W nsche
14. ure CPC_Init_Params declaration in cpc h These parameters can be changed before the call to CPC_CAN_Init CPC_CAN_ Init is to be called before data transmission across the CAN is initiated Return value CPC_Control Syntax include cpc h int CPC_Control int Description CPC_Control serves for setup of the mes sage types to be transmitted from CPC XTI to the PC The upper 6 bits select the type of message the lower 2 bits determine the transmission behaviour The properties that can be influenced are described in cpc h Return value Description CPC_Exit is to be called before leaving the application program CPC_Exit is in any case to be used paired with CPC_Init Return value CPC_Get Busload Syntax include cpc h int CPC_Get_Busload void Description CPC_Get_Busload measures the actual bus load and returns it as percentage of the maximum bus load Return value Actual bus load 0 corresponds to 0 255 corresponds to 100 bus load CPC_Get_Serial Syntax include cpc h char CPC_Get_Serial void Description CPC_Get_Serial returns the serial number of the connected CPC XTI module Return value Pointer to a string with the serial number or NULL in case of errors EMS Dr Thomas W nsche 9 10 EMS Dr Thomas W nsche User Manual CPC XTI CPC XTI User Manual CPC_Get Version Syntax include cpc h char CPC_Get_Version void Des

Download Pdf Manuals

image

Related Search

Related Contents

Manually  User's Guide  Troubleshooting – Can not access the router on 192.168.0.1  OPERATOR'S SAFETY AND SERVICE MANUAL    ZKAccess3.5 Software User Manual  Information Technology  MENTEE USER MANUAL - KIT Solutions Support Site  Accuview 12.1"    

Copyright © All rights reserved.
Failed to retrieve file