Page 1
PROPRIETARY NOTICE All rights reserved by Janz Tec AG. No parts of this technical manual may be modified, copied, or reproduced in any form or by any means for commercial use without the prior written permission of Janz Tec AG, Germany.
6.2.2.2 sc16is7xx : Serial RS232/RS485 driver ..............21 6.2.2.3 mcp251xfd : CAN driver...................22 6.2.2.4 rv8803: RTC ......................22 Janz Tec AG Linux Image for emPC-A/RPI4 ..............23 General Information ......................23 Optional Software.......................23 6.5.1 CODESYS Control for Raspberry Pi SL Information ............23 6.5.1.1 Information .......................24 6.5.1.2...
Page 4
(Hardware and Software Manual) • Contents User LEDs ..........................25 I2C Bus ..........................25 7.2.1 I2C-0 (ID) ........................25 7.2.2 I2C-1 ..........................25 SPI Bus ..........................26 CAN ............................26 Serial Port (RS232/RS485) ....................26 Digital IO ..........................27 Console RS232 ........................27 Power Supply Monitor ......................28 7.8.1 Timing Diagrams ......................29...
Page 5
(Hardware and Software Manual) • Contents List of Figures figure 1: emPC-A/RPI4 block diagram ..................... 6 figure 2: emPC-A/RPI4 mounting options: Desk-top and DIN Rail ............10 figure 3: Multi connector for IO (Power Supply Pins highlighted) ............11 figure 4: RS485 signaling ........................14 figure 5: digital IO detailed schematic ....................15...
(Hardware and Software Manual) • Contents About this Manual This is the hardware manual for the emPC-A/RPI4 embedded PC. Conventions If numbers are specified in this manual, they will be either decimal or hexadecimal. We use C-notation to identify hexadecimal numbers (the 0x prefix).
(Hardware and Software Manual) • Introduction 1 - 6 Functional Overview The processing core of the emPC-A/RPI4 is the Raspberry Pi Compute Module 4. A Janz Tec specific baseboard implements the specific features. Refer to figure 1 for the block diagram. 26pin IO header : int.
(Hardware and Software Manual) • Safety Instructions 2 - 7 Safety Instructions Refer to page iv for explanation of the warning notice system. The product described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation for the specific task, in particular its warning notices and safety instructions.
(Hardware and Software Manual) • Safety Instructions 2 - 8 Ambient and Environmental Conditions CAUTION: Damage Do not operate the product beyond the specified ambient conditions DANGER: Explosive Risk Do not operate the product in potentially explosive atmosphere. NOTICE: EMI This product is a class A device.
Janz Tec electronic products are labelled with the crossed-out trash can. This means that the products must not be disposed into the domestic garbage. Used Janz Tec products have to be recycled properly. If in doubt, you can return them to Janz Tec at your own expense. Refer to https://www.janztec.com/recycling or contact Janz Tec under recycling@janztec.com for more instructions how and where to return the products.
The product can be operated with DC power supply from 9 to 34 V.32 Mounting The emPC-A/RPI4 is intended for 35mm DIN-rail mount. It can as well be used on the desktop. Refer to figure 2 for the recommended mounting orientation.
(Hardware and Software Manual) • Installation 4 - 11 Connectors and Operators The 24 pin multi connector provides interface to many of the emPC-A/RPI4 interfaces that are described later. screw locking lock-and- release locking figure 3: Multi connector for IO (Power Supply Pins highlighted) A suitable mating connector with lock-and-release levers is Phoenix Contact order number 1790580.
(Hardware and Software Manual) • Installation 4 - 12 4.2.2 Graphics connector (HDMI) A single HDMI type A (Standard Size) connector is available to attach monitors. Data2+ 11 GND 12 Clock- Data2- 13 CEC Data1+ 14 N.C. Data1- 16 SCL...
(Hardware and Software Manual) • Installation 4 - 13 4.2.5 Micro USB slave interface (service only) A micro USB port is available for service purpose. It allows to configure the CM4 module when a blank eMMC or SDcard is installed, or to perform updates.
(Hardware and Software Manual) • Installation 4 - 14 Transmitter Transmitter Startbit Databit 0 tristate idle 1 = Mark 0 = Space 1 = Mark "0V" figure 4: RS485 signaling Note that D+ corresponds to pin “A” of the transceiver chip. However this is signal B according to the EIA-485 or Profibus standards.
(Hardware and Software Manual) • Installation 4 - 15 4.2.9 Digital IO Digital input (DI1-DI4) and output (DO1-DO4) ports are provided on the multi IO connector (refer to table 9). GND-IO VIO (10..34 VDC) 10 DI1 table 9: Digital IO connector pins...
(Hardware and Software Manual) • Installation 4 - 16 4.2.10 WLAN Antenna If option is installed. Antenna Input/Output GND (Return) RP-SMA WARNING: Health Impact The antenna of this product must not be installed closer than 20 cm (0,2 m) to human bodies.
(Hardware and Software Manual) • Maintenance 5 - 18 Micro SDcard Replacement NOTICE Power must be turned off before removing or inserting the micro SDcard Refer to figure 6 to identify the location of the Micro SDcard. Remove the DIN rail clip if installed.
2. Disconnect the power supply from the power inlet and disconnect any external devices. 3. Disassemble the housing (refer chapter 5) and locate the battery on the Janz Tec board. 4. Remove the battery from the holder (See figure 9) 5.
For more information, refer to 6.2. Of course, you can order the emPC-A/RPI4 without software, so you can choose a Raspberry PI 4 compatible operating system of your choice and install it manually on a µSD card. (Raspberry PI OS recommended) Refer to 6.1.1 on how to install an image from the official Raspberry Pi website.
This script is only compatible to Raspbian based installations! To automatically install all configuration entries and drivers to enable the additional features of the emPC-A/RPI4 (RTC, CAN, RS232, RS485, TPM and LTE), we provide an installation script and installation instructions available at: https://github.com/janztec/empc-arpi4-linux-drivers...
~$ canbusload can0@1000000 -r -t -b -c 6.2.2.4 rv8803: RTC The emPC-A/RPI4 driver installation script installs the RTC service, so that the RTC automatically sets the system time on every boot during the initramfs execution. Reading the RTC time:...
Even with the standard Raspberry PI OS without any modifications, the CODESYS Control for Raspberry Pi SL can control all digital IOs on the emPC-A/RPI4 by using the GPIO device already included in the CODESYS device repository. (Red and green LED also controllable by this GPIO device).
(Hardware and Software Manual) • Operating System and Drivers 6 - 24 CODESYS Features Standard Raspberry PI OS Raspberry PI OS + emPC-A/RPI4 driver package CAN/CANopen *1 not supported supported (using SocketCAN) Modbus RTU Master *2 console (RS232, 2wire)
This chapter gives technical information on how to program, or adapt existing Linux drivers to the emPC-A/RPI4 hardware and is intended for users familiar with creating own Linux kernels and drivers. For standard Linux users, optionally our emPC-A/RPI4 driver package (chapter 6.2) is available and this already includes all required drivers, therefore no driver programming is needed to use the emPC- A/RPI4 hardware and it’s interfaces.
(Hardware and Software Manual) • Programming Information 7 - 26 SPI Bus The emPC-A/RPI4 utilizes the CM4 SPI-6 bus to connect CAN, UART and TPM. Type Device Chip Select Interrupt SPI CLK (max) CAN-FD MCP2518FD CE0# (GPIO18) GPIO25 17 MHz...
(Hardware and Software Manual) • Programming Information 7 - 27 Digital IO The digital inputs and outputs are controlled by Raspberry PI GPIO signals. GPIO GPIO4 GPIO5 GPIO6 GPIO7 GPIO12 (PWM capable) GPIO13 (PWM capable) GPIO22 GPIO23 To turn digital output on (drive VIO to the output), set the GPIO to high state. All other states (low, high-Z or weak pullup) will turn the digital output off.
(Hardware and Software Manual) • Programming Information 7 - 28 Power Supply Monitor The power supply monitor unit (PMON) can be used to monitor the input voltage, and to program thresholds, at which the power supply is turned off (under voltage lockout). Refer to figure 11 for a block diagram of the PMON.
(Hardware and Software Manual) • Programming Information 7 - 29 7.8.1 Timing Diagrams Assumes VS is above Vs0+Hyst all the time Hyst. Hyst. Vin0 <Tin00 Hyst. Vin1 Hyst. Vin2 Tin00 no P-BTN required, system starts Tin00 automatically after power is applied...
(Hardware and Software Manual) • Programming Information 7 - 30 7.8.2 State Machine In figure 14 you find the basic state machine of the power management CPU. It is shown here to allow a better understanding of operation. POWER=on (!)
(Hardware and Software Manual) • Programming Information 7 - 31 7.8.3 I2C Communication The I2C interface is used to transfer data between main CPU and PMON. Note that PMON always acts as slave in I2C communication. Refer to section Fehler! Verweisquelle konnte nicht gefunden werden.
Page 34
(Hardware and Software Manual) • Programming Information 7 - 32 TIN11 TIN21 TWUP 26..29 Reserved WDOG WDOGINI 32..255 Reserved Indicated register settings can be internally saved to EEPROM. These values will then be restored upon power on of PMON. The EEPROM has a limited endurance of 50000 save operations.
Page 35
(Hardware and Software Manual) • Programming Information 7 - 33 CONTROL Pointer 1 (16bit, ro) VSR IXP NOA VSB RESET: Restored from EEPROM VSBTNMODE If this bit is set, the VS input (mid contact on power connector) act as a power button input.
Page 36
(Hardware and Software Manual) • Programming Information 7 - 34 CMDCODE RESET: CMDCODE To trigger functions in the PMON firmware, write the corresponding command code into this register. Once the command has completed, the register is cleared to zero by the PMON firmware.
Page 37
(Hardware and Software Manual) • Programming Information 7 - 35 VIN2 RESET: Restored from EEPROM VIN2 If the power supply voltage level is below VIN2, the power supply is immediately turned off. This state can be left if input voltage level is above VIN2+VHYST for longer than TIN21.
Page 38
(Hardware and Software Manual) • Programming Information 7 - 36 When VS is below the VS0 threshold for longer than TS0, then a system shutdown is triggered. If VS passed VS0+VHYST before TS0 expires, then no action is taken.
(Hardware and Software Manual) • Programming Information 7 - 37 PMON is in the power off state and is waiting for a start event for longer than TWUP seconds. WDOG Pointer 30 (16bit, wo) reserved WDDATA System-POWERON: loaded from WDOGINI...
(Hardware and Software Manual) • Programming Information 7 - 38 supported operating value. No checks are made on the timing parameters. RESET_ERR Reset the PMON MCU reset and watchdog information in the STATUS register. POWERCYC Trigger a power cycle (forcing power down and up again).
(Hardware and Software Manual) • Appendices 8 - 39 Appendices Technical Data Only CM4 features usable on emPC-A/RPI4 are listed. Processing Core BCM2711, up to 1500MHz quad-core 64bit ARMv8 Cortex A72 Memory Main Memory Up to 8 GB SDRAM...
Page 42
(Hardware and Software Manual) • Appendices 8 - 40 Inrush Current (max) Power Dissipation External Load Capabilities +5V (USB) Max. 500 mA per USB port, max 750 mA for all USB ports Environmental Specifications Ambient Temperature -20 .. +TBD °C (vertical orientation / wall and DIN rail mounting) operating -20 ..
(Hardware and Software Manual) • Appendices 8 - 41 References These references direct you to manuals and specifications that you might need to know when you attempt to program the product. Most of the documents can be downloaded from the Internet. Look for the WWW servers of the component/chip manufacturers.
(Hardware and Software Manual) • Appendices 8 - 43 CM4 GPIO Usage GPIO Signal Remarks ID-SD ID-SC SDA1 Internal I2C devices SCL1 Internal I2C devices Digital Input Digital Input Digital Input Digital Input SPI0_CE0 Expansion Connector, use as SPI0/I2C4/UART4...
(Hardware and Software Manual) • Appendices 8 - 44 Port Expander Usage The I2C port expander MCP23018 has the functions as described below. After reset all port expander outputs are in “1” state (=high zero on output). Port Function...
(Hardware and Software Manual) • Appendices 8 - 45 Expansion Connector To allow adding external expansions without opening the case, an expansion connector was added. NOTICE The connector uses a proprietary pinout. Damage to equipment is likely when you insert a standard PCIe card into this slot.
Page 48
(Hardware and Software Manual) • Appendices 8 - 46 I2C1 was only added for detection purposes (to read a HAT like EEPROM). If you want to add I2C expansions, you should prefer I2C4 or I2C5. Remember that I2C1 must be forced to bit-bang mode and thus has increased CPU overhead.
(Hardware and Software Manual) • Appendices 8 - 47 EMC Cable Installation In figure 19 we show the EMC shield (PE) connection that we utilized during EMC compatibility tests to pass industrial level immunity: • DIN rail is connected to PE •...
(Hardware and Software Manual) • Appendices 8 - 48 emPC-ARPI2/3 vs emPC-ARPI4 The emPC-ARPI4 tries to follow the emPC-ARPI3 in some aspects (basic form-factor, interfaces). However, some internals have been changed to make optimum use of the new possibilities of the CM4’s BCM2711 SoC IO features.
(Hardware and Software Manual) • Appendices 8 - 49 Product History Version Release Name Changes Date • Early engineering samples • First prototypes • Compared to the PRE samples, the LTE_VBUS_EN has changed polarity: Must be set to 0 to enable modem USB.
Need help?
Do you have a question about the emPC-A/RPI4 and is the answer not in the manual?
Questions and answers