Oh, bloody hell, I got a working sample writing "A" on some SD-card sector and reading values back, on a PIC18F27J53 (jaluino bee) using PPS to select MSSP2 ! SD-card slot is a micro SD Transflash (or the like). SD-card is a 1GB Sandisk microSD. I didn't use any pull-ups, but I plan to make them optional on the next bee v2.0, just in acse
Cool :) Cheers, Seb PS: Kiste, thanks for the explanation 2011/4/19 Oliver Seitz <[email protected]> > > > >PS: I've also seen procedure _sd_read_512(), filling an array, index by > index ([0], [1], ...), resulting in 512 lines in the body. There sure must > be a reason, but I have to ask: why not using a loop ? > > While loops are handled very efficient by the compiler, access to arrays > with a variable index is not as much so. For the PATA lib, it definitely > increases speed a lot to read one sector not using a loop. For SD I'm not so > sure about this, as data transfer over SPI takes its time, so the difference > may be less here. > But that's surely the reason for the existence of this "bad style" part: > Speed. > > Greets, > Kiste > > -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
