菜单
  

               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.

     Interrupt Priority Structure

    The 89C51/89C52/89C54/89C58 have a 6-source four-level interrupt structure.

    There are 3 SFRs associated with the four-level interrupt. They are the IE, IP, and IPH. (See Figures 10, 11, and 12.) The IPH (Interrupt Priority High) register makes the four-level interrupt structure possible. The IPH is located at SFR address B7H. The structure of the IPH register and a description of its bits is shown in Figure 12. The function of the IPH SFR is simple and when combined with the IP SFR determines the priority of each interrupt. The priority of each interrupt is determined as shown in the following table:

     

    There are four interrupt levels rather than two as on the 80C51. An interrupt will be serviced as long as an interrupt of equal or higher priority is not already being serviced. If an interrupt of equal or higher level priority is being serviced, the new interrupt will wait until it is finished before being serviced. If a lower priority level interrupt is being serviced, it will be stopped and the new interrupt serviced. When the new interrupt is finished, the lower priority level interrupt that was stopped will be completed.

     Reduced EMI Mode

    The AO bit (AUXR.0) in the AUXR register when set disables the ALE output.

    Reduced EMI Mode

     AUXR (8EH)

    Dual DPTR

    The dual DPTR structure (see Figure 13) is a way by which the chip will specify the address of an external data memory location. There are two 16-bit DPTR registers that address the external memory, and a single bit called DPS = AUXR1/bit0 that allows the program code to switch between them.

    • New Register Name: AUXR1#

    • SFR Address: A2H

    • Reset Value: xxxx00x0B

    AUXR1(A2H)

     

    The DPS bit status should be saved by software when switching between DPTR0 and DPTR1.

    The GF0 bit is a general purpose user-defined flag. Note that bit 2 is not writable and is always read as a zero. This allows the DPS bit to be quickly toggled simply by executing an INC AUXR1 instruction without affecting the GF2 bit.

     

    DPTR Instructions

    The instructions that refer to DPTR refer to the data pointer that is currently selected using the AUXR1/bit 0 register. The six instructions that use the DPTR are as follows:

    INC DPTR             Increments the data pointer by 1

    MOV DPTR, #data16   Loads the DPTR with a 16-bit constant

    MOV A, @ A+DPTR    Move code byte relative to DPTR to ACC

  1. 上一篇:供电多通道RS-232驱动器接收器英文文献和中文翻译
  2. 下一篇:机械臂英文文献和中文翻译
  1. 微型固体氧化物燃料电池英文文献和中文翻译

  2. PLC可编程控制器的介绍英文文献和中文翻译

  3. 高校微课程资源系统英文文献和中文翻译

  4. 动力分析和控制器设计英文文献和中文翻译

  5. 注射成型的微悬臂梁结构英文文献和中文翻译

  6. 微辊压花工艺英文文献和中文翻译

  7. 微注塑成型工艺参数调整英文文献和中文翻译

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

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

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

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

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

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

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

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

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

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

  

About

优尔论文网手机版...

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

关闭返回