sd card project

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
kittysoman2013
Posts: 1
Joined: Thu May 28, 2020 9:06 pm
Location: https://giupviectheogio.com
Contact:

sd card project

Post by kittysoman2013 »

Hello, I am using a pic 16f1937 and trying to communicate with the sd card. can I use microchips fat 16 library or is it just for 18 and 24 series pics

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: sd card project

Post by stefan.erni »

Hi Soman

Flowcode has a FAT Component. This works very stably and it offers a lot of comfort when programming.
And if you like to use WAV file (Audiofiles) there is a anther component available : WAVPlayerFAT1

You can just drag and trop it from the component menue Data--> the component FAT(SD, SDHC) on your dashboard and try it!

regards

Stefan
Sd.PNG
(4.4 KiB) Downloaded 141 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: sd card project

Post by Benj »

The Microchip blurb suggests it doesn't allow PIC16 devices.
MDD file system library supports the 8-bit PIC18 devices as well as the 16-bit PIC24F, PIC24H, dsPIC30 and dsPIC33 devices and 32-bit PIC32 devices
The Flowcode component should be ok on a PIC16F assuming you have at least 512 Bytes of free RAM for the main SD card read/write sector buffer and a bit more for the other control variables. 16F1937 only has 512 Bytes of RAM available and so won't work. The 16F18877 may be a better option with 4Kb of RAM and should be pin compatible.

Post Reply