3 divide-by-n state machine (dsm) – Texas Instruments TMS320TCI6486 User Manual
Page 44

Waiting
Count
Output
EVT_PULSE=0 (or) EVT_PULSE=1 &&
CNT >= CNT_CFG && TIME_CFG I=0
Increment
CNT
CNT=1
EVT_PULSE=0
&& CR=0
EVT_PULS
E=0
&&
CR=1
EVT
_PU
LSE=1
&&
C
N
T
<
C
N
T
_C
F
G
&&
C
R
=0
EVT
_PU
LSE=1
&&
C
N
T
<
C
N
T_
C
FG
CNT=1
NEXT_
DIV=1
CNT=1
EVT_PULSE=1 &&
CR=1 && CNT <
CNT_CFG
EVT
_
PU
L
SE=1
&&
C
N
T
>=
C
N
T
_
C
F
G
&&
T
IM
E_
C
F
G
==0
NEXT_
DIV=1
CNT >= CNT_CFG
&& EVT_PULSE=1
EVT_PULSE=1&&
CNT
EVT _PU LSE=0 (o r) C N T >= C N T_ C FG EMAC Functional Architecture www.ti.com 2.7.3 Divide-by-N State Machine (DSM) The divide-by-N state machine fully implements the functionality of the count-based interrupt pacing. The ) is set to 0 on reset and immediately generates a pulse (basically means a zero delay), when the TIME_CFG is also set to 0 (i.e., The state machine has three states, WAITING, COUNT, and OUTPUT. Upon reset, the state machine is . Note that states that are grayed out are transitional states, in the sense that the SM does not stay in the grayed state. While in the transitional state, it typically does an operation, like setting the Figure 17. DSM State Transition Diagram 44 C6472/TCI6486 EMAC/MDIO SPRUEF8F – March 2006 – Revised November 2010 Copyright © 2006–2010, Texas Instruments Incorporated
CNT_CFG bit field of the TPCFG and RPCFG registers (described in
timed-delay SM is disabled). When the TIME_CFG is set to non-zero, it then disables the divide-by-N
state machine. When the CNT_CFG is set to non-zero, the CNT_CFG number of events are counted
before an output pulse is generated. The counter resets (and reloads) every time when a divide-by-N
pulse is generated.
placed in the WAITING state. The state machine makes transitions between the states as shown in
counter to a certain value.