Hi.
yeah, i was thinking to create a couple of codes (four numbers, as a credit card password) to open the door. one of them as a "general public password" . the other as a "private password". i need to save that information (the password numbers) in the flash memory. i need to keep that codes even without power supply (in the non-volatile memory).
first, i need to program the microcontroller (from PC, with CodeWarrior) to recognize any key of the matrix keypad (4x4). then, during the execution of the program, save that combination of numbers, in RAM (the written password in the keypad). the program had to compare the written password with the password saved in the flash memory. if they match, the uC will open a door.
i been reading the mc68hc908jk3/jl3 technical data book, and i have a few questions. it says that the flash memory is done on a row basis (32 bytes, or 256 bits). they start from $XX00, $XX20 and so. in that rows, i can write any data (for example, the general public password), obviously, following the program sequence.
How do i know what rows are empty to save the data?. the uC saves the in-circuit program in a diferent memory zone, how it works?.
any example??? i need some help!!!
thanks a lot!