pri read : r | c, o ' Read eight bits from the card.
c := clk
o := do
mov r, #0
rep #.end_read, #8
waitx #14 '' !! 13 safe for up to 160 mhz, 14 for 320mhz
testp o wc
rcl r, #1
cgracey wrote: »
I imagine you haven't employed the streamer to make this happen, but when you do, you'll be able to get another speed boost - unless the SD card is the limit, which it sounds may the case.
What is the resolution of that tiny OLED screen?
cheezus wrote: »
Very nice work, thanks for the shoutout! I'm looking forward to getting the SSD based 3.2" and 7" displays working.
There's a LOT of places where the sd driver is going to be improved but there's a couple quick places that should help a lot. In SDSPI readblock and writeblock, changing cmd(17, doSDHC(n))
should give you a good bump to framerate, as long as you don't use a standard SD. There are some other changes that should be made but I left this in for compatibility. Once converted to ASM the overhead for supporting SD is an extra instruction but here it's significant.