Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | [AVR club] Problem in SPI receive configure as master from dataflash

Atmel AVR Microcontroller discussion group.

[AVR club] Problem in SPI receive configure as master from dataflash - nikunjscribd - May 7 15:52:05 2009

hiiii friends.....

I m connecting ATMEGA162 with AT45DB041D Dataflash using SPI..I m suffer a problem in receiving data from flash ... i configure ATMEGA162 as master....
ATMEGA162 generates clock on SCK pin only when data written to SPDR & dataflsh gives data only on receiving of clock on SCK pin....
ATMEGA162 stops giving clock after sending opcode for receive & dataflash is not responding as it is not receiving clock...
so please help me out to solve these problem please...
thank u in advance

------------------------------------



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


[AVR club] Re: Problem in SPI receive configure as master from dataflash - mkoswatte - May 13 12:26:40 2009

--- In a...@yahoogroups.com, "nikunjscribd" wrote:
>
> hiiii friends.....
>
> I m connecting ATMEGA162 with AT45DB041D Dataflash using SPI..I m suffer a problem in receiving data from flash ... i configure ATMEGA162 as master....
> ATMEGA162 generates clock on SCK pin only when data written to SPDR & dataflsh gives data only on receiving of clock on SCK pin....
> ATMEGA162 stops giving clock after sending opcode for receive & dataflash is not responding as it is not receiving clock...
> so please help me out to solve these problem please...
> thank u in advance
>

Hello in my project i hv to connect two ATmega using SPI

But when connected it is seems to be that Master atmega is restarting over and over please help!!

------------------------------------



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

[AVR club] Re: Problem in SPI receive configure as master from dataflash - jmacego - May 13 13:24:40 2009

To both of you (and anyone else):

It is next to impossible to help you without at the very least a snippet of the code that doesn't work.

Sorry.

-JM

--- In a...@yahoogroups.com, mkoswatte wrote:
>
> --- In a...@yahoogroups.com, "nikunjscribd" wrote:
> >
> > hiiii friends.....
> >
> > I m connecting ATMEGA162 with AT45DB041D Dataflash using SPI..I m suffer a problem in receiving data from flash ... i configure ATMEGA162 as master....
> > ATMEGA162 generates clock on SCK pin only when data written to SPDR & dataflsh gives data only on receiving of clock on SCK pin....
> > ATMEGA162 stops giving clock after sending opcode for receive & dataflash is not responding as it is not receiving clock...
> > so please help me out to solve these problem please...
> > thank u in advance
> > Hello in my project i hv to connect two ATmega using SPI
>
> But when connected it is seems to be that Master atmega is restarting over and over please help!!
>

------------------------------------



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

Re: [AVR club] Re: Problem in SPI receive configure as master from dataflash - Gmail - May 13 14:38:50 2009

Hi,

I think your problem the trick lies in the part where the data flash does not send data, instead you have to send what is called a dummy byte then you will receive your data.

I had a similar problem some time ago, you can check the following post on avrfreaks: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=69103
You will also find a link to a helpful tutorial.

Moataz Hussein

Subject: [AVR club] Re: Problem in SPI receive configure as master from dataflash

--- In a...@yahoogroups.com, "nikunjscribd" wrote:
>
> hiiii friends.....
>
> I m connecting ATMEGA162 with AT45DB041D Dataflash using SPI..I m suffer a problem in receiving data from flash ... i configure ATMEGA162 as master....
> ATMEGA162 generates clock on SCK pin only when data written to SPDR & dataflsh gives data only on receiving of clock on SCK pin....
> ATMEGA162 stops giving clock after sending opcode for receive & dataflash is not responding as it is not receiving clock...
> so please help me out to solve these problem please...
> thank u in advance
>

Hello in my project i hv to connect two ATmega using SPI

But when connected it is seems to be that Master atmega is restarting over and over please help!!

[Non-text portions of this message have been removed]

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


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

Re: [AVR club] Re: Problem in SPI receive configure as master from dataflash - raj - May 18 9:44:19 2009

=0D
Pls type/attach the code with compiler used!!!=0D
=0D
Regards,=0D
kundan=0D
On Wed, 13 May 2009 22:54:15 +0530 wrote=0D
>To both of you (and anyone else):=0D
>=0D
>It is next to impossible to help you without at the very least a snippet o=
f the code that doesn't work.=0D
>=0D
>Sorry.=0D
>=0D
>-JM=0D
>=0D
>--- In a...@yahoogroups.com, mkoswatte wrote:=0D
>>=0D
>> --- In a...@yahoogroups.com, "nikunjscribd" wrote:=0D
>> >=0D
>> > hiiii friends.....=0D
>> > =0D
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I m connecting ATMEGA162 with AT45=
DB041D Dataflash using SPI..I m suffer a problem in receiving data from fla=
sh ... i configure ATMEGA162 as master....=0D
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ATMEGA162 generates clock on SCK p=
in only when data written to SPDR & dataflsh gives data only on receiving o=
f clock on SCK pin....=0D
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ATMEGA162 stops giving clock after=
sending opcode for receive & dataflash is not responding as it is not rece=
iving clock...=0D
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 so please help me out to solve the=
se problem please...=0D
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 thank u in advance=0D
>> >=0D
>> =0D
>> Hello in my project i hv to connect two ATmega using SPI=0D
>> =0D
>> But when connected it is seems to be that Master atmega is restarting ov=
er and over please help!!=0D
>>=0D
>=0D
>=0D
>

Sr. FAE=0D
Excel Eltech inc. =0D
A-76, EOK. New Delhi=0D
110065=0D
ph:9811675688=0D
[Non-text portions of this message have been removed]

------------------------------------



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