zoukankan      html  css  js  c++  java
  • 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));

  • 相关阅读:
    如何进入高效学习状态
    shell printf命令:格式化输出语句
    C# virtual、abstract
    git解决Could not execute editor
    go defer笔记
    git从其他分支提取文件merge到当前分支
    golang map
    状态模式
    golang单例模式
    go 单元测试时读取配置文件
  • 原文地址:https://www.cnblogs.com/ldjrl2013/p/3964282.html
Copyright © 2011-2022 走看看