Duplication (copying, printing, or other forms) and the electronic distribution of this document is only allowed with explicit permission of PEAK-System Technik GmbH. PEAK-System Technik GmbH reserves the right to change technical data without prior announcement. The general business conditions and the regulations of the license agreement apply.
C and C++ and is then transferred to the module via CAN. Various programming examples facilitate the implementation of own solutions. On delivery, the PCAN-RS-232 is provided with a demo 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.
2 Connectors and Coding Solder Jumpers PCAN-RS-232 with 10 connector poles and one status LED The PCAN-RS-232 converter has a 10-pole screw terminal block for connecting the following components: Supply voltage RS-232 Digital input and digital output CAN bootloader activation...
Page 8
Furthermore the board has four coding solder jumpers in order to assign a fixed status to the corresponding input bits of the microcontroller. 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.
RS-232 interface RS-232 TxD 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. 2 Connectors and Coding Solder Jumpers PCAN-RS-232 User Manual 2.0.0...
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 (μC) for hardware debugging. Gain access to the unpopulated J5 connector panel: Risk of short circuit! Soldering on the PCAN-RS-232 may only be performed by qualified electrical engineering personnel.
(ID 0 - 3) are each assigned to one port of the microcontroller LPC2194/01 (μC). A bit is set (1) if the corresponding solder field is open. A concrete application is the identification of a PCAN-RS-232 on the CAN bus during a firmware upload, especially if several devices are connected and in operation.
Page 14
Activate coding solder bridges: Risk of short circuit! Soldering on the PCAN-RS-232 may only be performed by qualified electrical engineering personnel. Attention! Electrostatic discharge (ESD) can damage or destroy components on the card. Take precautions to avoid ESD. 1. Disconnect the PCAN-RS-232 from the power supply.
The status indication of the LED depends on the 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 configure the data transfer as well as the hardware with serial control commands.
PEAK-System programmable hardware products. For each supported product, examples are included. On delivery the PCAN-RS-232 converter is supplied with the example firmware 6_CAN_TO_SER_BY_COMMAND 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.
Page 17
Creating your own firmware: 1. Create a folder on your computer. We recommend using a local drive. 2. Unzip the development package PEAK-DevPack.zip completely into the folder. No installation is required. 3. Run the script SetPath_for_VSCode.vbs. This script will modify the example directories for the Visual Studio Code IDE.
8. Use the PEAK-Flash tool to upload your firmware to the PCAN-RS-232 via CAN. The tool is either started via the menu Terminal > Run Task > Flash Device or from the subdirectory of the development package. Chapter 5.1.3 Firmware Transfer describes the process.
CAN bus with 120 Ohm each. Operating system Windows 11 (x64), 10 (x86/x64) If you want to update several PCAN-RS-232 converters on the same CAN bus with new firmware, you must assign an ID to each converter. See section 2.3 Coding Solder Jumpers.
Page 20
Pay attention to the proper termination of the CAN cabling (2 x 120 Ohm). 4. Reconnect the power supply. Due to the High level at the Boot connection, the PCAN-RS-232 starts the CAN bootloader. This can be determined by orange quickly blinking of the status LED.
Page 21
5.1.3 Firmware Transfer A new firmware version can be transferred to the PCAN-RS-232. The firmware is uploaded via a CAN bus using the Windows software PEAK-Flash. Transfer firmware with PEAK-Flash: The software PEAK-Flash is included in the development package, which can be downloaded via the following link: www.peak-system.com/quick/DLP-DevPack...
Page 22
6. In the drop-down menu Bit rate, select the nominal bit rate 500 kbit/s. 7. Click on Detect. In the list, the PCAN-RS-232 appears together with the Module ID and Firmware version. If not, check whether a proper connection to the CAN bus with the appropriate nominal bit rate exists.
Page 23
10. Select the corresponding file (*.bin). 11. Click Next. The Ready to Flash dialog appears. 12. Click Start to transfer the new firmware to the PCAN-RS-232. The Flashing dialog appears. 13. After the process is complete, click Next. 14. You can exit the program.
CAN bootloader may be overwritten. Afterwards, a firmware upload via CAN is not possible anymore. Activate the microcontroller's bootloader: Risk of short circuit! Soldering on the PCAN-RS-232 may only be performed by qualified electrical engineering personnel. Attention! Electrostatic discharge (ESD) can damage or destroy components on the card.
Appendix C Port Assignment of the Microcontroller The following table lists the used inputs and outputs (ports) of the LPC2194/01 microcontroller (μC) and their function in the PCAN-RS-232 converter. It is meant as supplemental information. The converter's functionality is implemented by the supplied library.
Need help?
Do you have a question about the PCAN-RS-232 and is the answer not in the manual?
Questions and answers