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 />

(18) CAN module transmit history list register (C0TGPT, C1TGPT)<br />

The C0TGPT, C1TGPT register is used to read the transmit history list.<br />

(a) Read<br />

(b) Write<br />

(a) Read<br />

Figure 14-44. Format of CAN Module Transmit History List Register (C0TGPT, C1TGPT) (1/2)<br />

Address: F05F4H (C0TGPT), F03A4H (C1TGPT) After reset: xx02H R/W<br />

C0TGPT,<br />

C1TGPT<br />

C0TGPT,<br />

C1TGPT<br />

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

TGPT7 TGPT6 TGPT5 TGPT4 TGPT3 TGPT2 TGPT1 TGPT0<br />

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

0 0 0 0 0 0 THPM TOVF<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 />

TOVF<br />

TGPT7-TGPT0 Transmit History List Read Pointer<br />

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

the read pointer (TGPT) of the transmit history list are read. These contents indicate the<br />

number of the message buffer to which a data frame or a remote frame was transmitted<br />

last.<br />

THPM Note Transmit History Pointer Match<br />

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

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

Note The read value of TGPT0 to TGPT7 is invalid when THPM = 1.<br />

TOVF Transmit History List Overflow Bit<br />

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

of the message buffers to which a new data frame or remote frame has been transmitted<br />

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

1 At least 7 entries have been stored since the host processor has serviced the THL last<br />

time (i.e. read C0TGPT, C1TGPT). The first 6 entries are sequentially stored while the<br />

last entry can have been overwritten whenever a message is newly transmitted because<br />

all buffer numbers are stored at position LOPT-1 when TOVF bit is set. Thus the<br />

sequence of transmissions can not be recovered completely now.<br />

Note If TOVF is set, THPM is no longer cleared on message transmission, but THPM is still set,<br />

if all entries of CTGPT are read by software.<br />

Remark Transmission from message buffer 0 to 7 is not recorded to the transmit history list in<br />

the normal operation mode with ABT.<br />

R01UH0317EJ0004 Rev. 0.04 869<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!