ucsam
Advanced Member level 4
- Joined
- Oct 12, 2010
- Messages
- 119
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- kathmandu,nepal
- Activity points
- 2,058
I am writing code for a keypad system. The problem that is occuring is very strange and ridiculous!
so here is the problem:
Possible solution I though would help
I though that it was some kind of corruption problem so i gave it the topic. But how does a string gets corrupted just after an IF-ELSE statement.
I am using KEIL and AT89s52.
Thanks,
so here is the problem:
- When I enter a key, the system would compare it with a predefined user-key key and let me in or out like all keypad system does.
- But when i once enter the wrong key, the predefined user-key gets corrupted! I hook up LCD to the key and found out two extra character are also being added to the original one!
- AND the same goes while checking with the master key.
Possible solution I though would help
- Disabling the interrupt. But it didn't work as well.
- Using data keyword while declaring the variable. But it didn't work too
I though that it was some kind of corruption problem so i gave it the topic. But how does a string gets corrupted just after an IF-ELSE statement.
I am using KEIL and AT89s52.
Thanks,