AnsweredAssumed Answered

BF518 EBIU AMC problem

Question asked by AlraWong on Aug 26, 2010
Latest reply on Aug 27, 2010 by JoeT

Hi,

       i met a problem about EBIU AMC.

      My test code is below,

  {  

          #define TEST_LED                  0x20200A00

          #define pTEST_LED                  ((volatile unsigned short *)TEST_LED)

         Init_UART();

       /* init PLL first time */
        Init_PLL();   

      *pPORTH_FER = 0x00;
      *pPORTHIO_DIR   = 0xFF;     
      *pEBIU_AMGCTL   = 0x00F6;        //enable bank0-2

      *pPORTG_FER     |= 0x0E00;
      *pPORTH_FER     |= 0x00C0;    
      *pPORTHIO_DIR  = 0x0027;
      *pPORTHIO_INEN = 0x0027;
      *pPORTG_MUX     = 0x1400;
     
     *pEBIU_AMBCTL0 = 0xFF02FF02;
     *pEBIU_AMBCTL1 = 0xFF02FF02;
     ssync();
     
       while(1)
      {
        for(j=0;j<1400000;j++);      
        *pTEST_LED  = 0x00;
        }         

}

    

    When this Prog is running, the AMS[2] IS always HIGH.

    IN WRITE BUS cycles,the AMS[2] should be low, So is there anything i didn't notice?

    i'm doing bare metal stuff by using dsp++5.0

     THX!!!

Outcomes