11.6.14 Event Capture 2 Control Register

Name: EC2CTRL
Address: 0x0202

Bit 3130292827262524 
  
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
  
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 MAX[3:0]EDGE[1] 
Access R/WR/WR/WR/WR/WROROR/W 
Reset 00000000 
Bit 76543210 
 EDGE[0]SRC[2:0]CLRDAEN 
Access R/WR/WR/WR/WW1SR/WROR/W 
Reset 00000000 

Bits 14:11 – MAX[3:0] Maximum number of captured timestamps

This is the maximum number of time stamps that can be captured by this event capture unit. When this unit is in use, this value must be greater than 0. Once this number is reached, timestamps must be read before any new timestamps will be captured; should another capture be triggered before a timestamp is read, an overflow condition will occur and the newest value will be lost.
DANGER: This value shall not be changed if any of the timestamp units are enabled. Data corruption can occur.
Warning: The sum of all MAX values in all Timestamp control registers must not exceed 16.
ValueDescription
0 Only valid when this event capture unit is disabled.
1-F Maximum number of time stamps allocated to this event capture unit.

Bits 8:7 – EDGE[1:0] Capture Edge Selection

Warning: This value can only be changed when disabled.
ValueDescription
00 Capture on rising edge
01 Capture on falling edge
10 Capture on both edges
11 Reserved

Bits 6:4 – SRC[2:0] Capture Signal Source

Warning: This value can only be changed when disabled.
ValueDescription
000 Receive pattern match from PHY
001 Transmit pattern match from PHY
010 DIOA0 input
011 DIOA1 input
100 DIOA2 input
101 DIOA3 input
110-111 Reserved

Bit 3 – CLR Clear capture unit

Writing a 1 to this bit will reset this event capture status and stored timestamps. Control settings will not change.
ValueDescription
0 No effect
1 Reset this event capture unit.

Bit 1 – DA Data Available

ValueDescription
0 This capture unit has no timestamps available to be read.
1 This capture unit has timestamps available to be read.

Bit 0 – EN Event Capture Unit Enable

ValueDescription
0 This event capture unit is disabled.
1 This event capture unit is enabled.