TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual
24-125
V2.0, 2007-07
GPTA, V2.0
24.2.6.3 DCM-Algorithm
DCMk_Control_Logic() “to be performed every GPTA clock”
Compare()
Add_Clock()
Compare()
Add_Clock()
Check_Input()
if (DCMk.Timer == DCMk.Capcom_Value) then
trig(DCMk.Service_Request_Compare)
endif
if (DCMk.Clock_Request) then
Generate DCMk.Signal_Output
DCMk.Clock_Request = 0
endif