Sign in

username:

password:



Not a member?

Search AT91SAM



Search tips

Subscribe to AT91SAM



Ads

Discussion Groups

Discussion Groups | AT91SAM ARM | AT91SAM9 ebi A0 A1 problem

For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU. This group is to exchange information to help users get started and learn how to use the devices.

AT91SAM9 ebi A0 A1 problem - Bernd - Sep 3 14:28:42 2008

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 )