Datasheet

www.ti.com
Instruction Set
23.5.3.2 ACNT (Angle Count)
Syntax ACNT {
[brk={OFF | ON}]
[next={label | 9-bit unsigned integer}]
[reqnum={3-bit unsigned integer}]
[request={NOREQ | GENREQ | QUIET}]
edge={RISING | FALLING}
[irq ={OFF | ON}]
[control={OFF | ON}]
[prv={OFF | ON}]
gapend ={25-bit unsigned integer}
data={25-bit unsigned integer}
}
Figure 23-71. ACNT Program Field (P31:P0)
31 26 25 23 22 21 13 12 9 8 7 1 0
0 Request BRK Next program address 1001 Edge Reserved Int.
Number select ena
6 3 1 9 4 1 7 1
Figure 23-72. ACNT Control Field (C31:C0)
31 29 28 27 26 25 24 0
Res. Request Control Prv. Gap End
type
3 2 1 1 25
Figure 23-73. ACNT Data Field (D31:D0)
31 7 6 0
Data Reserved
25 7
Cycles Two, as follows:
First cycle: Angle increment condition and gap end comparison.
Second cycle: Gap start comparison.
Register modified Register B (angle value)
Description This instruction defines a specialized virtual timer used after SCNT and
APCNT to generate an angle-referenced time base that is synchronized to an
external signal (that is, a toothed wheel signal). ACNT uses pin HET[2]
exclusively. The edge select must be the same as the HET[2] edge which was
selected in the previous APCNT.
ACNT refers to the same step width selection that the previous SCNT saved
in flags SWF0 and SWF1 (see information on SCNT).
ACNT detects period variations of the external signal measured by APCNT
and compensates related count errors.
1001
SPNU562May 2014 High-End Timer (N2HET) Module
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated