Home

CUB-43PIC-LP User`s Manual

image

Contents

1. Sikenica TEP STECHNICA CO LTD CUnet MKY43 PCI board CUB 43PIC LP Users Manual Note 1 The information in this document is subject to change without prior notice Before using this product please confirm that this is the latest version of this document 2 Technical information in this document such as explanations and circuit examples are references for this product When actually using this product always fully evaluate the entire system according to the design purpose based on considerations of peripheral circuits and the PC board environment We assume no responsibility for any incompatibility between this product and your system 3 We assume no responsibility whatsoever for any losses or damages arising from the use of the information products and circuits in this document or for infringement of patents and any other rights of a third party 4 When using this product and the information and circuits in this document we do not guarantee the right to use any property rights intellectual property rights and any other rights of a third party 5 This product is not designed for use in critical applications such as life support systems Contact us when considering such applications 6 No part of this document may be copied or reproduced in any form or by any means without prior written permission from StepTechnica Co Ltd TEP STECHNICA CO LTD CUB 43PIC LP User s Manual Preface Th
2. Chapter2 Software 2 l QUIN id 2 1 2 2 Copyright and disclaimer cirio 2 1 2 3 Contents Of Tes sesser naaa 2 2 24 How RT 2 2 2 5 LIMON Sa 2 3 2 0 Tee Le EEN 2 3 26 1 GUBGEEVERSION EE 2 3 2 6 2 GubGountDevice a aaa as 2 4 2 6 3 UG LEE iii 2 4 2 6 4 CublOpenHandlE viii 2 5 26 5 ele ere EE Md lt lt lt eee nner ae eee a 2 5 2 6 6 CubReadByte CubReadWord sssesesssssesessseeseseseseseseeseessssnseensneneneneaeaeaeseseaeseseeneneneneneneneneneeeaeaes 2 6 2 6 7 CubWriteByte CubWriteWord iraniana rai ciaiaiiaii zioni einen 2 6 TEP STECHNICA Co LTD CUB 43PIC LP User s Manual Figures Fig 1 1 Panel side VIEW errare rene een eee cere ei eia iii iaia iaia eee iene eine 1 2 Fig 1 2 Connector peripheral circuit rrrrrenee rire eenia rire rie eie reni ia ieri nie rire recai iii eee iii einen 1 2 Fig 1 3 Setting of CUB 43PCI LP board 1 vrsrrnrrreeses es ono rn canaria rana canaria 1 3 Tables Tablel 1 Specifications of CUB 43PCI LP scssssssssssesssssssessesessesessessessessesaeseeseeseeseeeeseeerseesnesoesoesoees 1 1 Table 1 2 Memory ET EN 1 4 Table2 1 APITUINC ON iii ind 2 3 TEP STECHNICA Co LTD Chapter 1 Hardware Chapter 1 Hardware This chapter describes the CUB 43PCI LP hardware 1 1 Features CUB 43PCI LP is the CUnet communication board on which Step Technica s MKY43 IC is mounted that have expansion bus compatible
3. LTD Chapter 1 Hardware 1 4 DIP switches The dip switch settings of CUB 43PCI LP are shown in Fig 1 3 To embed multiple CUB 43PCI LP boards in one system platform set SW5 board ID This board ID is the key to identify CUB 43PCI LP devices by its software If CUB 43PCLLP is at the middle position of multi drop connection that is the middle position of communication cable set SW1 and SW2 OFF 1 2 for termination If CUB 43PCI LP is at the terminal position of multi drop connection that is the terminus of communication cable set SW1 and SW2 ON 2 3 for termination SW1 Termination setting OFF we ON wi 1 3 3 Notch1 2 Left Notch2 3 Right SW5 Board ID setting 00000000000000000 0000 0000 Connecting PAD to the Panel FG frame griund Fig 1 3 Setting of CUB 43PCI LP board 1 3 TEP STTECHNICA Co LTD CUB 43PIC LP User s Manual 1 5 Memory map Memory map for CUB 43PCI LP is listed in Table 1 2 Address value in memory map is relative with a starting address of CUB 43PCI LP and actual address has the value that added a starting address of the board Tablel 2 Memory map Address Function OOOH 1FFH GM Global Memory AQOsl 2 E El MSB Mail Send Buffer 300H 3FFH Register and Reserved 390H 3FFH 400H 4FFH MRBO Mail Receive BufferO 500H SFFH MRB1 Mail Receive Buffer COOL ERE Manufacture s Reserve
4. in the lower 16 bits is valid and data in the upper 16 bits is not used Therefore address value to access need to be the value which multiplied the actual address For example to read address 200H read address 400H of PCI with 32bit acccess and obtain WordData in address 200H of MKY43 in the lower 16 bits out of 32 bit data that is read Also to write to address 180H write to address 300H of CUB 43PCI LP with 32bit access and have address 180H of MKY43 obtained the data in the lower 1 6bits out of 32bit that is written to PCI The same method is necessary to make read or write acccess to registers that are unique to CUB 43PCI LP TEP STECHNICA Co LTD CUB 43PIC LP User s Manual TEP STECHNICA Co LTD Chapter 2 Software Chapter2 CUB 43PCI LP Software This chapter describes software for using CUB 43PCI LP 2 1 Outline DLL folder in CUB 43PCI LP WDM driver disc contains the driver and DLL that are compliant to Microsoft Windows XP 7 At the first power on of CUB 43PCI LP embedded PC install the driver from attached disk with Add Hardware Wizard in Windows Admin rights are necessary to install the device driver Please remember it at login Due to Windows specifications all accesses to CUB 43PCI LP from user s application pass through the device driver However since complicated process is needed for calling the device driver API in CUB43PCILP DLL provides more simple interface that covers its process At
5. using Microsoft Windows XP 7 as host OS the attached software supports to use various programming tools such as Microsoft Visual Studio for easy control of CUB 43PCI LP a ution CUB 43PCI LP and CUB 43PCIEXP use its common library The following subchapters describe CUB 43PCI LP This is applicable to CUB 43PCIEXP EA Reference For the latest information including the addition of compliant OS or software update visit our website http www steptechnica com 2 2 Copyright and disclaimer The copyright of all documents program program sources in the attached driver disc are belong to Step Technica Co Ltd The individuals companies or other parties only who acccept the cautions written below and use our CUB 43PCI LP is licenced to copy or use these works of Step Technica Co Ltd Step Technica Co Ltd does not acccept not only to revise or distribute any part of these copyrighted works but also to copy and use for purposes not mentioned above without prior permission Caution Step Technica Co Ltd assume no responsibility for any results caused by using the attached driver disc or all softwares downloaded from our website 2 Use library in proper ways with its instructions All specifications and contents in the disc is subject to change without prior notice Step Technica Co Ltd does not guarantees for any future replacements Step Technica Co Ltd does not support for the questions reg
6. with PCI CUB 43PCI LP is designed for more easy operation of the MKY43 using with the attached library for Windows Use CUB 43PCI LP for evaluating or learning functions of MKY43 CUB 43PCI LP have the 8P8C modular connector interface and the operation can be evaluated using a straight cable for 100BASE TX which is CAT 5 or upper The operation experience with CUB 43PCI LP encourage operating the microcomputer system in which the MKY43 is embedded 1 2 Specifications The Specifications of CUB 43PCI LP is given in Table 1 1 Table1 1 Specifications of CUB 43PCI LP Type CUB 43PCI LP Type of IC mounted MKY43 X 1 Communication method CUnet communication method Baud rate 3M 6M 12M bps half duplex Compatible bus 32 bit 33MHz expansion bus compliant with PCI Ver2 2 Low Profile compliant Resources to be occupied 16KB consecutive memory area automatically allocated by PnP function Interrupt 1 line used automatically allocated by PnP function Connector RJ 45 modular connector TM11R 5L 88 50 Power supply DC 5V Consumption current Less than 500mA Conditions of use Temperature O 50 C Humidity 20 90 with no condensation Board Size 120mm W x 64mm H Panel side of the board is excluded 1 1 TEP STTECHNICA Co LTD CUB 43PIC LP User s Manual 1 3 Specifications of the board connectors The panel side of CUB 43PCI LP i
7. arding OS or development environment not related to Step Technica products If any bugs or errors are found contact Step Technica s engineer team 2 1 TEP STTECHNICA Co LTD CUB 43PIC LP User s Manual 2 3 Contents of files The files in DLL folder in the disc are given below cub43pcilp dll DLL body Copy it to the system folder of Windows or the directory in which there is the user program using this DLL before use cub43pcilp lib Import library for Microsoft Visual C built with Visual Studio2010 cub43pcilp h DLL header file Get this included after Windows h at use 2 4 How to use The files in DLL folder in the disc are given below To control CUB 43PCI LP device embedded in PC with cub43pcilp initializing and terminating are ncessary The procedure is shown below The application made for DLL version 1 xx Int Version CubGetVersion if Version lt 0x100 Version gt Ox1FF printf This version of cub43pcilp does not have compatibility N n exit 1 1 Obtain the number of CUB 43PCI LP devices embedded in PC Can be omitted if it s obvious that only one PCI board is embedded Const int Count CubCountDevice If Count lt 1 Printf CUB 43PCI LP does not exist N n exit 1 2 Obtain the handle of CUB 43PCI LP devices Set the parameter O to open if it s obvious that only one PCI board is embedded HANDLE CubHandle Count for in
8. d COOH Chip Reset Register EOOH Board ID Register 1 5 1 Access to MKY43 To access to the MKY43 mounted on CUB 43PCI LP write access or read access to addresses OOOH 5FF listed in Table 1 2 Memory map For details of each area refer to MKY43 User s Manual a ution Po not access to addresses 600H to 7FFH Manufacturer s reserved area To do so it may cause unstable system operation TEP STECHNICA Co LTD Chapter 1 Hardware 1 5 2 Registers unique to CUB 43PCI LP COOH and EOOH address registers listed in Table 1 2 Memory map are unique to CUB 43PCI LP Details of COOH and EOOH are given below Chip Reset Register Address COOH bit 15 14 13 12 11 10 9 8 Z 6 5 4 3 2 1 0 R W R R R R R R R R R R R R R R R W Function Writing 1 to CRST Chip ResST bit bit 0 enables to apply reset signal to RST pin of MKY43 Reset period to the RST pin of MKY43 is 240nS This register is write only If you read undefined data BoardiD Register Address EOOH bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 R W R R R R R R R R R R R R R R R R Function Reading BIDO 1 BoardID 0 1 bit bit 0 1 enables to obtain Board ID BoardID value 0 3 that is set to SW5 1 6 Access without attached driver disc For direct access to CUB 43PCI LP without Step Technica s attached driver disc please note the following points Always use 32bit memory access to CUB 43PCI LP At that time data
9. d INVALID_HANDLE_VALUE is returned Check for the details of failure with CubGetLastError Non numeric literal INVALID_HANDLE_VALUE is available having windows h included 2 6 5 CubCloseHandle Format BOOL CUBAPI CubCloseHandle HANDLE CUBHandle Description This API closes the handle which is obtained with CubOpenHandle Parameter CUBHandle Handle to be closed Return value Succeeded TRUE is returned Failed FALSE is returned 2 5 TEP STTECHNICA Co LTD CUB 43PIC LP User s Manual 2 6 6 CubReadByte CubReadWord Format BOOL CUBAPI CubReadByte HANDLE CUBHandle ULONG Adr BYTE Dat BOOL CUBAPI CubReadWord HANDLE CUBHandle ULONG Adr WORD Dat Description This API obtains BYTE WORD data from the specified address of CUB 43PCI LP Parameter CUBHandle The handle to targeted CUB 43PCLLP Adr An offset address of the starting address It must be a multiple of 2 via WORD access Dat A pointer to BYTE WORD area where the obtained value is stored Return value Succeeded TRUE is returned Failed FALSE is returned 2 6 7 CubWriteByte CubWriteWord Format BOOL CUBAPI CubWriteByte HANDLE CUBHandle ULONG Adr BYTE Dat BOOL CUBAPI CubWriteWord HANDLE CUBHandle ULONG Adr WORD Dat Description This API writes BYTE WORD data to the specified address of CUB 43PCI LP Parameter CUBHandle The handle to the targeted CUB 43PCI LP Adr An offset address of the starting address Ir must be a mult
10. ime Parameter None Return value CUB 43PIC LP User s Manual The definition in cub43pcilp h is the following Non numeric literal CU CU CU CU CU CU CU CU B_SUCCESS B_ERR_DEVICENOTEXIST B_ERR_ALREADYOPENED B_ERR_CLOSED B_ERR_INVALIDPARAM B_ERR_NORESOUCE B_ERR_FAILED B_NOTCALLYET Value 0 Terminated normally 1 Device does not exist 2 Handle is already opened 3 CubOpenHandle has never been called 4 Called with invalid parameter 5 No resource to execute the process 6 The process failed due to unknown reason 99 API has never been called yet 2 4 TEP STECHNICA Co LTD Chapter 2 Software 2 6 4 CubOpenHandle Format HANDLE CUBAPI CubOpenHandle int Instance Description This API returns the handle to CUB 43PCI LP board of which has the specified instance It is possible to obtain multiple handles from the same instance There is no failure due to CUB_ERR_ALREADYOPENED in current version All API described from this section need to be called using the handle that obtained with CubOpenHandle Also close the handle by calling CubCloseHandle after all processes are terminated Parameter Serial number of the board whose base point is Instance 0 The board number to obtain each handles of embedded boards If only one board is embedded the handle should be opened with the parameter 0 Return value Succeeded HANDLE is returned Faile
11. iple of 2 via WORD access Dat BYTE WORD data where the obtained value is stored Return value Succeeded TRUE is returned Failed FALSE is returned 2 6 E Developed and manufactured by Step Technica Co Ltd 757 3 Shimofujisawa Iruma Saitama TEL 04 2964 8804 http www steptechnica com info steptechnica com CUnet MKY43 PCI board CUB 43PIC LP User s Manual Document No STD CUB43PCILP V1 3E Issued December 2014
12. is manual describes the CUB 43PCI LP PCI board on which the MKY43 is mounted a kind of CUnet Be sure to read CUnet Introduction Guide before understanding this manual and the CUB 43PCI LP O Target Readers Those who first build on CUnet Those who first use StepTechnica s CUB 43PCI LP to build on CUnet Prerequisites This manual assumes that you are familiar with Network technology Semiconductor products especially microcontrollers and memory Related Manuals CUnet Introduction Guide CUnet Technical Guide CUnet IC MKY43 User s Manual Caution Some terms in this manual are different from those used on our website and in our product brochures The brochure uses ordinary terms to help many people in various industries understand our products Please understand technical information on CUnet Family based on technical documents manuals TEP STECHNICA Co LTD CUB 43PIC LP User s Manual CONTENTS Chapter Hardware 1 1 AUS ii ia 1 1 T2 ET Eelere Tu O alii 1 1 1 3 Specifications of the board COMMECTOSS ccscscscsesesesessseeeenseeeeneneneseneseneeseeeneneneneneneeeneseseneneseeeseseetenenanes 1 2 14 DIP SWITCHES EE 1 3 LS M mory MDI oa 1 4 15 1 Access to MKY 4G E 1 4 1 5 2 Registers unique to CUB 43PCI LP ee esessssssssssessseseesesesesnssssesenesenenessneaeaeaeaeaeaeansnensnenseenenseeseanenanes 1 5 1 6 Access without attached driver diSC cocciccicicicicononsmmsm ceca nenes 1 5
13. lp dll The word secure means that to avoid forced termination of the program by avoiding function call which is not compatible CubGetVersion API obtains the version of DLL The hexadecimal value of version number which this API returns has meanings given in the following The hexadecimal number lower than second digit can be ignored because of backward compatibility however Step Technica recommends not to call API of cub43pcilp dll if the value upper than third digit has been changed Compatibility needs to be checked prior to the initialization Ox 1 0 0 Update number The revision with no specification change such as bug fixes Minor number The revision with backword compatibility such as API addition Major number The revision with no compatibility such as API specification change 2 3 TEP STTECHNICA Co LTD 2 6 2 CubCountDevice Format UINT CUBAPI CubCountDevice void Description This API checks the number of existing CUB 43PCI LP device Parameter None Return value 1 Over 10 boards exist 0 No boards exist Lg 1 to 9 boards exist It s not necessary to call the function if the number of CUB 43PCI LP board is obvious CubOpenHandle must fail if this function does not obtain the return value which is 1 or upper 2 6 3 CubGetLastError Format UINT CUBAPI CubGetLastError void Description This API checks the termination status of API function which the process called last t
14. s shown in Fig 1 1 MCARE Red D LCARE Yellow MON Green Panel CN1 pin CN2 pin e uti 4 TRX MON A green LED connected to MON pin of the MKY43 Lighted with starting communications with the MKY43 5 TRX A yellow LED connected to LCARE pin of the MKY43 LCARE i x Lighted with occurrence of LCARE 8 Shield MCARE A red LED connected to MCARE pin of the MKY43 Lighted with occurrence of MCARE CUnet communication lines ONT CN2 A straight cable for 100BASE TX CAT 5 or upper is applicable to these lines Be sure not to connect them to Ethernet board The panel part is touching with the PC cabinet Connect the PC cabinet to FG with the instruction manual of the PC To connect metal shell and No 8 pin of CN1 CN2 to the panel PAD1 and PAD2 on the board need to be short circuited 1 2 3 Not used 6 7 Panel Fig 1 1 Panel side view The peripheral circuit of CN1 CN2 connectors is shown in Fig 1 2 di N 1C3 SN751177 R4 1009 1 4W T1 SPT401 DMX 14 1 6 e MKY43 TXD 18 La SE a 3 1 13 Gh a 3 4 2 SW1 CAS120 A MKY43 RXD 3 1 MKY43 TXE 12 d PAD 4 Panel F G 10 9 II CN1 CN2 TM11R 5 88 50 NS N Ze 5 5V pie RE o vcc ct PAD2 0 14 50V 8 Panel F G GND LO o 4 717 Ne HO DB Fig 1 2 Connector peripheral circuit 1 2 TEP STECHNICA Co
15. t I 0 lt Count i CubHandle i CubOpenHandle i if CubHandle i INVALID_HANDLE_VALUE exit 1 Access to CUB 43PCI LP is valid at this position 3 Close the handle which terminated the control for int I O lt Count i CubCloseHandle i 2 2 TEP STECHNICA Co LTD Chapter 2 Software 2 5 Limitations API in this library cannnot be used at the same time from multiple threads Consider not to generate a collective call if the application has multithreaded structure 2 6 API specification The following API function specifications in DLL folder in the disc is given in this section Table2 1 API function Function Description CubGetVersion Obtain the version information of library CubCountDevice Obtain the number of CUB 43PCI LP devices CubGetLastError Obtain the termination status of CUB API function CubOpenHandle Open handles to CUB 43PCI LP board CubCloseHandle Close handles to CUB 43PCI LP board CubReadByte CubReadWord Read access to CUB 43PCI LP board CubWriteByte CubWriteWord Write access to CUB 43PCI LP board 2 6 1 CubGetVersion Format UINT CUBAPI CubGetVersion void Description This API checks the version of library Parameter None Return value Unsigned integer value indicates the version of library Remark For more secure utility Step Technica recommends to check the compatibility with DLL via user s application using cub43pci

Download Pdf Manuals

image

Related Search

Related Contents

Manual_CC Witness  Denon AVC-A1HD AV receiver  Proceedings of DETC 2003 - Advanced Science and Automation Corp.  Bosch Single Door User's Manual  防水荷台カバー 取付取扱説明書 スバル用  Installation and Service Instructions L Series Pumps  高齢者社会と調和する屋外搭乗型生活支援ロボットの 安全  Fargo DTC550 User Guide - Spanish  T-ME32256MN-F42.  Instruction Manual  

Copyright © All rights reserved.
Failed to retrieve file