2010-08-26 03:56:56     BF518 EBIU AMC problem

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-08-26 03:56:56     BF518 EBIU AMC problem

He Wang (CHINA)

Message: 92798   

 

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?

 

   THX!

TranslateQuoteReplyEditDelete

 

 

2010-08-26 04:46:32     Re: BF518 EBIU AMC problem

Mike Frysinger (UNITED STATES)

Message: 92799   

 

what environment are you running under ?  is this code part of u-boot ?  linux ?  or are you doing bare metal stuff ?

QuoteReplyEditDelete

 

 

2010-08-26 05:18:09     Re: BF518 EBIU AMC problem

He Wang (CHINA)

Message: 92800   

 

It's bare metal stuff , use DSP++5.0

TranslateQuoteReplyEditDelete

 

 

2010-08-26 05:22:09     Re: BF518 EBIU AMC problem

Mike Frysinger (UNITED STATES)

Message: 92801   

 

this forum is not for VDSP support.  please use:

  ez.analog.com/

QuoteReplyEditDelete

 

 

2010-08-26 08:08:51     Re: BF518 EBIU AMC problem

He Wang (CHINA)

Message: 92805   

 

OK,THX

Attachments

    Outcomes