MB95630H Series
462
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
CHAPTER 22 UART/SIO
22.6 Operations and Setting Procedure Example
22.6
Operations and Setting Procedure Example
The UART/SIO has a serial communication function (operation mode 0, 1).
■
Operations of UART/SIO
●
Operation mode
Two operation modes are available in the UART/SIO. Clock synchronous mode (SIO) or clock
asynchronous mode (UART) can be selected (See Table 22.6-1).
■
Setting Procedure Example
Below is an example of procedure for setting the UART/SIO.
●
Initial setup
1. Set the port input. (DDR)
2. Set the interrupt level. (ILR*)
3. Set the prescaler. (PSSRn)
4. Set the baud rate. (BRSRn)
5. Select the clock. (SMC1n:CKS)
6. Set the operation mode. (SMC1n:MD)
7. Enable/disable the serial clock output. (SMC2n:SCKE)
8. Enable reception. (SMC2n:RXE = 1)
9. Enable interrupts. (SMC2n:RIE = 1)
*: For details of the interrupt level setting register (ILR), refer to "CHAPTER 5 INTERRUPTS" in this
hardware manual and "
■
INTERRUPT SOURCE TABLE" in the device data sheet.
●
Interrupt processing
Read receive data. (RDRn)
Table 22.6-1 Operation Modes of UART/SIO
Operation mode
Data length
Synchronization
mode
Length of stop bit
No parity
With parity
0
5
6
Asynchronous
1 bit or 2 bits
6
7
7
8
8
9
1
5
-
Synchronous
-
6
-
7
-
8
-
Содержание MB95630H Series
Страница 2: ......
Страница 4: ......
Страница 8: ...iv ...
Страница 20: ...xvi ...
Страница 106: ...MB95630H Series 86 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 6 I O PORT 6 2 Configuration and Operations ...
Страница 282: ...MB95630H Series 262 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 14 LIN UART 14 8 Notes on Using LIN UART ...
Страница 642: ...MB95630H Series 622 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E APPENDIX A Instruction Overview A 5 Instruction Map ...
Страница 644: ......