Setting Procedure - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 13
Serial Interface
13.4.4

Setting procedure

The setting procedure of full-duplex UART is shown as follows.
Initial Setting Before Communication
Step
Disable interrupt
1
Serial reset
2
Pin setting 1
(Disable communication pins)
3
BRTMn setting
4
Mode register setting
5
Pin setting 2
6
Pin setting 3
7
(Enable communication pins)
Clear interrupt source
8
Enable interrupt
9
BRTMm counting start
10
Release serial reset
11
XIII - 54
Full-duplex UART Communication
Initial Setting Before Communication
Data Transmission
Data Reception
UART Break Transmission
Setting
Register name
SCnTICR.SCnTIE = 0
SCnRICR.SCnRIE = 0
SCnMD3.SCnRSTN = 0
SCnMD3.SCnRSRN = 0
-
BRTM_S_MD
BRTM_S_CKSEL
BRTM_S01_CK
BRTM_S23_CK
BRTM_Sn_OC
SCnMD0
SCnMD1
SCnMD2
SCnMD3
SCnMD1.SCnSBOS
SCnMD1.SCnSBIS
-
SCnTICR.SCnTIR
SCnRICR.SCnRIR
SCnTICR.SCnTIE
SCnTICR.SCnTIE
BRTM_S_EN.BRTM_Sn_
EN = 1
SCnMD3.SCnRSTN = 1
SCnMD3.SCnRSRN = 1
Setting
Disable the interrupt for SCIFn to be used.
Execute serial reset.
Set pins to general-purpose ports to disable communication
pins.
Refer to the chapter, "IO Port" for setting general-purpose
ports.
While BRTMn is active, set BRTM_S_EN.BRTM_Sn_EN to
0 to stop counting.
Output clock cycle and duty for BRTMn are set.
Set SCIFn operation mode.
Set pins used for serial communication to 1.
Enable communication pins.
Clear the interrupt source.
Enable the interrupt to be used.
BRTM starts counting.
Release the serial reset.
After that, serial communication is enabled.
Page
XIII-54
XIII-55
XIII-55
XIII-55
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents