EasyManua.ls Logo

Infineon Technologies TC1796 - 24.2.6.4 PLL-Algorithm

Infineon Technologies TC1796
2150 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-128 V2.0, 2007-07
GPTA, V2.0
24.2.6.4 PLL-Algorithm
PLL_Control_Logic() “to be performed every GPTA clock”
DCMk.Capture_Value *CAVk 24 Capture value
DCMk.Capcom_Value *COVk 24 Capture/compare value
if ( (Pll.Automatic_End) and (Pll.Event) ) then //allow compensation
Pll.Perform_End = 1
endif
if ( (Pll.Counter_Mtick == 0) and ((Pll.Perform_End) or (!Pll.Automatic_End)) )
then //compensation finished or no automatic compensation
Pll.Counter_Mtick = Pll.Number_Mtick
Pll.Perfom_End = 0
endif
if ( (Pll.Counter_Mtick != 0) and ((Pll.Perform_End) or (Bit 24 of Pll.Delta)) )
then //output pulse is necessary
generate pulse on Pll.Signal_Output
Pll.Counter_Mtick --
if (Pll.Counter_Mtick == 0) then
trig(Pll.Service_Request_Trigger)
endif
endif
if (Bit 24 of Pll.Delta) then //delta is < 0
Pll.Delta = Pll.Delta + Pll.Reload_Value
generate pulse on Pll.Signal_Uncomp
else //delta is >= 0
Pll.Delta = Pll.Delta + (0xFFFF0000 or (Pll.Step))
endif
Name k = [0 to 3] for DCM Short
Name
(*)DCM
Size
(bits)
Function

Table of Contents