Quote Originally Posted by Pedro Santos
...have You a sample code that i can learn for that?
Yes...and no. Yesterday my primary computer went on the fritz (I'm using a spare right now), but the data is backed up and intact. It may take a while to get to the info, and it is low on my "to-do" list. But, it wasn't too difficult as I recall. The tricky part, as I recall, was getting the right PBP SHIFTIN/SHIFTOUT mode (I used software SPI). Also, a thorough read of the datasheet is required. I especially liked the buffer feature of the Dataflash I used, otherwise I would have had to use large arrays on the PIC to hold all the data prior to writing to flash. If I wasn't already using the hardware I2C, I would probably would have used hardware SPI.

Steve