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 support@ccsinfo.com

Algorithm Ideas for an Application?

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



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

Algorithm Ideas for an Application?
PostPosted: Sat Feb 28, 2004 1:47 am     Reply with quote

Hello,

I have a PIC application that store employee information at 16bytes data to an external FRAM memory.

My idea is like this:
[1] I read the ID badge
[2] store in a temp buffer
[3] access the external memory
[4] store in another temp buffer
[5] compare the two buffer
[6] if it match.. employee gain access
[7] if not... get another data from external memory
[8] repeat step 5 (loop next)

Anyone have ideas of the alogorithm with regards to this application ?

Need your comments and suggestions.

Thank you.
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Sat Feb 28, 2004 9:55 am     Reply with quote

What is the worst case time to verify an ID. You would be reading the entire FRAM. You seem to have an algorithm already.
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Sat Feb 28, 2004 12:00 pm     Reply with quote

If processing time is an issue you could store the data in the external memory in "alphabetical order" or some method that allows you to search faster than just going through a list in sequence. You might need to store the actual number of records somewhere too--perhaps internal EEPROM?
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