| ??? 08/15/03 00:46 Read: times |
#52615 - error ! |
; turns on LED when button is pressed & retains its state
;AT89C51, P1.0 is LED,P1.1 is connected to push sw. ORG 0 Loop: MOV C,P1.1 ;get the button state MOV P1.0,C ;display button state on LED SJMP Loop END it should switch on the LED forever when button is pressed down once. instead it switches off when button is released. what is wrong here ? thanks in advance regards pete |
| Topic | Author | Date |
| error ! | 01/01/70 00:00 | |
| RE: error ! | 01/01/70 00:00 | |
| RE: error ! | 01/01/70 00:00 | |
| RE: error ! | 01/01/70 00:00 | |
| RE: error ! | 01/01/70 00:00 | |
| RE: One right way | 01/01/70 00:00 | |
| RE: Another excercise | 01/01/70 00:00 | |
| RE: One right way | 01/01/70 00:00 | |
RE: error ! | 01/01/70 00:00 |



