| ??? 08/22/11 06:32 Read: times | #183429 - Example code Responding to: ???'s previous message | 
| Hi Andy,
 Can you correct me if I'm wrong. This is echoing the led. So if I want to keep the led on I should remove the following code? "JMP start ; and repeat" ; This program very simply echoes the ; switches on P2 to the LEDs on P1. ; When a switch is closed a logic 0 appears ; on that P2 pin, which is then copied to ; that P1 bit which turns on that LED. ; Therefore, a closed switch is seen as a lit ; LED and vice versa. start: MOV P1, P2 ; move data on P2 pins to P1 JMP start ; and repeat | 
| Topic | Author | Date | 
| Compatible Issue?? | 01/01/70 00:00 | |
| AVR Studio | 01/01/70 00:00 | |
| No | 01/01/70 00:00 | |
| How about programming issue? | 01/01/70 00:00 | |
| They are totally different! | 01/01/70 00:00 | |
| To: Kai Klaas | 01/01/70 00:00 | |
| "Gimmee Code" | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
| Why wait for answer from a forum | 01/01/70 00:00 | |
| How to proceed | 01/01/70 00:00 | |
| Example code for AT89S52 | 01/01/70 00:00 | |
| Example code | 01/01/70 00:00 | |
| Your contributions are annoying... | 01/01/70 00:00 | |
| What error? | 01/01/70 00:00 | |
| Can't get in programming mode. | 01/01/70 00:00 | |
| Confusion over meaning of "programming"? | 01/01/70 00:00 | |
| Writing the program | 01/01/70 00:00 | |
| RE: Writing the program | 01/01/70 00:00 | |
| Thanks all.   | 01/01/70 00:00 | 



