Panasonic MN101L Series User Manual page 430

Lsi
Table of Contents

Advertisement

Chapter 13
Serial Interface
Initial Setting Before Communication
Step
1
Disable interrupt
Reset
2
Pin setting
3
(Disable serial output)
BRTMn setting
4
Mode register setting
5
Pin setting
(Enable communication pins)
6
Pin setting
7
(Enable serial output)
8
Clear interrupt source
9
Enable interrupt
BRTMm counting start
10
Release serial reset
11
XIII - 42
Clock-Synchronous Communication
Setting
Register name
SCnTICR.SCnTIE = 0
<SCIFn (n = 0, 1 )>
SCnMD3.SCnRSTN = 0
<SCIFn (n = 2, 3)>
SCnMD2.SCnRSTN = 0
PnMD
BRTM_S_MD
BRTM_S_CKSEL
BRTM_S01_CK
BRTM_S23_CK
BRTM_Sn_OC
SCnMD0
SCnMD1
SCnMD2
SCnMD3
<SCIFn (n = 0, 1)>
SCnMD1.SCnSBOS
SCnMD1.SCnSBIS
SCnMD1.SCnSBTS
SCnMD3.SCnSBCSEN
<SCIFn (n = 2, 3)>
SCnMD1.SCnSBOS
SCnMD1.SCnSBIS
SCnMD1.SCnSBTS
SCnMD2.SCnSBCSEN
PnMD
SCnTICR.SCnTIR = 0
SCnTICR.SCnTIE
BRTM_S_EN.BRTM_Sn_E
N = 1
<SCIFn (n = 0, 1)>
SCnMD3.SCnRSTN = 1
<SCIFn (n = 2, 3)>
SCnMD2.SCnRSTN = 1
Description
Disable the interrupt for SCIFn to be used.
Reset SCIFn to be used.
Set pins to 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 to be used for serial communication to 1.
Enable communication pins.
Clear the interrupt source.
To use an interrupt, set SCnTICR.SCnTIE to 1.
BRTM starts counting.
Release the serial reset.
After that, serial communication is enabled.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents