Home

PCAN-RS-232 - User Manual

image

Contents

1. CE Symbol C 4 EC Directive The following applies to the PCAN RS 232 product IPEH 002100 This product fulfills the requirements of EC directive 2004 108 EG on Electromagnetic Compatibility and is designed for the following fields of application as per the CE marking Electromagnetic Immunity Emission DIN EN 61326 1 publication date 2008 06 Electrical equipment for measurement control and laboratory use EMC requirements Part 1 General requirements IEC 61326 1 2005 German version EN 61326 1 2006 10 Declarations of Conformity In accordance with the above mentioned EU directives the EC declarations of conformity and the associated documentation are held at the disposal of the competent authorities at the address below PEAK System Technik GmbH Mr Wilhelm Otto Roehm Strasse 69 64293 Darmstadt Germany Phone 49 0 6151 8173 20 Fax 49 0 6151 8173 29 info peak system com lahh Signed this 15 day of February 2012 25 P CAN RS 232 User Manual System Appendix B Dimension Drawings 68 0 mm 45 0 mm 30 0 mm 60 0 mm 25 5 mm 22 5 mm Ql N i 3 3 The figures do not show the actual size of the product 26 PCAN RS 232 User Manual System Appendix C Port Assignment of the Microcontroller The following table lists the used inputs and outputs ports of the LPC2194 01 microcontro
2. R30 for pin 5 TCK R31 for pin 9 RTCK 10 PCAN RS 232 User Manual System 2 3 Coding Solder Jumpers The four positions for coding solder jumpers IDO ID3 are each assigned to one port of the LPC2194 01 microcontroller uC o m J v o z Coding solder jumpers on the circuit board Position 0 1 2 3 Port uC P0 4 P0 5 P0 6 P0 7 Position is Status at the port bridged Low open High The status of the ports is relevant in the following cases The loaded firmware is programmed so that it reads the status at the corresponding ports of the microcontroller For example the activation of certain functions of the firmware or the coding of an ID is conceivable here For a firmware upload via CAN the PCAN RS 232 converter is identified by a 4 bit ID which is determined by solder jumpers A 11 PCAN RS 232 User Manual System bit is set 1 when the corresponding solder jumper position is open default setting ID 15 all positions open Position 0 1 2 3 Binary digit 0001 0010 0100 1000 Decimal equivalent 1 2 4 8 See also section 5 1 Uploading Firmware via CAN on page 17 12 PCAN RS 232 User Manual System 3 Operation The PCAN RS 232 converter is activated by applying the supply voltage to the respective input pins see chapter 2 Connectors and Coding Solder Jumpers on page 7 The firmware in the flash memory is subsequently run The status indication of the LED depends on t
3. from 8 to 30 V Extended operating temperature range from 40 to 85 C 40 to 185 F Import of a new firmware via CAN 4 bit coding of the hardware by solder jumpers Plastic casing 1 2 Scope of Supply PCAN RS 232 in a plastic casing 10 pin screw terminal block Windows development software Yagarto GNU ARM toolchain flash program 1 3 Prerequisites for Operation Power supply in the range of 8 to 30 V DC For uploading a new firmware via CAN e CAN interface of the PCAN series for the computer e g PCAN USB e Operating system Windows 8 7 Vista XP 32 64 bit PCAN RS 232 User Manual System 2 Connectors and Coding Solder Jumpers The PCAN RS 232 converter has a 10 pole screw terminal block for connecting the following components Supply voltage CAN RS 232 Digital input and digital output CAN bootloader activation For direct access to the debugging ports JTAG of the micro controller an additional yet not equipped connector panel is available on the circuit board of the converter Furthermore the board has four coding solder jumpers in order to assign a fixed status to the corresponding input bits of the micro controller A concrete application is to identify a PCAN RS 232 converter on the CAN bus for a firmware upload especially if there are several converters connected and in operation The following subsections describe each connector assignment PCAN RS 232 User Manual
4. JTAG interface JTAG interface JTAG interface System Signal Active Function connection UC Boot CAN i Lovv V24 en High Svvitch High CAN en 1 Low CAN_RxD CAN_TxD V Power Low Low Low RTCK TDO TDI TCK TMS TRST Activate flashing via CAN with 500 kbit s STB 7 due to wiring High active Deactivate the RS 232 component by Low level activated by default possibility for energy saving Digital input Din STB 6 due to wiring Low active Activate the CAN transceiver CAN receive CAN transmit Measure voltage U maximum value OxO3FF corresponds to 33 1 V Lies on GND Lies on 1 8 V microcontroller supply LED red LED green Digital output Dout STB 5 Low side switch Debugging J5 9 Debugging J5 7 Debugging J5 8 Debugging J5 5 Debugging J5 6 Debugging J5 10 2 After resetting the microcontroller the CAN transceiver is deactivated and must be reactivated to use it 3 It may occur that the LED glows slightly when the output is inactive If you would like to prevent this your firmware must change the port type to input I Before switching on the LED again the respective port type must be set to output O 28
5. PEAK System 2 1 Screw Terminal Block Terminal Identifier Function Vb Power supply 8 30 V DC GND Ground CAN_L CAN_H DOut Digital output Low side switch Differential CAN signal Digital input Low active Boot CAN CAN bootloader activation High active D Ground RS 232 RxD 10 RS 232 TxD Z CO CON i O OI Bi OIN RS 232 interface For further connection details that are not needed for programming of the PCAN RS 232 converter because of implementation in a library see also Appendix C Port Assignment of the Microcontroller on page 27 PCAN RS 232 User Manual m System 2 2 J5 Connector Panel JTAG Ports The unpopulated connector panel J5 on the PCAN RS 232 converter s circuit board provides an access option to the JTAG ports of the LPC2194 01 microcontroller uC for hardware debugging 7RES 1 GND J5 JTAG JTAG panel on the circuit board not equipped Pin Signal Port uC Internal wiring 152 GND 3 Reset Reset Pull up 4 3 3 V 5 TCK P1 29 Pull down R30 6 TMS P1 30 Pull up 7 TDO P1 27 Pull up 8 TDI P1 28 Pull up 9 RTCR P1 26 Pull dovvn R31 10 TRST P1 31 Pull up If constant internal pull dovvn vviring of the TCR or RICR signals is not suitable for your purposes you can remove the respective pull PCAN RS 232 User Manual m System down resistor on the circuit board of the PCAN RS 232 converter by soldering it out Pull down resistors on the circuit board bottom
6. S 232 and vice versa It allows to configure the data transfer as well as the hardware with serial control commands 15 PCAN RS 232 User Manual 4 3 1 System Compiling a Firmware Example 2 Do the following to compile a firmware example under Windows 1 From the provided DVD copy the subdirectory of the desired example from the Example directory to the local hard disk Open a command prompt by using the Windows Start menu Alternatively you can press the key combination A R and enter cmd exe as program to be executed At the command prompt change to the previously copied directory Execute the following command in order to clean up the target directories e g out from files that have been generated earlier make clean Execute the following command to compile the example firmware make all If the compiler has finished without errors Errors none you can find the firmware file with the extension bin in the subdirectory out This file is then used for firmware upload to the PCAN RS 232 converter 16 PCAN RS 232 User Manual System 5 Firmware Upload The microcontroller in the PCAN RS 232 converter can be equipped with new firmware in two different ways Via CAN The scope of supply includes the Windows program PCAN Flash to transfer the firmware from the computer to the PCAN RS 232 converter This is the recommended method for a firmware upload Via the serial ports of th
7. Skip Delete Sector C Skip Sectors Sectors Flash Type UserFlash a Jones Dependent on Flash Types 6 Click on the button next to the File name field in order to select the desired firmware file bin to be uploaded 7 Click on the OK button 8 Make sure that the PCAN Flash program is connected with 500 kbit s to the available CAN interface at the computer Connected to PCAN PCI Channel 1 500 kBit s Overruns 0 PCAN Flash Display of a connection in the status bar on the bottom PCAN RS 232 User Manual PEAK System If not click the Connect button in order to change the selection in the according dialog box Available PCAN hardware BW PCAN PCI at PCI Bus 3 Device 0 Channel 1 BW PCAN PCI at PCI Bus 3 Device 0 Channel 2 Bit rate Bus timing register value Hex 001 TEI Gara 9 Click the s Detect button in order to detect the PCAN RS 232 converter connected to the CAN bus An entry for the converter appears in the main window CE Application PCAN Module Help Haf RI 4 el Me CFL DO ni Module No Hardware Type Flash Type 15 PCAN RS 232 Version Date Mode LPC_IAP_240K 2 03 23 9 2011 active Detecting Detecting finished Connected to PCAN PCI Channel 1 500 kBit s Overruns 0 QXmtFull 0 10 Select the entry for the PCAN RS 232 converter 11 Click the amp Program button in order to start uploading the new firmw
8. are to the converter 21 PCAN RS 232 User Manual System Observe the status indication at the bottom of the vvindovv The process was successful if the last message to appear is Flashing of module s finished 12 Disconnect the power supply from the converter 13 At the converter disconnect Boot CAN from U You can now use the PCAN RS 232 converter with the new firmware 5 2 Uploading Firmware via the Serial Connections This section shows how to activate the microcontroller s boot loader The actual upload process depends on the upload software used which is supplied by a third party and is not described here 0 Important note When uploading a firmware via the RS 232 interface the CAN bootloader may be overwritten Afterwards a firmware upload via CAN is not possible anymore 2 Do the following to activate the microcontroller s bootloader 1 Switch the PCAN RS 232 converter off by disconnecting it from the power supply 2 Open the casing of the converter by removing the screws in order to gain access to the circuit board 3 Shorten the jumper JP4 sboot e g with a temporary solder connection 22 PCAN RS 232 User Manual m System JP4 H sboot 4 Establish a serial connection to the computer or the pro gramming adapter via the RS 232 connectors RxD 9 and TxD 10 5 Switch on the PCAN RS 232 converter by applying a voltage supply Due to the Low level on p
9. d DVD change to the following directory Develop Microcontroller hardware PCAN RS 232 Copy the subdirectory PcanFlash to the local hard disk The contained Windows software that copies the Firmware via CAN PcanFlash exe can only be started from a data carrier that is writable 18 PCAN RS 232 User Manual 5 1 3 System Uploading the Firmware 2 The process of transferring a new firmware to the PCAN RS 232 converter is as follows 1 Ensure that a connection is established between the Boot CAN and U connections of the converter details see above Switch on the converter by applying a voltage supply Due to the High level at the Boot CAN connection the converter starts the CAN bootloader This is indicated by the LED blinking orange Run the program PcanFlash exe under Windows from the local hard drive Click on the El Options button in order to call up the dialog box From the Hardware Profile dropdown list select the PCAN RS 232 entry 19 Hardware Profile PCAN RS 232 User Manual PEAK Filename Block size bytes 512 Status timeout ms 3000 Process retry 0 L J Cl Erase all Auto reset System Reserved area Upload adress Start adress End adress Start adress End adress 000000 OOLFFF 002000 03DFFF from Bin File Flash offset address 000000 CRC mode CRC array CRC typ depends on CRC array z CRC array address 03DF00
10. da A Ly 4 hy O o o V Ha gt oD gt o o ade UM N ol V Ses oO C Cp oD ep oz U aU WD PCAN RS 232 User Manual m System Products taken into account Product Name Model Part number PCAN RS 232 Plastic casing screw terminal block IPEH 002100 Product names mentioned in this document may be the trademarks or registered trademarks of their respective companies They are not explicitly marked by and CRT 2013 PEAK System Technik GmbH PEAK System Technik GmbH Otto Roehm Strasse 69 64293 Darmstadt Germany Phone 49 0 6151 8173 20 Fax 49 0 6151 8173 29 www peak system com info peak system com Document version 1 1 0 2013 03 21 PCAN RS 232 User Manual System Contents 1 Introduction 5 1 1 Properties at a Glance 5 1 2 Scope of Supply 6 1 3 Prerequisites for Operation 6 2 connectors and Coding Solder Jumpers 7 2 1 Screw Terminal Block 8 2 2 J5 Connector Panel JTAG Ports 9 2 3 Coding Solder Jumpers 11 3 Operation 13 4 software 14 4 1 Installing the GNU ARM Toolchain 14 4 2 Library 15 4 3 Firmware Examples 15 4 3 1 Compiling a Firmware Example 16 5 Firmware Upload 17 5 1 Uploading Firmware via CAN 17 5 1 1 System Requirements 17 Seda Preparing Hardware and Software 18 5 1 3 Uploading the Firmware 19 5 2 Uploading Firmware via the Serial Connections 22 6 Technical Specifications 24 Appendix A CE Certificate 25 Appendix B Dimension Drawi
11. e microcontroller only in special cases For this the access to the circuit board of the PCAN RS 232 converter is needed 5 1 Uploading Firmware via CAN 5 1 1 System Requirements The following prerequisites must be given so that the PCAN RS 232 converter can be updated with new firmware CAN interface of the PCAN series for the computer e g PCAN USB CAN cabling between the CAN interface and the PCAN RS 232 converter with proper termination 120 Q on each end of the CAN bus Operating system Windows 8 7 Vista XP 32 64 bit If you want to update several PCAN RS 232 converters connec ted to the same CAN bus you must assign a unique ID to each converter See section 2 3 Coding Solder Jumpers on page 11 17 PCAN RS 232 User Manual m Jsle System Preparing Hardware and Software Perform the following steps for preparation of the hardware 1 Switch the PCAN RS 232 converter off by disconnecting it from the power supply Establish a connection between Boot CAN and U at the connectors of the converter Connection at the screw terminal block between terminals 1 and 7 This measure later applies the Boot CAN connection with a high level Connect the CAN bus of the converter with a CAN interface connected to the computer Pay attention to the proper termination of the CAN cabling 2 x 120 0 Perform the following steps for preparation of the software 1 On the supplie
12. he used firmware On delivery the PCAN RS 232 is supplied with an example firmware that routes from CAN to RS 232 and vice versa It allows to confi gure the data transfer as well as the hardware with serial control commands The LED is green when the converter is switched on and blinks during an established connection to a serial host e g the shareware program CANHacker You can find the documentation about the example firmware on the supplied DVD in the directory branch Develop Microcontroller hardware PCAN RS 232 Example and there as HIML pages under 6 CAN TO SER BY COMMAND help index html 13 PCAN RS 232 User Manual System 4 Software This chapter covers the installation of the Yagarto GNU ARM tool chain and gives notes about the softvvare library and the firmvvare examples Softvvare source code and additional information are included on the supplied DVD in the follovving directory branch Develop Microcontroller hardware PCAN RS 232 4 1 Installing the GNU ARM Toolchain To compile the code examples and the custom firmware code under Windows install Yagarto on your computer Yagarto is a collection of tools to develop applications for ARM processors and micro controllers on Windows platforms The collection includes the GNU GCC compiler for C and C Make and further tools Further information about Yagarto www yagarto de System requirement Windows 8 7 Vista XP 32 64 bit D Do the follow
13. ing to install Yagarto 1 From the directory branch on the provided DVD mentioned above change to the Compiler subdirectory The directory contains the two installation programs yagarto exe and yagarto tools exe 2 Execute the first installation program and follow its instructions If you don t want to use the default destination folder make sure that your customized path doesn t contain any spaces Otherwise compile operations will not work later 14 PCAN RS 232 User Manual System 3 Afterwards execute the second installation program and follow its instructions In the system environment the installation programs create search paths for the executable files These new search paths are effective only for programs and command prompts that are started afterwards 4 2 Library The development of applications for the PCAN RS 232 is supported by the library 1ibPCAN RS 232 GNU s a stands for version num ber a binary file You can access all resources of the converter by means of this library The library is documented in the header files x h The files are located in each example directory 4 3 Firmware Examples On the DVD the Example subdirectory contains source code for several firmware examples that you can use and test directly and that you can reuse for custom firmware On delivery the PCAN RS 232 converter is supplied with the exam ple firmware 6 CAN TO SER BY COMMAND that routes from CAN to R
14. ller uC and their function in the PCAN RS 232 converter It is meant as supplemental information The conver ter s functionality is implemented by the supplied library Note Get additional information about the LPC2194 01 micro controller on the homepage of NXP www nxp com Port I O P0 0 O P0 1 P0 2 IO P0 3 IO P0 4 P0 5 P0 6 P0 7 P0 12 O P0 13 I O P0 14 1 STB n J4 5 n JPx uC function Signal Active Function connection UC TxD UARTO TxDO Serial communication Transmit STB 10 RS 232 levels RxD UARTO RxDO Serial communication Receive STB 9 RS 232 levels SCL SCL I C bus to the SDA SDA Atmel AT24C256B EEPROM Port pin IDO High Port pin ID1 High Coding solder jumpers on Port pin ID2 High board ID 0 3 bridged Low Port pin ID3 High Port pi di ae Reserved Port pin Port pin Boot_ser Low Activate flashing via serial interface JP4 Terminal n on the screw terminal block Pin n of the respective connector panel on the circuit board Jumper position on the circuit board set active 27 PCAN RS 232 User Manual Port P0 15 P0 17 P0 19 P0 22 P0 25 TD1 P0 28 P0 29 P0 30 P1 16 P1 17 P1 21 P1 26 P1 27 P1 28 P1 29 P1 30 P1 31 I O uC function OS OS Port pin Port pin Port pin Port pin RD1 TD1 Analog input Analog input Analog input Port pin Port pin Port pin JTAG interface JTAG interface JTAG interface
15. ngs 26 PCAN RS 232 User Manual System Appendix C Port Assignment of the Microcontroller 27 PCAN RS 232 User Manual System 1 Introduction The PCAN RS 232 converter has one CAN channel and one RS 232 port The data traffic between CAN and RS 232 is controlled by a freely programmable microcontroller Thus devices without CAN connection e g PLC systems can be connected to a CAN bus via almost any RS 232 protocol The provided library and Yagarto toolchain can be used to produce your own firmware and then transfer it to the converter via CAN This gives a whole range of options for manipulation evaluation filtering and routing of the data traffic On delivery the PCAN RS 232 converter is supplied with an example firmware that routes from CAN to RS 232 and vice versa It allows to configure the data transfer as well as the hardware with serial control commands The corresponding source code is included 1 1 Properties at a Glance Microcontroller of the NXP LPC21 series 16 32 bit ARM CPU External 32 kByte EEPROM High speed CAN channel ISO 11898 2 with 40 kbit s to 1 Mbit s lower bit rates on request Data transfer between CAN and RS 232 with a maximum bit rate of 115 200 bit s Additional digital input Low active and output Low side switch Duo LED for status indication 10 pole screw terminal block Phoenix exposed connector contacts on request PCAN RS 232 User Manual m Supply voltage
16. ort P0 14 of the microcontroller the converter starts the bootloader for serial transfer The LED stays off 23 PCAN RS 232 User Manual System 6 Technical Specifications Functionality Microcontroller Add on memory CAN RS 232 Digital input Din Digital output Dout Status indication Connectors Power supply Supply voltage U Current consumption Measures Size Weight Environment Operating temperature Temperature for storage and transport Relative humidity EMC Ingress protection IEC 60529 NXP LPC2194 01 clocked with 60 MHz 32 kByte EEPROM Atmel AT24C32B via I C High speed CAN ISO 11898 2 Transceiver NXP TJA1040T Bit rates 40 kbit s 1 Mbit s lower bit rates on request No termination RxD and TxD serial connections with RS 232 levels Low active max level U Low side switch max 60 V 0 7 A Duo LED Screw terminal block 10 pin pitch 3 5 mm Phoenix Contact MC 1 5 10 ST 3 5 1840447 8 30 V DC max 70 mA at 12 V Casing 68 x 57 x 21 mm VV x Dx H Circuit board 51 x 54 mm W x D See also dimension drawings in Appendix A on page 25 36g 40 85 C 40 185 F 40 100 C 40 212 F 15 90 not condensing EN 61326 1 2006 10 EC directive 2004 108 EG IP20 24 PCAN RS 232 User Manual System Appendix A CE Certificate PCAN RS 232 IPEH 002100 EC Declaration of Conformity PEAK System Technik GmbH Notes on the

Download Pdf Manuals

image

Related Search

Related Contents

Multitest USER MANUAL  

Copyright © All rights reserved.
Failed to retrieve file