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
Posted: Sat Feb 28, 2004 9:55 am
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
Posted: Sat Feb 28, 2004 12:00 pm
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?
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