Fujitsu F2MCTM-16LX Computer Hardware User Manual


 
394
CHAPTER 20 LIN-UART
Table 20.4-1 Function of Each Bit in Serial Control Register (SCR)
No. Bit Name Function
bit15 PEN:
Parity enable bit
This bit selects whether to add a parity bit during transmission or detect it during reception.
Note:
Parity bit is only provided in mode 0 and in mode 2 if SSM of the ECCR is selected to 1.
This bit is fixed to 0 (no parity) in mode 3 (LIN).
bit14 P:
Parity selection bit
When parity is provided, this bit selects even (0) or odd (1) parity
bit13 SBL:
Stop bit length
selection bit
This bit selects the length of the stop bit of an asynchronous data frame or a synchronous
frame if SSM of the ECCR is selected 1. This bit is fixed to 0 (1 stop bit) in mode 3 (LIN).
Note:
At reception, first stop bit is always detected.
bit12 CL:
Data length
selection bit
This bit specifies the length of transmission or reception data. This bit is fixed to 1 (8 bits)
in mode 2 and 3.
bit11 AD:
Address/Data
format selection bit
This bit specifies the frame data format to be transmitted and received in multiprocessor
mode 1. Writing to this bit is provided for a master CPU, reading from it for slave CPU. A 1
indicates an address data frame, a 0 indicates a usual data frame.
The reading value is a value of last received data format.
Note:
Please read the hints about using this bit in "20.8 Notes on Using LIN-UART".
bit10 CRE:
Clear reception
error flag bit
This bit clears the FRE, ORE, and PE flags of the Serial Status Register (SSR).
Writing a 1 to it clears the error flag.
Writing a 0 has no effect.
Reading from it always returns 0.
Note;
Clear reception error flags after the receive operation.
bit9 RXE:
Reception
operation enable bit
This bit enables/disables LIN-UART reception.
If this bit is set to 0, LIN-UART disables the reception of data frames.
If this bit is set to 1, LIN-UART enables the reception of data frames.
The LIN synch break detection in mode 3 remains unaffected.
Note:
If reception is disabled (RXE=0) during receiving, it is stopped immediately. In this case,
data is not guaranteed.
bit8 TXE:
Transmission
operation enable bit
This bit enables/disables LIN-UART transmission.
If the bit is set to 0, LIN-UART disables the transmission of data frames.
If the bit is set to 1, LIN-UART enables the transmission of data frames.
Note:
If transmission is disabled (TXE=0) during transmitting, it is stopped immediately.
In this case, data is not guaranteed.