PDA

View Full Version : SD Card Filesystem like AVRDOS for Atmel



Pedro Pinto
- 26th December 2007, 20:34
Hello

Exist a filesystem for sd card for pic's in PBP PRO like the AVRDOS for Atmel Controllers?


Best regards

Pedro

BrianT
- 26th December 2007, 21:48
Check the Vinculum post in Code Examples.

HTH
Brian

mackrackit
- 26th December 2007, 23:47
http://www.sparkfun.com/commerce/product_info.php?products_id=7955

Pedro Pinto
- 27th December 2007, 14:03
Hello

Thanks for the information, but i search a free software solution like the AVRDOS for a non comercial application

If it not exist i must change for my pain from pic to atmel controllers

Regards

Pedro

mackrackit
- 27th December 2007, 17:18
Are you saying that with this AVR-DOS and an ATMEL chip no other hardware is needed?

skimask
- 27th December 2007, 17:32
Are you saying that with this AVR-DOS and an ATMEL chip no other hardware is needed?

Not 100% sure what you're asking, but I think the answer is 'YES'.
All you need with this DOSOnChip module is a serial connection, whether it's sync- or async, doesn't matter. Set the options and go.
I tried one out awhile back on a '628A for grins. All I did was dump files on a 1GB SD card to an LCD sequentially. Absolutely no use for the project other than to watch characters scroll by really fast. It worked well. A bit expensive, but it takes a lot of the legwork out of a project requiring mass storage.
I was going to use it for datalogging on my OBD hookup. Decided against it and went with the larger Dataflash chips and a USB port instead (thanks alot Mr.E, a lot of sleep lost).

EDIT: Disregard - I missed the point about the AVR-DOS...never mind...I see what you were getting at...

mister_e
- 27th December 2007, 17:37
(thanks alot Mr.E, a lot of sleep lost)

http://www.mister-e.org/Pics/ROFL my pleasure :D Seems to happen with 2-3 person here with few of my ideas.

Pedro Pinto
- 27th December 2007, 19:59
Hello Dave

Yes, only the atmel controller, the Bascom compiler, the include files from AVRDOS and nothing more is needed

Regards
pedro

mackrackit
- 27th December 2007, 20:38
Interesting...
If Darrel does not come up with something (shimask + mr.e already posted) I guess PBP does not have anything like it.

Wonder how difficult it would be to write something like it.

mackrackit
- 27th December 2007, 21:06
These look interesting.
http://www.microchipc.com/sourcecode/#mmc
http://www.captain.at/electronics/pic-mmc/

Now to find time to play.

dhouston
- 27th December 2007, 21:29
Exist a filesystem for sd card for pic's in PBP PRO like the AVRDOS for Atmel Controllers?Not for PBP but, if you prefer to use a PIC, there is a FAT16 library (I think for PIC18 only) for mikroBasic.

skimask
- 27th December 2007, 22:10
Interesting...
If Darrel does not come up with something (shimask + mr.e already posted) I guess PBP does not have anything like it.
Wonder how difficult it would be to write something like it.

I've got stuff for accessing CF cards (IDE mode only) and IDE hard drives. Worked great on my mp3 player...But...I was using SK-OS (skimask operating system), my own tables, my own way of doing things, so it wasn't compatible with anything (even had to wipe the disk completely when I put it back into the laptop).
Using an 18F4620 @ 40Mhz, I was able to move well over 1MB/second across a low speed USB port and almost double that if I was going from master to slave.
I downloaded the 'FAT32' bible written by Microsoft awhile back, read it, figured it wasn't that hard to deal with, just didn't have a need to deal with FAT32.
BUT...now that PBP 2.50 supports 31bit integers, and looking back on it, it should be a LOAD easier to write a FAT32 'library' (not that it was that hard before).
In my mind, the main problem is the lack of direct string handling for filename's. Not really a limitation if a person is willing to write a macro or two to handle that.
Well, that and the lack of the amount of ram on a PIC itself (easily solved by an FRAM chip I supposed)...

mackrackit
- 27th December 2007, 22:55
Thank you for your insight skimask.

I am going to give it a try. I have a project coming up that will need the storage. Was planning to use something from Sparkfun, but now I figure if it can be done with atmel or in microbasic, why not PBP?

tenaja
- 27th December 2007, 23:25
This has been done in Proton+ Basic, which is about 95% compatible with PBP. (But about 30% faster.) This thread has code files attached to it:
http://www.picbasic.org/forum/showthread.php?t=4492&highlight=fat32

have fun!

mackrackit
- 28th December 2007, 09:57
This has been done in Proton+ Basic, which is about 95% compatible with PBP. (But about 30% faster.) This thread has code files attached to it:
http://www.picbasic.org/forum/showthread.php?t=4492&highlight=fat32

have fun!

More pieces o the puzzle, Thanks.

Pedro Pinto
- 28th December 2007, 14:00
Hello Dave

I like PIC's very much i programm it since 8 years ago, but the AVR-DOS software solution for the atmel controller with the BASCOM compiler support 16 and 32 FAT and soft and hardware SPI, very easy to handle, my decision is to change to Atmel controller for my project with SD card

Regards

Pedro