Oversampled Inputs

Contents of This Topic

This topic contains the following information:

oGeneral information on oversampled inputs

oOversampling inputs buffer handling on the module

General Information on Oversampled Inputs

The oversampled input functionality on the module can be used via the I/O mapped registers of the Sercos III module.

To enable the evaluation of the output variables on the module, the parameter OutputsAc­tiveSet (bus interface TM5NS31) has to be set to on / 1.

The parameter OutputsActive is set to on / 1 after the outputs are active on the module.

The evaluation of outputs is necessary for oversampling inputs because the mechanism has to be activated by an output (refer to OversampleEnable).

Oversampling Inputs Buffer Handling on the Module

Oversampled inputs use a similar buffer mechanism (256 entries circular buffer for each oversampled input channel) as oversampled outputs.

To enable the data transmission from the TM5SDM8DTS oversampled input to the controller, the OversampleEnable bit in OversampleControl has to be set to 1.

Every 1/8 cycle, the module latches the input level of the physical input channel to one buffer entry.

After setting the OversampleEnable bit in the OversampleControl byte, the module copies its position inside its circular buffer (OversampleInputCycle) and the 8-bit pattern from the following eight buffer entries to the real-time channel.

OversampleInput0xSample1_8

The 8-bit patterns can be read from the application via the input channels OversampleInput0xSample1_8.

The parameters have the following physical channel mapping on the module (refer to General Information on TM5SDM8DTS):

Parameter

Channel

OversampleInput01Sample1_8

1

OversampleInput02Sample1_8

2

OversampleInput03Sample1_8

5

OversampleInput04Sample1_8

6