CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MMC Database project using PIC16 or PIC18,possible?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
crukid88



Joined: 04 Oct 2007
Posts: 14

View user's profile Send private message

MMC Database project using PIC16 or PIC18,possible?
PostPosted: Thu Oct 11, 2007 7:29 am     Reply with quote

Good day to all!

I need your advice. I am planning to make a stand alone system that has a database of the RFID. Its some kind of a automated attendance system. I want to retrieve and append date,time and other data altogether. It will take approximately 100bytes. I want to put the records on the same .txt file and a directory of the particular student. Is this possible?if yes what are the requirements?
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Thu Oct 11, 2007 10:59 am     Reply with quote

Yes.

You need a PIC that has a healthy amount of RAM for the FAT implementation. The 18F4620 has worked well for me.

Use either SD or Micro-SD cards. (Mini SD are hard to find.)

I use a FAT library available from one of the members here. It is inexpensive, relatively easy to port. Search google for Brush Electronics or this forum for asmallri.

John
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Oct 11, 2007 1:53 pm     Reply with quote

Quote:
You need a PIC that has a healthy amount of RAM for the FAT implementation. The 18F4620 has worked well for me.
As an additional note: 'healthy' means minimal 512 bytes, the size of the MMC/SD card block write size, and then some extra for your program itself. This rules out all PIC16 processors.

Quote:
Use either SD or Micro-SD cards. (Mini SD are hard to find.)
What is wrong with the MMC cards?
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Thu Oct 11, 2007 1:59 pm     Reply with quote

ckielstra wrote:
What is wrong with the MMC cards?


Sorry, I didn't qualify that. I've defaulted to SD cards because of availability. It seems that MMC are becoming harder to come by. They are all easy to get online, but I will typically need to 'run out and pick one up' and the latest/greatest format is always easier to find.
crukid88



Joined: 04 Oct 2007
Posts: 14

View user's profile Send private message

PostPosted: Thu Oct 11, 2007 6:01 pm     Reply with quote

would it be fast,for example I have 300 files or users.

I am having problems on how to store the files in the SD so that the PIC18 can access it. Any advice on this?
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Oct 11, 2007 11:17 pm     Reply with quote

If you implement a FAT file system then you can read the card on a PC or PDA using a standard card reader. If you implement your own file system they you need to write you own PC application to interpret the file system.

Fast is a relative term and depends on many factors. A typical implementation should be able to read or write data at the rate of 1K to 100K bytes per second depending on how the application is written, how fragmented the media is and the amount of file opening and closing. If you are using a FAT file system then you can store thousands of files.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
crukid88



Joined: 04 Oct 2007
Posts: 14

View user's profile Send private message

PostPosted: Fri Oct 12, 2007 1:31 am     Reply with quote

to asmallri: I saw your website and you sell a library. I would just like to ask. What is the difference between your library and the driver included in CCS?
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 12, 2007 8:06 am     Reply with quote

My library includes a full data logger application demonstrating real time acquisition and logging of a data stream to SD/MMC cards. It also supports FAT12/16/32. I have a lot of CCS customers so I guess there must be something I do well :-)
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group