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));

  • 相关阅读:
    小网络的激活函数
    Dual Path Networks
    RT600之Mailbox
    RT600之OTFAD
    RSA算法详解
    RT600之SB
    RT600之master key
    RT600之PUF
    RT600 Boot详解
    RT如何生成image
  • 原文地址:https://www.cnblogs.com/ldjrl2013/p/3964282.html
Copyright © 2011-2022 走看看