8 can timestamp register – Rainbow Electronics AT91CAP9S250A User Manual

Page 722

Advertising
background image

722

6264A–CAP–21-May-07

AT91CAP9S500A/AT91CAP9S250A

39.8.8

CAN Timestamp Register

Name:

CAN_TIMESTP

Access Type:

Read-only

• MTIMESTAMPx: Timestamp

This field represents the internal CAN controller

16

-bit timer value.

If the TEOF bit is cleared in the CAN_MR register, the internal Timer Counter value is captured in the MTIMESTAMP field
at each start of frame. Else the value is captured at each end of frame. When the value is captured, the TSTP flag is set in
the CAN_SR register. If the TSTP mask in the CAN_IMR register is set, an interrupt is generated while TSTP flag is set in
the CAN_SR register. This flag is cleared by reading the CAN_SR register.

Note:

The CAN_TIMESTP register is reset when the CAN is disabled then enabled thanks to the CANEN bit in the CAN_MR.

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

MTIMESTAMP

15

MTIMESTAMP

14

MTIMESTAMP

13

MTIMESTAMP

12

MTIMESTAMP

11

MTIMESTAMP

10

MTIMESTAMP

9

MTIMESTAMP

8

7

6

5

4

3

2

1

0

MTIMESTAMP

7

MTIMESTAMP

6

MTIMESTAMP

5

MTIMESTAMP

4

MTIMESTAMP

3

MTIMESTAMP

2

MTIMESTAMP

1

MTIMESTAMP

0

Advertising