Dear experts,
I am using C6476.I access FRAM with EMIFA,and EDMA is used to read 16bits ADC sampling data by SPI interface.When I access FRAM,I miss one sampling data.But without FRAM access, everything is OK.I don't know why.
Configuration is as follows:
EMIFA's clock is 75MHZ,and EMIFA's timing set as follows
W_HOLD=5,W_STROBE=35,W_SETUP=5
R_HOLD=5,R_STROBE=13,R_SETUP=5
SPI clock(SPI_CLK)=10MHz, and SPI data length is 16bit
DMA is configured to continuous transfer SPI data.
I read data from FRAM every one millisecond in main function,and write data to FRAM every 100 microsecond in timer interrupt function.
main()
{
...
for(;)
{
if(one millisecond is timeout)
{
read data from FRAM
}
}
}
100 microsecond timer interrupt function
interrupt void timer_isr()
{
read sampling data
...
write data to FRAM
}
Best regards!
rjy