CAN anyone HELP ME IN AT45DB321 FLASH interfacing.
HERE EXPLAINED WHAT WE ARE DOING.
I AM USING SF1000.LIB FOR PARALLEL INTERFACE mode.IN THIS
THEY USED PARALLEL PORT D by default.BUT WE ARE USING PARALLEL
PORT E.
SO PLEASE GIVE ME WHAT CHANGES should be made in SF1000.LIB
AND SPI.LIB
The following things are declared in the main.
#define SPI_TX_REG
#define SPI_TX_REG PEDR
#define SPI_CLK_BIT 1
#define SPI_TXD_BIT 4
#define SPI_RX_REG PEDR
#define SPI_RXD_MASK 8 //what should be this value??.
For these things,it GIVES UNKNOW RESPONCE.
WE ARE USING AT45DB321 FLASH. PIN DETAILS ARE
CS=PE3 //PB7 is used by default, for this SF1000.lib edited
SCK=PE1
SO=PE5
SI=PE4.
WE ARE USING SPI_MODE_PARALLEL MODE.
BYE....
Problem with AT45DB321 flash interfacing.
Started by ●July 19, 2005
Reply by ●July 19, 20052005-07-19
At 09:10 AM 7/19/2005 +0000, you wrote:
>
>CAN anyone HELP ME IN AT45DB321 FLASH interfacing.
>HERE EXPLAINED WHAT WE ARE DOING.
>I AM USING SF1000.LIB FOR PARALLEL INTERFACE mode.IN THIS
>THEY USED PARALLEL PORT D by default.BUT WE ARE USING PARALLEL
>PORT E.
>SO PLEASE GIVE ME WHAT CHANGES should be made in SF1000.LIB
>AND SPI.LIB
>
>The following things are declared in the main.
>
>#define SPI_TX_REG
> #define SPI_TX_REG PEDR
> #define SPI_CLK_BIT 1
> #define SPI_TXD_BIT 4
> #define SPI_RX_REG PEDR
> #define SPI_RXD_MASK 8 //what should be this value??.
I am pretty sure only ports A-D support SPI. You might want to double
check that you can even use port E.
-Mike
--
Mike vanMeeteren fast351@fast... FASTechnologies Corp.
Track Hauler: 2001 F150 Track toy: 89 Mustang LX 351W 10.93 @ 122.5 MPH
>
>CAN anyone HELP ME IN AT45DB321 FLASH interfacing.
>HERE EXPLAINED WHAT WE ARE DOING.
>I AM USING SF1000.LIB FOR PARALLEL INTERFACE mode.IN THIS
>THEY USED PARALLEL PORT D by default.BUT WE ARE USING PARALLEL
>PORT E.
>SO PLEASE GIVE ME WHAT CHANGES should be made in SF1000.LIB
>AND SPI.LIB
>
>The following things are declared in the main.
>
>#define SPI_TX_REG
> #define SPI_TX_REG PEDR
> #define SPI_CLK_BIT 1
> #define SPI_TXD_BIT 4
> #define SPI_RX_REG PEDR
> #define SPI_RXD_MASK 8 //what should be this value??.
I am pretty sure only ports A-D support SPI. You might want to double
check that you can even use port E.
-Mike
--
Mike vanMeeteren fast351@fast... FASTechnologies Corp.
Track Hauler: 2001 F150 Track toy: 89 Mustang LX 351W 10.93 @ 122.5 MPH