Procedure For Transmission By Message Buffer (X) - Fujitsu MB90420/5 (A) Series Hardware Manual

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

MB90420/5 (A) SERIES F

23.11 Procedure for Transmission by Message Buffer (x)

After setting the bit timing, frame format, ID, and acceptance filter, set BVALx to 1 to validate the message
buffer (x).
n Procedure for transmission by message buffer (x)
• Setting transmit data length code
Set the transmit data length code (byte unit) to DLC3 to DLC0 of the DLC register (DLCRx).
For data frame transmission (when TRTRx of the transmission RTR register (TRTRR) is 0), set the data
length of the transmit message.
For remote frame transmission (when TRTRx = 1), set the data length (byte unit) of the requested
message.
Note:
Setting other than 0000 to 1000 (0 to 8 bytes) is prohibited.
• Setting transmit data (only for transmission of data frame)
For data frame transmission (when TRTRx of the transmission register (TRTRR) is 0), set data as the
count of byte transmitted in the data register (DTRx).
Note:
Transmit data should be rewritten while the TREQx bit of the transmission request register
(TREQR) set to 0. There is no need for setting the BVALx bit of the message buffer valid register
(BVALR) to 0. Setting the BVALx bit to 0 may cause incoming remote frame to be lost.
• Setting transmission RTR register
For data frame transmission, set TRTRx of the transmission RTR register (TRTRR) to 0.
For remote frame transmission, set TRTRx to 1.
• 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 receive 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 performed, 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 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).
terminated. For TCx = 1, transmission is completed.
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
23-38
For TCx = 0, transmission cancellation is

Advertisement

Table of Contents
loading

Table of Contents