欢迎访问ic37.com |
会员登录 免费注册
发布采购

MPC82X54AS3 参数 Datasheet PDF下载

MPC82X54AS3图片预览
型号: MPC82X54AS3
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit micro-controller]
分类和应用: 微控制器
文件页数/大小: 74 页 / 1587 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82X54AS3的Datasheet PDF文件第33页浏览型号MPC82X54AS3的Datasheet PDF文件第34页浏览型号MPC82X54AS3的Datasheet PDF文件第35页浏览型号MPC82X54AS3的Datasheet PDF文件第36页浏览型号MPC82X54AS3的Datasheet PDF文件第38页浏览型号MPC82X54AS3的Datasheet PDF文件第39页浏览型号MPC82X54AS3的Datasheet PDF文件第40页浏览型号MPC82X54AS3的Datasheet PDF文件第41页  
SFR:
SBUF
(Serial Buffer)
Bit-7
Bit-6
Bit-5
Bit-4
Bit-3
Bit-2
Bit-1
Bit-0
(data to be transmitted or received data)
Frame Error Detection
When used for frame error detect, the UART looks for missing stop bits in the communication.
A missing bit will set the FE bit in the SCON register. The FE bit shares the SCON.7 bit with
SM0 and the function of SCON.7 is determined by PCON.6 (SMOD0). If SMOD0 is set then
SCON.7 functions as FE. When SMOD0 is cleared, SCON.7 functions as SM0. When used as
FE, SCON.7 can only be cleared by software.
Automatic Address Recognition
There is an extra feature makes the device convenient to act as a master, which
communicates to multiple slaves simultaneously. It is really
Automatic Address Recognition.
There are two SFR
SADDR
and
SADEN
implemented in the device. The user can read or
write both of them. Finally, the hardware will make use of these two SFR to “generate” a
“compared byte”. The formula specifies as following.
Bit[
i
] of
Compared Byte =
(SADEN[
i
] == 1
)?
SADDR[
i
]
:
x
For example:
Set
SADDR
= 11000000b
Set
SADEN
= 11111101b
The achieved “Compared Byte” will be “110000x0”
(x means don’t care)
For another example:
Set
SADDR
= 11100000b
Set
SADEN
= 11111010b
The achieved “Compared Byte” will be “11100x0x”
After the generic “Compared Byte” has been worked out, the MPC82x54A will make use of
this byte to determine how to set the bit
RI
in SFR
SCON.
Normally, an UART will set bit
RI
whenever it has done a byte reception; but, for the UART in
the MPC82x54A, if the bit
SM2
is set, it will set
RI
according to the following formula.
RI
=
(SM2 ==
1)
&& (SBUF ==
Compared Byte)
&& (RB8 ==
1)
In other words, not all data reception will respond to RI while specific data does.
By setting the SADDR and the SADEN, the user can filter out those data byte that doesn’t like
to care. This feature brings great help to reduce software overhead.
The above feature adapts to the serial port when operated in Mode1, Mode2, and Mode3.
Dealing with Mode 0, the user can ignore it.
MEGAWIN
MPC82x54A Data Sheet
37