Winbond W25X80 SPI flash object posted with easy to understand commented SPI co

Hi guys,
I've cleaned up my Spin driver for the flash chip I've been using for extended data storage and posted a brief article on my blog on how to use it - and you can download it there too.
I am working on a PASM version, however this version is already quite useful not only for storage, but as an easy to understand example of SPI code.
mikronauts.com/2009/03/24/winbond-w25x80-flash-chip-spin-object/
I know the code is not very optimized, it was written for small code size and clarity.
Enjoy!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
I've cleaned up my Spin driver for the flash chip I've been using for extended data storage and posted a brief article on my blog on how to use it - and you can download it there too.
I am working on a PASM version, however this version is already quite useful not only for storage, but as an easy to understand example of SPI code.
mikronauts.com/2009/03/24/winbond-w25x80-flash-chip-spin-object/
I know the code is not very optimized, it was written for small code size and clarity.
Enjoy!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Comments
There are also pin compatible (but more $) versions W25X32 (4MByte) and W25X64 (8MByte) versions available also.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
No double bit read yet, I was going to explore that later - initially I just wanted some easy to read (and therefore easy to understand and debug) spin code that did not require dedicating a cog. I am working on a pasm version, and once the single bit read version is finished, I will add double bit read.
The 2Mx8 is also available in DIP, but I have not found anyone who has the 4Mx8 and 8Mx8 in DIP :-(
I have some SOIC-16 8Mx8's on the way that appear to be fully compatible
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Oh, and I received a W25X16 today. 2M x 8 bit. Will look at the data sheets and test it with your driver. And yes, it's in DIP package. (Digi-Key)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Airspace V - international hangar flying!
www.airspace-v.com/ggadgets for tools & toys
Post Edited (virtuPIC) : 3/25/2009 8:18:38 PM GMT
Unfortunately the 2Mx8 is the largest capacity DIP that is readily available, but I have some larger SOIC-16's on the way (8Mx8) which should also work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Yes, I know That SPI normally needs one more line than I2C, but I remember that you can merge data lines.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Airspace V - international hangar flying!
www.airspace-v.com/ggadgets for tools & toys
Personally I will keep an eeprom for loading an initial boot image that can select roms to load from the flash.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Airspace V - international hangar flying!
www.airspace-v.com/ggadgets for tools & toys
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers