EasyManua.ls Logo

Panasonic MN103S

Panasonic MN103S
552 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 12
Serial interface 0 and 1
XII - 24 Operation
12.3.5 UART Serial Interface Setup
UART Serial Interface Setup
The setup example for UART transmission/reception with serial 0 is shown. Table: 12.3.10 shows the condition
for transmission/reception.
Table:12.3.10 UART Interface Transmission/Reception Condition
An setup procedure, with a description of each steps is shown below.
Setup item Description
SBI0/SBO0 pin setting
Independent (2 channels)
Frame mode specification 8 bits + 2 stop bits
First transfer bit MSB
Clock source Timer 14
Parity bit add / check "0" added / check
Serial 0 transmission complete interrupt Enable
Serial0 reception complete interrupt Enable
Setup Procedure Description
(1) Set the baud rate timer (1) Set the baud rate by the TM14MD and TM14BR
registers, and set the TM14CNE flag to 1 to operate the
timer 14.
(2) Select the baud rate timer
SIFCLK(0x0000A10E)
bp5-4: SC0CKS2-1=00
(2) Set the SC0CKS2-1 flags of the SIFCLK register to “00”
to set the timer 14 underflow to the baud rate timer.
(3) Set the pin function
P2MD(0x0000A032)
bp5: P25M=1
(3) Set the P25M flag of the P2MD register to “1” to set it to
SB0 pin function .
(4) Control the pin direction
P2DIR(0x0000A022)
bp27: P27D=0
bp25: P25D=1
(4) Set the P25D flag of the P2DIR register to “1” to set P25
to output mode , and set the P27D flag to “0” to set P27
to input mode.

Table of Contents

Other manuals for Panasonic MN103S

Related product manuals