Hi,
working with the AT91SAM9260 controller, I`ve one problem with the
external memory interface. I`m not able to get a low signal on A0 and
A1. All other databus signals are working without problems.
This is my configuration of the 4 registers for the smc controller.
// Configure SMC
AT91C_BASE_SMC->SMC_SETUP2 = 0x00000001;
AT91C_BASE_SMC->SMC_PULSE2 = 0x07070703;
AT91C_BASE_SMC->SMC_CYCLE2 = 0x00070007;
AT91C_BASE_SMC->SMC_CTRL2 = (AT91C_SMC_READMODE
| AT91C_SMC_WRITEMODE
| AT91C_SMC_NWAITM_NWAIT_DISABLE
| ((0x1 << 16) & AT91C_SMC_TDF));
AT91C_BASE_SMC->SMC_CTRL2 |= AT91C_SMC_DBW_WIDTH_EIGTH_BITS;
I`m not sure if there`s any other register I`ve to configurate to
solve this problem.
#define WRITE_DATA8(dataAddress, data) \
{(*((volatile unsigned char *) dataAddress)) = (unsigned char)
data;}
while(1)
{
WRITE_DATA8(0x30000000 + 0x00, 0x45);
}
When I use this part of code within the while(1) loop, both lines for
A0 and A1 are togglen (between high and low)...
Maybe, a sign, that it is a software problem not a hardware problem?
best regards
Bernd
------------------------------------

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )