??? 03/26/06 19:05 Read: times |
#113156 - no denoising ? Responding to: ???'s previous message |
Leo Agung Cahyono said:
The ir is conneted to INT1 and 6 push-buttons are connected to AND gate to INT0 and each are also connected to the rest of the port3 (so whenever there is INT0, i check the port 3 which button is press). Its not a good idea to connect signals to interrupts, which are not debounced / denoised. Then it can happen, that noise from heavy loads disturb your input signals. The better approach was using a timer interrupt to perform debounce and denoise. Following C examples for key debouncing: http://www.mikrocontroller.net/attachmen...6/C_TAST.C and for RC5 denoising and decoding: http://www.mikrocontroller.net/attachmen...73/rc5.zip Since written in C it can easy be adapted to the 8051. The key routine handle up to 8 keys independend and perform also the key press detection. There are also additional functions on the key routine to perform short/long press detection and repeat function. Peter |
Topic | Author | Date |
ir remote, pwm, 7's, push button on 8951 | 01/01/70 00:00 | |
Tidak bagus? | 01/01/70 00:00 | |
7's? | 01/01/70 00:00 | |
no denoising ?![]() | 01/01/70 00:00 |