FlexRay Module Registers
1357
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
FlexRay Module
26.3.2.2.10 Stop Watch Register 1 Register (STPW1)
The stop watch is activated by an interrupt event (CC_int0 or CC_int1), by writing bit SSWT to 1, or by an
external event.
With the macrotick counter increment following next to the stop watch activation the actual cycle counter
and macrotick value is stored in the stop watch register 1 (stop watch event) and the slot counter values
for channel A and channel B are stored in stop watch register 2.
and
illustrate this register.
Figure 26-126. Stop Watch Register 1 (STPW1) [offset_CC = 4Ch]
31
30
29
16
Reserved
SMTV
R-0
R-0
15
14
13
8
7
6
5
4
3
2
1
0
Reserved
SCCV
Rsvd
EINT1
EINT0
EETP
SSWT
EDGE
SWMS
ESWT
R-0
R-0
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 26-105. Stop Watch Register 1 (STPW1) Field Descriptions
Bit
Field
Value
Description
31-30
Reserved
0
Reads return 0. Writes have no effect.
29-16
SMTV
0-3E80h
Stopped macrotick value. State of the macrotick counter when the stop watch event occurred.
15-14
Reserved
0
Reads return 0. Writes have no effect.
13-8
SCCV
0-3Fh
Stopped cycle counter value. State of the cycle counter when the stop watch event occurred.
7
Reserved
0
Reads return 0. Writes have no effect.
6
EINT1
Enable interrupt 1 trigger. Enables stop watch trigger by CC_int1 event if ESWT = 1.
0
Stop watch trigger by CC_int1 is disabled.
1
CC_int1 event triggers stop watch.
5
EINT0
Enable interrupt 0 trigger. Enables stop watch trigger by CC_int0 event if ESWT = 1.
0
Stop watch trigger by CC_int0 is disabled.
1
CC_int0 event triggers stop watch.
4
EETP
Enable external trigger pin. Enables stop watch trigger event from external pin, if ESWT = 1.
0
External trigger is disabled.
1
Stop watch is activated by external trigger.
3
SSWT
Software stop watch trigger. When the host writes this bit to 1, the stop watch is activated. After
the actual cycle counter and macrotick value are stored in the stop watch register, this bit is reset
to 0. The bit is only writable while ESWT = 0.
0
Software trigger is reset.
1
Stop watch is activated by software trigger.
2
EDGE
Stop watch trigger edge select.
0
Falling edge.
1
Rising edge.
1
SWMS
Stop watch mode select.
0
Single-shot mode.
1
Continuous mode.
0
ESWT
External stop watch trigger. If enabled, an external event activates the stop watch. In single-shot
mode, this bit is reset to 0 after the stop watch event occurred.
0
External stop watch trigger is disabled.
1
External stop watch trigger is enabled.