Overview
- Object ID : 5048 (2025-02-17 13:27:49)
- Author : evanh
- Content : Code
- Microcontroller : Propeller 2
- Language : Generic
- Category : Data Storage
- Licence : MIT
- Tags : FAT16, FAT32, Filesystem, FlexProp, SD card
Content
4-bit SD mode SD card driver plug-in to Flexspin's FAT filesystem layer.
Can be used with Spin2, Basic, C and any languages supported by the Flexspin compiler. Propeller 2 only.
Highest performance is typically when the buffer size matches the FAT cluster size. Writes can easily exceed 10 MB/s on fast cards, and reads 20 MB/s. There is also the option of disabling block read CRC processing to allow reads at sysclock/2. Default is sysclock/4.
Requires Flexspin compiler version 7.0.0 or later. The example tester uses the newly added _vfs_open_fat_handle() API, replacing the older preset list of vfs device open functions. The driver uses newly added features for "inline" assembly.
Also requires a 4-bit wired SD slot. Example can be found here - https://forums.parallax.com/discussion/174988/new-sd-mode-p2-accessory-board/p1