英语翻译15.3.Multiprocessor Communications9-Bit UART mode suppor

英语翻译
15.3.Multiprocessor Communications
9-Bit UART mode supports multiprocessor communication between a master processor and one or more
slave processors by special use of the ninth data bit.When a master processor wants to transmit to one or
more slaves,it first sends an address byte to select the target(s).An address byte differs from a data byte
in that its ninth bit is logic 1; in a data byte,the ninth bit is always set to logic 0.
Setting the MCE0 bit (SCON.5) of a slave processor configures its UART such that when a stop bit is
received,the UART will generate an interrupt only if the ninth bit is logic one (RB80 = 1) signifying an
address byte has been received.In the UART interrupt handler,software will compare the received
address with the slave's own assigned 8-bit address.If the addresses match,the slave will clear its MCE0
bit to enable interrupts on the reception of the following data byte(s).Slaves that weren't addressed leave
their MCE0 bits set and do not generate interrupts on the reception of the following data bytes,thereby
ignoring the data.Once the entire message is received,the addressed slave resets its MCE0 bit to ignore
all transmissions until it receives the next address byte.
Multiple addresses can be assigned to a single slave and/or a single address can be assigned to multiple
slaves,thereby enabling "broadcast" transmissions to more than one slave simultaneously.The master
processor can be configured to receive all transmissions or a protocol can be implemented such that the
master/slave role is temporarily reversed to enable half-duplex transmission between the original master
and slave(s).
zxsfrank 1年前 已收到1个回答 举报

lotuswen 幼苗

共回答了20个问题采纳率:85% 举报

15.3.Multiprocessor通信
9-Bit UART方式支持一个主要处理器之间的多重处理机通信和一个或更多由对第九个数据位元的特别用途的slave处理器. 当一个主要处理器想要传送到一个或
more苦干,它首先送一个地址字节选择目标. 一个地址字节与数据字节不同in它的第九位是逻辑1; 在一个数据字节,第九位总是被设置对逻辑0.
Setting MCE0位(SCON.5)一个奴隶处理器配置它的UART这样,当结束位是时received, UART将引起一个中断,只有当第九位是逻辑一(RB80 = 1)符号化
address字节被接受了. 在UART中断处理程序,软件将比较被接受的与奴隶的自己的被分配的8位地址的address. 如果地址配比,奴隶将清除它的MCE0 使能在以下数据字节的招待会的中断的bit. 不是演讲的事假的奴隶their MCE0位在以下数据字节的招待会,从而设置和不引起中断ignoring数据. 一旦全部消息收到,演讲的奴隶重新设置它的忽略的MCE0位all传输,直到它接受下个地址字节.
Multiple地址可以被分配到一名唯一奴隶并且/或者一个唯一地址可以被分配到多
slaves,从而同时使能“广播”传输对超过一名奴隶. 主要可以配置processor接受所有传输或协议可以被实施这样
master/slave角色临时地被扭转使能在原始的主要之间的伴双工播送and奴隶.

1年前

4
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 1.547 s. - webmaster@yulucn.com