| ??? 11/10/03 08:50 Read: times |
#58190 - RE: Want to insult us? -100 points! Responding to: ???'s previous message |
Hi,
First of all, the original poster should do copy/paste more careful. In original source posted by me it was MOV TCON,#00000000b ; stop timer 0 MOV TMOD,#00000001b ; timer 0 is 16-bit dividerOkay, now it is about your comment Near the end of your T0_ISR you are performing several bit manipulations, one of which, ANL A,T0_STATE, destroys the data you have developed Have you read the comments of this line? It is exactly: ANL A,T0_STATE ; detect realised buttonsAnd it means that button flag will be set only when button is realised. If this line of code will be deleted then button flag will be set twice due action - one time when button is pressed and another time when button is realised. Btw, my original code I have posted, works realy (= Good days! |
| Topic | Author | Date |
| Timer 0 interrupt problem ? | 01/01/70 00:00 | |
| RE: Timer 0 interrupt problem ? | 01/01/70 00:00 | |
| Want to insult us? -100 points! | 01/01/70 00:00 | |
| RE: Want to insult us? -100 points! | 01/01/70 00:00 | |
| RE: Want to insult us? -100 points! | 01/01/70 00:00 | |
| RE: Want to insult us? -100 points! | 01/01/70 00:00 | |
| RE: Want to insult us? -100 points! | 01/01/70 00:00 | |
RE: Want to insult us? -100 points! | 01/01/70 00:00 | |
| RE: Timer 0 interrupt problem ? | 01/01/70 00:00 |



