[Flashforth-devel] SPI FRAM memory drivers
Brought to you by:
oh2aun
From: om1zz <om...@vo...> - 2015-05-24 17:32:50
|
Hi, at https://github.com/igor-m/flashforth/tree/master/examples are examples of SPI drivers for FRAM SPI memory (byte, word, double access) working with dspic33fjgp128/pic24 etc. It is a quick hack to see how the stuff works, and it works. Needs to be optimised a bit however, asm must be used where applicable in order to speed the stuff up. My memories are over 64kB so they have got 3 bytes long address. Currently there is a block number (64kB per block) and an address within 64kB. Mind you have to care about proper alignment as the address step is 1 or 2 or 4 for above types. More in sources. Igor. |