beautypg.com

FUJITSU F2MCTM-16LX User Manual

Page 513

background image

497

Setting conditions for starting transmission (only for transmission of data frame)

Set RFWTx of the remote frame receiving wait register (RFWTR) to 0 to start transmission immediately

after a request for data frame transmission is set (TREQx of the transmission request register (TREQR) is 1

and TRTRx of the transmission RTR register (TRTRR) is 0).

Set RFWTx to 1 to start transmission after waiting until a remote frame is received (RRTRx of the remote

request receiving register (RRTRR) becomes 1) after a request for data frame transmission is set (TREQx =

1 and TRTRx = 0).

Note:

Remote frame transmission can not be made, if RFWTx is set to 1.

Setting transmission complete interrupt

When generating a transmission complete interrupt, set TIEx of the transmission complete interrupt enable

register (TIER) to 1.

When not generating a transmission complete interrupt, set TIEx to 0.

Setting transmission request

For a transmission request, set TREQx of the transmission request register (TREQR) to 1.

Canceling transmission request

When canceling a pending request for transmission to the message buffer (x), write 1 to TCANx of the

transmission cancel register (TCANR).

Check TREQx. For TREQx = 0, transmission cancellation is terminated or transmission is completed.

Check TCx of the transmission complete register (TCR). For TCx = 0, transmission cancellation is

terminated. For TCx = 1, transmission is completed.

Processing for completion of transmission

If transmission is successful, TCx of the transmission complete register (TCR) becomes 1.

If the transmission complete interrupt is enabled (TIEx of the transmission complete interrupt enable

register (TIER) is 1), an interrupt occurs.

After checking the transmission completion, write 0 to TCx to set it to 0. This cancels the transmission

complete interrupt.

In the following cases, the pending transmission request is canceled by receiving and storing a message.

Cancel the request for data frame transmission by reception of data frame

Cancel the request for remote frame transmission by reception of data frame

Cancel the request for remote frame transmission by reception of remote frame

Request for data frame transmission is not canceled by receiving and storing a remote frame. ID and DLC,

however, are changed by the ID and DLC of the received remote frame. Note that the ID and DLC of data

frame to be transmitted become the value of received remote frame.