菜单
  

    Using the Automatic Address Recognition feature allows a master to selectively communicate with one or more slaves by invoking the Given slave address or addresses. All of the slaves may be contacted by using the Broadcast address. Two special Function Registers are used to define the slave’s address, SADDR, and the address mask, SADEN. SADEN is used to define which bits in the SADDR are to b used and which bits are “don’t care”. The SADEN mask can be logically ANDed with the SADDR to create the “Given” address which the master will use for addressing each of the slaves. Use of the Given address allows multiple slaves to be recognized while excluding others. The following examples will help to show the versatility of this scheme:

    Slave 0       

    SADDR =  1100 0000

    SADEN =  1111 1101

    Given =  1100 00X0

    Slave 1   

     SADDR =  1100 0000

    SADEN =  1111 1110

    Given =  1100 000X

    In the above example SADDR is the same and the SADEN data is used to differentiate between the two slaves. Slave 0 requires a 0 in bit 0 and it ignores bit 1. Slave 1 requires a 0 in bit 1 and bit 0 is ignored. A unique address for Slave 0 would be 1100 0010 since slave 1 requires a 0 in bit 1. A unique address for slave 1 would be 1100 0001 since a 1 in bit 0 will exclude slave 0. Both slaves can be selected at the same time by an address which has bit 0 = 0 (for slave 0) and bit 1 = 0 (for slave 1). Thus, both could be addressed with 1100 0000.

    In a more complex system the following could be used to select slaves 1 and 2 while excluding slave 0:

    Slave 0       

    SADDR =  1100 0000

    SADEN =  1111 1001

    Given =  1100 0XX0

    Slave 1   

     SADDR =  1110 0000

    SADEN =  1111 1010

    Given =  1110 0X0X

    Slave 2       

    SADDR =  1110 0000

    SADEN =  1111 1100

    Given =  1110 00XX

    In the above example the differentiation among the 3 slaves is in the lower 3 address bits. Slave 0 requires that bit 0 = 0 and it can be uniquely addressed by 1110 0110. Slave 1 requires that bit 1 = 0 and it can be uniquely addressed by 1110 and 0101. Slave 2 requires that bit 2 = 0 and its unique address is 1110 0011. To select Slaves 0 and 1 and exclude Slave 2 use address 1110 0100, since it is necessary to make bit 2 = 1 to exclude slave 2.

    The Broadcast Address for each slave is created by taking the logical OR of SADDR and SADEN. Zeros in this result are trended as don’t-cares. In most cases, interpreting the don’t-cares as ones, the broadcast address will be FF hexadecimal.

    Upon reset SADDR (SFR address 0A9H) and SADEN (SFR address 0B9H) are leaded with 0s. This produces a given address of all “don’t cares” as well as a Broadcast address of all “don’t cares”. This effectively disables the Automatic Addressing mode and allows the microcontroller to use standard 80C51 type UART drivers which do not make use of this feature.

    概述该89C51/89C52/89C54/89C58包含非易失性Flash平行的程序存储器编程,对于设备是串行可编程(在系统可编程(ISP)与引导装载机),看到89C51RC+/89C51RD+数据表。

    这两个系列是单芯片微控制器制造8-bit先进的CMOS 80C51进程,并衍生出的单片机系列,所有器件具有相同的指令集即为80C51。

    特征

    80c51核心处理单元

    片上闪存程序存储器

    速度高达33MHz

    全静态操作

  1. 上一篇:老龄化社会中手机的应用现状英文文献和中文翻译
  2. 下一篇:大尺寸图像使用Hough变换英文文献和中文翻译
  1. 汽车内燃机连杆载荷和应...

  2. 机械手系统英文文献和中文翻译

  3. 固体氧化物燃料电池英文文献和中文翻译

  4. 船舶运动仿真系统英文文献和中文翻译

  5. 新能源空调系统设计英文文献和中文翻译

  6. 正交试验回归法和响应曲...

  7. 机械设计制造及其自动化英文文献和中文翻译

  8. 中国传统元素在游戏角色...

  9. NFC协议物理层的软件实现+文献综述

  10. 江苏省某高中学生体质现状的调查研究

  11. 巴金《激流三部曲》高觉新的悲剧命运

  12. g-C3N4光催化剂的制备和光催化性能研究

  13. 上市公司股权结构对经营绩效的影响研究

  14. C++最短路径算法研究和程序设计

  15. 浅析中国古代宗法制度

  16. 现代简约美式风格在室内家装中的运用

  17. 高警觉工作人群的元情绪...

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回