This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

some questions about XINTF of TMS320F2812

Other Parts Discussed in Thread: TMS320F2812

Hi,

I have some questions:

1, Now I am using XINTF of TMS320F2812 for CPLD. Part of my codes are copied as follows:

 

 

#include "f2812a.h"

 

#define LBDS (*((unsigned int *)0xc0000)) // use zone2 

#define CPLD_QEP (*((unsigned int *)0x2003))// use zone0 and address wire A0 and A1

void Delay(unsigned int nDelay);

main()

{

unsigned int uLED[4]={1,2,4,8}; // control four leds

int i;

unsigned int readqep = 0;

InitSysCtrl();

 

while ( 1 )

{

  readqep=CPLD_QEP;  // read cpld data bus?

for ( i=0;i<4;i++ )

{

LBDS=uLED[i];

Delay(256);

}

for ( i=3;i>=0;i-- )

{

LBDS=uLED[i];

Delay(256);

}

}

}

 

  when the codes run on my board,   I checked out XZCS2 pin in scope, It is giving a signal output  with spikes, and the maximum voltage is 1.6V;

  Then I checked out XZCS0AND1 pin that controlled cpld, it is giving a high level signal of 3.3V . It is meaning my cpld does't work and 2812 can't read data from cpld.


What's the problem with my program or design?  Could someone give me help? thanks very much.

 

2. I also checked out the XCLKOUT pin, the maximum voltage is 2.16v, the minum voltage is 1.08v , Is it right or not?

 

thanks 


 

  • Green wisdomy said:
    #define LBDS (*((unsigned int *)0xc0000)) // use zone2 

    One thing I noticed is zone 2 is at 0x08 0000 and not the address shown above.

     

    If you open a memory window in Code Composer to the XINTF address and write to it through the debugger - do the chip select signals behave as expected?

    Green wisdomy said:
    2. I also checked out the XCLKOUT pin, the maximum voltage is 2.16v, the minum voltage is 1.08v , Is it right or not?

    This is a 0-3.3V pin.

     

     

     

  • hi, Lori Heustess!

    thanks for your help! My problems have solved. 

    1.  For reading address in program take little time, so It's normal for the signal of XZCS0AND1 to be always high !

    2. The problem of XCLKOUT's voltage comes from the scope, that's because the frequency of scope is not high enough to test the XCLKOUT of 37.5Mhz .

    best regards for you!