mpc82l54 Megawin Technology, mpc82l54 Datasheet - Page 36

no-image

mpc82l54

Manufacturer Part Number
mpc82l54
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
mpc82l54AE2
Quantity:
160
Part Number:
mpc82l54AT
Manufacturer:
MOTO
Quantity:
95
Company:
Part Number:
mpc82l54AT2
Quantity:
33
36
Mode3
Mode 3 is the same as mode 2 except the baud rate is variable.
In all four modes, transmission is initiated by any instruction that uses SBUF as a destination
register. Reception is initiated in mode 0 by the condition RI = 0 and REN = 1. Reception is
initiated in the other modes by the incoming start bit with 1-to-0 transition if REN=1.
There are several SFRs related to serial port configuration described as following.
SFR: SCON (Serial Control)
FE:= Frame Error bit
{ SM0, SM1 }:= Used to set operating mode of the serial port.
SM2:= Enable the automatic address recognition feature in mode 2 and 3.
REN:= Enable the serial port reception.
TB8:= The 9th data bit, which will be transmitted in Mode 2 and Mode 3.
RB8:= In mode 2 and 3, the received 9th data bit will be put into this bit.
TI:= Transmitting done flag. After a transmitting has been finished, the hardware will set this bit.
RI:= Receive done flag. After reception has been finished, the hardware will set this bit.
SM0/FE
Bit-7
This bit is set by the receiver when an invalid stop bit is detected. The FE bit is not cleared by
valid frames but should be cleared by software. The SMOD0 bit must be set to enable access
to the FE bit.
{ 0, 0 }:= set the serial port operate under Mode 0
{ 0, 1 }:= set the serial port operate under Mode 1
{ 1, 0 }:= set the serial port operate under Mode 2
{ 1, 1 }:= set the serial port operate under Mode 3
0:= (default)
1:=
If SM2=1, RI will not be set unless the received 9th data bit is 1, indicating an address, and
the received byte is a Given or Broadcast address. In mode1, if SM2=1, RI will not be set
unless a valid stop Bit was received, and the received byte is a Given or Broadcast
address.
Disable the serial port reception.
Enable the serial port reception.
Baud Rate (for Mode 3)
Bit-6
SM1
Bit-5
SM2
MPC82x54A Data Sheet
=
2
Bit-4
REN
SMOD
32
Bit-3
X
TB8
(Timer-1 overflow rate)
Bit-2
RB8
Bit-1
TI
MEGAWIN
Bit-0
RI

Related parts for mpc82l54