04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

(16) CAN module receive history list register (C0RGPT, C1RGPT)<br />

The C0RGPT, C1RGPT register is used to read the receive history list.<br />

(a) Read<br />

(b) Write<br />

(a) Read<br />

Figure 14-42. Format of CAN Module Receive History List Register (C0RGPT, C1RGPT) (1/2)<br />

Address: F05F0H (C0RGPT), F03A0H (C1RGPT) After reset: xx02H R/W<br />

C0RGPT,<br />

C1RGPT<br />

C0RGPT,<br />

C1RGPT<br />

15 14 13 12 11 10 9 8<br />

RGPT7 RGPT6 RGPT5 RGPT4 RGPT3 RGPT2 RGPT1 RGPT0<br />

7 6 5 4 3 2 1 0<br />

0 0 0 0 0 0 RHPM ROVF<br />

15 14 13 12 11 10 9 8<br />

0 0 0 0 0 0 0 0<br />

7 6 5 4 3 2 1 0<br />

0 0 0 0 0 0 0 Clear<br />

ROVF<br />

RGPT7-RGPT0 Receive History List Get Pointer<br />

RHPM<br />

Note<br />

0 to 15 When the C0RGPT, C1RGPT register is read, the contents of the element indexed by<br />

the receive history list get pointer (RGPT) of the receive history list are read. These<br />

contents indicate the number of the message buffer in which a data frame or a remote<br />

frame has been stored.<br />

Receive History List Pointer Match<br />

0 The receive history list has at least one message buffer number that has not been read.<br />

1 The receive history list has no message buffer numbers that has not been read.<br />

Note The read value of RGPT0 to RGPT7 is invalid when RHPM = 1.<br />

ROVF Note Receive History List Overflow Bit<br />

0 All the message buffer numbers that have not been read are preserved. All the numbers of the<br />

message buffer in which a new data frame or remote frame has been received and stored are<br />

recorded to the receive history list (the receive history list has a vacant element).<br />

1 At least 23 entries have been stored since the host processor has serviced the RHL last time (i.e.<br />

read C0RGPT, C1RGPT). The first 22 entries are sequentially stored while the last entry can have<br />

been overwritten whenever newly received message is stored because all buffer numbers are<br />

stored at position LIPT-1 when ROVF bit is set. Thus the sequence of receptions can not be<br />

recovered completely now.<br />

Note If ROVF is set, RHPM is no longer cleared on message storage, but RHPM is still set, if all<br />

entries of C0RGPT, C1RGPT are read by software.<br />

R01UH0317EJ0004 Rev. 0.04 866<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!