Atmel DataFlash


Closed Thread
Results 1 to 5 of 5

Thread: Atmel DataFlash

  1. #1
    smileyapple's Avatar
    smileyapple Guest

    Default Atmel DataFlash

    Hi,

    Does anybody have any experience or code for the Atmel DataFlash memory chips. The chip I am using is the AT45DB081B.

    Cheers,

    Apple

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    this is one link refered by Bruce on a previous thread.

    http://www.emesystems.com/BS2flash.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    smileyapple's Avatar
    smileyapple Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,Steve,thank you very much!

    I have viewed the link page, but i could not unterstand the code given by the page totally, because i know nothing about the language. i use c language,and my code is as follow:

    unsigned int RX_data;
    unsigned int writeBUF1[4]={0x84,0x00,0x00,0x00};
    unsigned int readBUF1[5]={0xD4,0x00,0x00,0x00,0x00};

    //send data to buffer1
    void data_to_buf1()
    {
    PORTDbits.RD14 = 0; putsSPI1(4,writeBUF1);
    WriteSPI1(0xAA);
    PORTDbits.RD14 = 1;
    }

    //read buffer1
    void read_buf1()
    {
    PORTDbits.RD14 = 0; putsSPI1(5,readBUF1);
    while(DataRdySPI1())
    RX_data = ReadSPI1();
    PORTDbits.RD14 = 1;
    }

    //main function
    int main(void)
    {
    initial_port();
    CloseSPI1();
    ConfigIntSPI1(SPI_INT_DIS);
    OpenSPI1(0x0061,0x8000);
    data_to_buf1();
    read_buf1();
    }

    i followed the operation order given by the datasheet,but my code can not work. and i have connected CS and RESET pins to +3.3V . Can you give me some suggestions?

    by the way, i have another question. when i visit my post , i can not see your reply, and it seem like nobody have replied, but i can visit your reply through the llink that send in my mailbox, what is the matter, can i just visit the reply though the link in my mailbox?

    Thank you again!

    regards

    apple

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you're looking for help with C code for the Atmel DataFlash, why not visit a C oriented forum?

    Here's one example using the CCS C compiler.

    http://www.ccsinfo.com/forum/viewtop...tmel+dataflash

    The CCS forum would probably be your best bet for help with C code examples & questions. You can find it here http://www.ccsinfo.com/forum/
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    smileyapple's Avatar
    smileyapple Guest


    Did you find this post helpful? Yes | No

    Talking Thank you a thousand times!!!!

    Bruce,thank you so much for your reply!!!

    since i am a non-english speaker, it's a litter difficult for me to find help about the code on the internet, i just found a previous post about this dataflash on this web, so i asked my question here.
    Thank you for your help!!!!

    regards,
    apple

Similar Threads

  1. Pic Vrs Atmel speed
    By shawn in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2008, 21:50
  2. SD Card Filesystem like AVRDOS for Atmel
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th December 2007, 14:00
  3. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 19:17
  4. 24c256 by atmel
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th August 2006, 11:20
  5. Data logging with Atmel AT45DB041B
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th September 2004, 04:41

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts