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