Reconfigurable fpga with 16 x 16 bit analog input, 8 x 16 bit analog output and 32 digital i/o (95 pages)
Summary of Contents for Tews Technologies TPMC160
Page 1
The Embedded I/O Company TPMC160 Automotive Sensor Simulator Version 1.0 User Manual Issue 1.0.2 July 2022 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101 4058 0 Fax: +49 (0) 4101 4058 19 e-mail: info@tews.com www.tews.com...
Page 2
GmbH reserves the right to change the product described in this document at any time without notice. TEWS TECHNOLOGIES GmbH is not liable for any damage arising out of the application or use of the device described herein. 2022 by TEWS TECHNOLOGIES GmbH All trademarks mentioned are property of their respective owners.
Page 3
- The Protocol Setup Examples were revised. 1.0.2 - Description of the Board health register has been improved July 2022 - The description of the interrupt status registers was added - Corrected I/O Connector description TPMC160 User Manual Issue 1.0.2 Page 3 of 63...
1 Product Description The TPMC160 is a standard single-width 32 bit PMC module and supports a 33 MHz / 32-bit universal (5 V / 3.3 V) PCI interface. The TPMC160 offers eight isolated automotive sensor simulator channels, which can act as a PSI5 or as wheel speed sensor.
If FIT rates are not available, MIL-HDBK-217F and MIL-HDBK-217F Notice 2 formulas are used for FIT rate calculation. Humidity 5 – 95 % non-condensing Weight 77 g Table 2-1 : Technical Specification TPMC160 User Manual Issue 1.0.2 Page 9 of 63...
Packing, unpacking and all other module handling has to be done with appropriate care. Power Dissipation This PMC module requires adequate forced air cooling! Ground for Isolated I/O I/O Connector's isolated ground signals must be connected to external ground. TPMC160 User Manual Issue 1.0.2 Page 10 of 63...
For future software compatibility: For register write access reserved bits shall be written ‘0’. Style Conventions Hexadecimal characters are specified with prefix 0x (i.e. 0x029E). For signals on hardware products, "Active Low" is represented by the signal name with an added # (i.e. IP_RESET#). TPMC160 User Manual Issue 1.0.2 Page 11 of 63...
For each of the eight channels the protocol is freely selectable. Protocol options: MODE Description Channel disabled Custom protocol / Manual current setting Square Wave Protocol PWM Protocol AK Protocol / VDA Protocol PSI5 Protocol Others Reserved TPMC160 User Manual Issue 1.0.2 Page 14 of 63...
15:10 Reserved ADC4 Last sampled ADC value of Channel 4 Voltage = ADC4 * 26.16 mV Table 5-8 : ADC Data Register Ch4-5 A new value is provided every 1.6 µs. TPMC160 User Manual Issue 1.0.2 Page 16 of 63...
15:10 Reserved ADC6 Last sampled ADC value of Channel 6 Voltage = ADC6 * 26.16 mV Table 5-9 : ADC Data Register Ch6-7 A new value is provided every 1.6 µs. TPMC160 User Manual Issue 1.0.2 Page 17 of 63...
5.3.3 Custom Protocol Registers The TPMC160 supports custom protocols by allowing the manual setting of the current level. This can be done either directly through the CP[x] DEFAULT bits, or as a sequence through the CP FIFO. After starting a sequence, each current level is provided one after the other for a duration of CP[x] TP. As soon as the Manual Sequence FIFO is empty the corresponding output is set to the value defined by the CP[x] DEFAULT bits.
FIFO full flag of the Custom Protocol FIFO of channel 1 FULL CP FIFO0 FIFO full flag of the Custom Protocol FIFO of channel 0 FULL Table 5-11 : CP FIFO Status Register TPMC160 User Manual Issue 1.0.2 Page 20 of 63...
1 µs time base 0x3 = 1 ms time base 11:0 SWP[x] Channel [x]: SWP Cycle Time CYCLE The time base depends on the SWP[x] CYCLE BASE. Table 5-13 : SWP Cycle Registers TPMC160 User Manual Issue 1.0.2 Page 22 of 63...
1 µs time base 0x3 = 1 ms time base 11:0 PWM[x] Channel [x]: PWM Protocol Cycle Time CYCLE The time base depends on the PWM[x] CYCLE BASE Table 5-14 : PWM Cycle Registers TPMC160 User Manual Issue 1.0.2 Page 24 of 63...
0x188 AK Control Register Channel 3 0x18C AK Control Register Channel 4 0x190 AK Control Register Channel 5 0x194 AK Control Register Channel 6 0x198 AK Control Register Channel 7 0x19C TPMC160 User Manual Issue 1.0.2 Page 27 of 63...
SYNC Pulse was detected during the TRIG PSI5 [5] window. SPUR PSI5 [4] This bits are cleared by reading this register. SPUR PSI5 [3] SPUR PSI5 [2] SPUR PSI5 [1] SPUR PSI5 [0] SPUR TPMC160 User Manual Issue 1.0.2 Page 29 of 63...
MODE MODE Mode Asynchronous Mode Synchronous Mode without Daisy Chain Synchronous Mode with Daisy Chain Variable Sync pulse mode (PSI5[x]Pulse Mode has to be PWM) Table 5-21 : PSI5 Control Registers TPMC160 User Manual Issue 1.0.2 Page 33 of 63...
Table 5-23 : PSI5 Data Frame FIFO Registers To support the Sensor to ECU communication, the TPMC160 offers the PSI5 Data Frame FIFO, which can be used instead of the “PSI5 Default Data Frame Register”. The FIFO holds up to 33 Data Frames, which is sufficient to hold Data Frames required for a complete serial data frame.
FIFO full flag of the channel 3 PSI5 Data Frame FIFO FIFO3 FULL PSI5 FIFO full flag of the channel 2 PSI5 Data Frame FIFO FIFO2 FULL PSI5 FIFO full flag of the channel 1 PSI5 Data Frame FIFO FIFO1 FULL TPMC160 User Manual Issue 1.0.2 Page 36 of 63...
Writing a ‘1’ resets the Cycle Counter value CNT1 Channel 1: Cycle Counter Reset RESET Writing a ‘1’ resets the Cycle Counter value CNT0 Channel 0: Cycle Counter Reset RESET Writing a ‘1’ resets the Cycle Counter value TPMC160 User Manual Issue 1.0.2 Page 38 of 63...
Page 39
MATCH register. Cleared by writing a ‘1’ CNT0 Channel 0: Match Status MATCH 1 = The counters VALUE register was equal to the corresponding STATUS MATCH register. Cleared by writing a ‘1’ TPMC160 User Manual Issue 1.0.2 Page 39 of 63...
When set, the timer starts counting up beginning from 0. CNT0 EN Channel 0: Cycle Counter Enable Register When set, the timer starts counting up beginning from 0. Table 5-26 : Cycle Counter Control Register TPMC160 User Manual Issue 1.0.2 Page 40 of 63...
CNT7 Channel 7: Match value for the corresponding Cycle Counter MATCH 15:0 CNT6 Channel 6: Match value for the corresponding Cycle Counter MATCH Table 5-30 : Cycle Counter Match Register Ch6-7 TPMC160 User Manual Issue 1.0.2 Page 41 of 63...
CNT7 Channel 7: Actual value of the corresponding Cycle Counter VALUE 15:0 CNT6 Channel 6: Actual value of the corresponding Cycle Counter VALUE Table 5-34 : Cycle Counter Value Register Ch6-7 TPMC160 User Manual Issue 1.0.2 Page 42 of 63...
An interrupt will be generated when the PSI5[x] SYNC CNT value PSM3 IE matches the corresponding PSI5[x] SYNC MATCH VALUE. PSM2 IE PSM1 IE PSM0 IE Table 5-35 : Interrupt Enable Register TPMC160 User Manual Issue 1.0.2 Page 43 of 63...
PSI5 SYNC MATCH IRQ Status PSM6 ST This bits are cleared by reading this register PSM5 ST PSM4 ST PSM3 ST PSM2 ST PSM1 ST PSM0 ST Table 5-37 : Interrupt Status Register TPMC160 User Manual Issue 1.0.2 Page 46 of 63...
// After setup, the custom protocol for channel 0 is activated to load it with 5 write_32bit(Channel Control Register, 0x0000_0001) // Channel 0: Default Current is set to HIGH(10 mA) write_32bit (CP Cycle Register Channel 0, 0xC000_0000) // CP Mode has to be 0 TPMC160 User Manual Issue 1.0.2 Page 48 of 63...
// Load the Frame into the FIFO. BIT 1 = HIGH; BIT 2 = MID; BIT 3 = HIGH, // The remaining 13 bits are LOW write_32bit(CP FIFO Data Register Channel 2, 0x5555_557B) TPMC160 User Manual Issue 1.0.2 Page 49 of 63...
// Channel 2: Set the bit CP Trig to “1” to start the output of the // second frame. All other bits remain unchanged. write_32bit (CP Cycle Register Channel 2, 0x2028_3005) TPMC160 User Manual Issue 1.0.2 Page 50 of 63...
// After setup, the Square Wave Protocol for channel 0 is activated write_32bit(Channel Control Register, 0x0000_0002) //Change the Square Wave Protocol timing: Cycle time: 2 ms ; High Time = 200 µs write_32bit (SWP Cycle Register Channel 0, 0x20C8_3002) TPMC160 User Manual Issue 1.0.2 Page 51 of 63...
// ASP = Normal Speed Pulse // All nine bits are transmitted write_32bit (AK Control Register Channel 0, 0x0000_9323) // After setup, the AK Protocol for channel 0 is activated write_32bit (Channel Control Register, 0x0000_0004) TPMC160 User Manual Issue 1.0.2 Page 53 of 63...
(PSI5 Data Frame FIFO Register Channel 0, 0x0222_2222) // After the setup the output is started in by activating the PSI5 protocol for // the channel. write_32bit (Channel Control Register, 0x0000_0005) TPMC160 User Manual Issue 1.0.2 Page 54 of 63...
(PSI5 Data Frame FIFO Register Channel 0, 0x0222_2222) // After the setup the output is started in by activating the PSI5 protocol for // the channel. write_32bit (Channel Control Register, 0x0000_0005) TPMC160 User Manual Issue 1.0.2 Page 55 of 63...
Wait for the ECU to assign the time slot and set up the PSI5[x] SLOT DELAY. Then Change the PSI5[x] BUS MODE to “Synchronous Mode with Daisy Chain”. The supply voltage is than passed on. Please refer to the PSI5 specification. TPMC160 User Manual Issue 1.0.2 Page 56 of 63...
7 Functional Description I/O Electrical Interface The TPMC160 provides 8 channels of automotive sensor simulation, each with a programmable current sink that sinks current from the sensor’s VDD to GND. Each channel also provides a switchable Daisy-Chain GND. Symbol Signal...
VSS (Sensor GND). VSS_DAISY Leave this signal open when the sensor is not used in a daisy-chain topology, when used in a daisy-chain topology, connect it to the VSS of the next sensor. TPMC160 User Manual Issue 1.0.2 Page 58 of 63...
Supported Protocols 7.2.1 Wheel Speed The TPMC160 supports the simulation of the three main variants for Wheel Speed Sensors: Standard 2-level (7/14 mA) wheel speed sensors with “Speed Protocol” or “Duty Cycle” PWM encoded 2-level sensors, with support for airgap warning (LR), assembly position (EL) and direction of rotation (DR-R/L) ...
Figure 7-3 : AK-Protocol / VDA Diagram 7.2.1.4 Custom Protocol The TPMC160 provides a “Custom Protocol” mode, which can be used to simulate sensors that are not covered by the above descriptions. It supports three current levels, and supports a t based FIFO that can hold up to 16 x 16 (=256) current level settings.
The ECU can also use the sync pulses for an ECU to Sensor communication (using the "Tooth Gap" or "Pulse Width" method), to which the sensor can reply using an optional "Serial messaging channel" in the data word. TPMC160 User Manual Issue 1.0.2 Page 61 of 63...
Need help?
Do you have a question about the TPMC160 and is the answer not in the manual?
Questions and answers