TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual
24-19
V2.0, 2007-07
GPTA, V2.0
24.2.2.2 Phase Discrimination Logic (PDL)
The GPTA provides two Phase Discrimination Logic modules (PDL0, PDL1) driven by
two signal lines coming from an FPC cell (for description, see
):
•
An event input signal
•
A level input signal
Both Phase Discrimination Logic modules are controlled by the Phase Discrimination
Logic Control Register PDLCTR (see
).
Each PDL is equipped with an edge detection unit, a phase detection unit, a PDL control
unit, and an output multiplexer. Six output lines are provided by each PDL Module:
•
A forward output signal (F0, F1) is driven by one
f
GPTA
clock pulse if an input signal
edge is recognized as forward rotation. These signals can be connected to any Local
Timer Cell via the PDL bus.
•
A backward output signal (B0, B1) is driven by one
f
GPTA
clock pulse if an input signal
edge is recognized as backward rotation. This signal can be connected to any Local
Timer Cell via the PDL bus.
•
Two pairs of output signals, carrying the bypassed input level and event information
from the driving FPC cells or the angular velocity and error information provided by
the PDL function. These output lines are directly connected to the adjacent Duty
Cycle Measurement Cells, DCM0/DCM1(for PDL0) and DCM2/DCM3 (for PDL1).
The PDL processes the output signal of a 2-sensor or 3-sensor positioning system. With
bit PDLCTR.TSEx = 1, a 3-sensor system execution is selected providing the DCM1
and/or DCM3 cell with information concerning erroneous states in the signal input. When
PDLCTR.TSEx = 0, a 2-sensor system is selected and DCM1 and/or DCM3 are supplied
with the input event and level information from the driving FPC2 and/or FPC5.
The rotation direction, monitored by the connected sensors, is automatically derived
from the sequence in which the input signals change. Each edge detected on an input
signal line generates a pulse on the F0, F1 forward output lines or on the B0, B1
backward output lines. Input jitter, which might occur if a sensor rests near to one of its
switching points, is compensated.
If bit PDLCTR.MUXx = 1, the trigger output signal to DCM0/DCM2 (angular velocity
information) is driven by a boolean ‘OR’ operation of the corresponding forward trigger
and backward trigger signal while the level output signal at DCM0/DCM2 is at fixed high
level. In this case, every pulse at F0/B0 and F1/B1 generates a rising edge at the
DCM0/DCM trigger signal.
If bit PDLCTR.MUXx = 0, the associated DCM0/DCM2 signals are directly connected
with the input event and level signals from the driving FPC0/FPC3.
To calculate the sensor’s current position, the associated LTCs should be clocked with
the PDL forward and backward output pulses. A software operation, subtracting the
backward counter contents from the forward counter contents, provides the absolute