Fujitsu F2MC-16LX Hardware Manual page 427

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

❍ Reception Operation
Reception is always performed if reception operation is enabled (SCR: REX = 1). When the
start bit is detected, one frame of data is received in accordance with the data format
determined by the control register (SCR). When the error flag is set after one frame has been
received, the reception data full flag bit (SSR: RDRF) is set to "1". If reception interrupt requests
are enabled (SSR: RIE = 1), a reception interrupt request is output in this case. Each flag of the
status register (SSR) is checked. If reception was performed normally, the input data register
(SIDR) is read; if an error is detected, error processing is performed.
The RDRF flag is cleared to "0" after reception data is read from the SIDR.
❍ Detecting the start bit
Implement the following settings to detect the start bit:
Set the communication line level to H (attach the mark level) before the communication
period.
Specify reception permission (RXE = H) while the communication line level is H (mark level).
Do not specify reception permission (RXE = H) for periods other than the communication
period (without mark level). Otherwise, data is not received correctly.
After the stop bit is detected (the RDRF flag is set to 1), specify reception inhibition (RXE =
L) while the communication line level is H (mark level).
Non-communication period
Mark level
SIN
(Sending 01010101b)
RXE
Receive clock
Sampling clock
Receive clock (8 pulse)
Recognition by the microcontroller
(Receiving 01010101b)
Note that specifying reception permission at the timing shown below obstructs the correct
recognition of the input data (SIN) by the microcontroller.
Example of operation if reception permission (RXE = H) is specified while the communication
line level is L.
Non-communication period
SIN
(Sending 01010101b)
RXE
Receive clock
Sampling clock
Recognition by the microcontroller
(Receiving 10101010b)
PE,ORE,FRE
Figure 21.3-2 Normal operation
Start bit
ST
D1
D0
Generating sampling clocks by dividing the receive clock by 16
ST
D1
D0
Figure 21.3-3 Error operation
Mark level
Start bit
ST
D1
D0
ST recognition
D0
D2
D1
Communication period
Data
D5
D3
D2
D4
D6
D3
D5
D2
D4
D6
Communication period
Data
D3
D5
D2
D4
D6
D4
D6
D3
D5
D7
Occurrence of a reception error
CHAPTER 21 UART
Non-communication period
Stop bit
D7
SP
D7
SP
Non-communication period
Stop bit
D7
SP
SP
411

Advertisement

Table of Contents
loading

Table of Contents