| ??? 10/01/03 15:25 Read: times |
#55893 - RE: Hardware query on interrupt Responding to: ???'s previous message |
Hello,
Thanks it helped. I connected one end of the switch to the port pin which is connected via diode to INT pin 3.2. The other end of switch is connected to ground. The function of one of the key is as follows, When the key is pressed the value increases ,this value (it is SET TEMP VALUE)is displayed on LCD i.e if it is 30.1 it becomes 30.2 ,so on. But since i have kept the Interrupt as edge triggered i need to press the key once and even if it is kept low ,the INT wont be accepted till a high pulse is sense i.e i leave the key. The software debounce is as follows- 1) key pressed ,wait for 20 msec 2) if the key is still low ,accept the i/p and increment the value. 3) wait for another 20 mesec for the key to debounce However it is required that the ,when the user presses the key ,the value should keep increasing ,till the user leaves the key.So i am using level triggered interrupt ,wherein if the key is in pressed position ,the interrupt will be generated continously ,therby increasing the value. But i dont understand how to generate the debounce in that case. Thanks, Pravin |
| Topic | Author | Date |
| Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
| RE: Hardware query on interrupt | 01/01/70 00:00 | |
RE: Hardware query on interrupt | 01/01/70 00:00 |



