Datasheet

www.ti.com
Instruction Set
23.5.3.17 PWCNT (Pulse Width Count)
Syntax PWCNT {
[brk={OFF | ON}]
[next={label | 9-bit unsigned integer}]
[reqnum={3-bit unsigned integer}
[request={NOREQ | GENREQ | QUIET}]
[hr_lr={HIGH | LOW}]
[control={OFF | ON}]
[cond_addr={label | 9-bit unsigned integer}
[en_pin_action={OFF | ON}]
pin ={pin number}
[action={CLEAR | SET | PULSELO | PULSEHI}]
[reg={A | B | T | NONE}]
[irq={OFF | ON}]
[data={25-bit unsigned integer]
[hr_data={7-bit unsigned integer}]
}
Figure 23-126. PWCNT Program Field (P31:P0)
31 26 25 23 22 21 13 12 9 8 7 6 5 0
0 Request BRK Next program address 1010 hr_lr 11 Reserved
Number
6 3 1 9 4 1 2 6
Figure 23-127. PWCNT Control Field (C31:C0)
31 29 28 27 26 25 23 22 21 16
Reserved Request type Control Reserved En. pin Conditional address
action
3 2 1 3 1 9
15 13 12 8 7 5 4 3 2 1 0
Conditional address Pin select Reserved Action Register select Int.
ena
9 5 3 2 2 1
Figure 23-128. PWCNT Data Field (D31:D0)
31 7 6 0
Data HR Data
25 7
Cycles One
Register modified Selected register (A, B or T)
Description This instruction defines a virtual timer used to generate variable length pulses.
The counter value stored in the data field is decremented unconditionally on
each timer resolution until it reaches zero, and it then stays at zero until it is
reloaded with a non-zero value.
1045
SPNU562May 2014 High-End Timer (N2HET) Module
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated