• Sharc FLAGS I/O Register(flag0~3)


    Core FLAG Pins Multiplexing
        This module also includes the multiplexers of the FLAG0-3 pins shown in Figure 24-9. The FLAG0-2 pins can act as core FLAGS0-2 or IRQ0-2, or a memory

    select MS2 (FLAG2 pin) and the FLAG3 pin can act as a core FLAG3 orthe TMREXP signal of the core timer or as a memory select MS3.

        Flag pins (FLG3-0) are connected as input after reset.If more than four flags are required, they can multiplexed using the external port pins in the SYSCTL

    register or the DPI pins in the DPI registers.For a detailed flag description refer to the SHARC Processor Programming Reference. Table 24-14 provides

    information on FLAG function based on the settings of the memory select enable, the flag timer expired and the FLAG2 interrupt bits in the system control register

    image

     

    image

     

    code

    #include <sysreg.h>

    #include <def21489.h>

    #include <cdef21489.h>

     

    *pSYSCTL &= (~(MSEN|TMREXPEN|IRQ2EN));

    sysreg_bit_set(sysreg_FLAGS, (FLG2O|FLG3O));

    sysreg_bit_clr(sysreg_FLAGS, (FLG2|FLG3));

  • 相关阅读:
    第一阶段冲刺第五天
    第一阶段冲刺第四天
    构建之法阅读笔记03
    第一阶段冲刺第三天
    第一阶段冲刺第二天
    第十一周进度
    第一阶段意见评论
    第十周进度
    第九周进度
    人月神话阅读笔记03
  • 原文地址:https://www.cnblogs.com/ldjrl2013/p/3964282.html
Copyright © 2020-2023  润新知