Datasheet

Instruction Set
www.ti.com
APCNT uses the step width flags (SWF0 and SWF1) defined by SCNT to
detect period durations shorter than one step, and then disables capture.
The edge select encoding is shown in Table 23-58.
irq ON generates an interrupt when the edge state is satisfied. OFF
prevents an interrupt from being generated.
Default: OFF.
type Specifies the edge type that triggers the instruction.
Default: Fall2Fall.
Table 23-58. Edge Select Encoding for APCNT
type P7 P6 Selected Condition
Fall2Fall 1 0 Falling edge
Rise2Rise 1 1 Rising edge
period Contains the 25-bit count value from the previous APCNT period.
data 25-bit value serving as a counter.
Default: 0.
Execution
Z = 0;
If (Data field register != 1FFFFFFh)
{
Register A = Data field register + 1;
Data field register = Data field register + 1;
}
elseIf (specified edge not detected on HET[2])
{
Register A = 1FFFFFFh;
APCNT Ovflw flag = 1;
}
If (specified edge detected on HET[2])
{
Z = 1;
If (Data field register == 1FFFFFFh)
{
Register A = 1FFFFFFh;
Register T = 1FFFFFFh;Period count = 1FFFFFFh;
Period count = 1FFFFFFh;
}
elseIf (GPF == 0 AND Data Field register >= Step width)
{
Register A = Data field register + 1;
Register T = Register A;
Period count = Register T;
If (Interrupt Enable == 1)
HETFLG[n] = 1; /* n depends on address */
If ([C28:C27] == 01)
Generate request on request line [P25:P23];
If ([C28:C27] == 11)
Generate quiet request on request line [P25:P23];
1016
High-End Timer (N2HET) Module SPNU562May 2014
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated