| ??? 01/22/04 06:09 Read: 539 times |
#63125 - RE: Help Please!!! Responding to: Pravin Pawar's previous message |
push button = input switch connection is as follow p1.0 connected to 1 pin of the switch the other pin of the switch connected as follows ground then the pin of the switch then resistance 330 ohm and then to +5v and connected i tested it and its working as i used it to give signal to the external interupt 0 and in the interupt handler i make led blink once on p0.0 that is to check that the interupt working then i compare the switch value if i found it = to the first switch i make a led on p0.1 blink once if the second switch i make the led on p0.1 blink 2 times and so on till switch no 5 and if it didnt found pressed switch it lights both the leds on p0.1 & p0.0 and when i test it it blinks the led of the interupt then lights both the led on p0.0 and p0.1 the problem is i dont know the right value to compare with the p1 value so i get inside the condition (cjne a,# this is the value i dont know :S ,label) the part of the code is mov a,p1 CPL A cjne a,#11111100b,s_w22 cpl p0.1 lcall delay lcall delay cpl p0.1 jmp e_o s_w22: cjne a,#11111101b,e_o cpl p0.1 lcall delay lcall delay cpl p0.1 lcall delay lcall delay cpl p0.1 lcall delay lcall delay cpl p0.1 jmp e_o cpl p0.1 lcall delay lcall delay cpl p0.1 lcall delay lcall delay cpl p0.1 lcall delay lcall delay cpl p0.1 cpl p0.0 e_o: |
| Topic | Author | Date |
| Help Please!!! | Amjad Majed | 01/22/04 05:31 |
| RE: Help Please!!! | Pravin Pawar | 01/22/04 05:40 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 06:09 |
| RE: Help Please!!! | Pravin Pawar | 01/22/04 06:31 |
| RE: Help Please!!! | Erik Malund | 01/22/04 08:06 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 08:17 |
| RE: Help Please!!! | Erik Malund | 01/22/04 08:21 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 08:22 |
| RE: Help Please!!! | Michael Karas | 01/22/04 10:05 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 10:23 |
| RE: Help Please!!! | Erik Malund | 01/22/04 10:48 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 13:12 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 13:14 |
| RE: Help Please!!! | Erik Malund | 01/22/04 13:20 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 14:16 |
| RE: Help Please!!! | Erik Malund | 01/22/04 14:50 |
| RE: Help Please!!! | Amjad Majed | 01/22/04 15:19 |
| RE: Help Please!!! | Erik Malund | 01/22/04 15:28 |
| RE: Help Please!!! | Mahmood Elnasser | 01/22/04 15:18 |
| RE: Help Please!!! | Erik Malund | 01/22/04 15:30 |
| RE: Help Please!!! | Charles Bannister | 01/22/04 16:49 |
| RE: Help Please!!! | Michael Karas | 01/22/04 17:55 |
| RE: Help Please!!! | Oleg Sergeev | 01/23/04 00:53 |
| RE: language | Erik Malund | 01/23/04 07:20 |
| RE: language | Oleg Sergeev | 01/23/04 08:30 |
| I miss some points... | Kai Klaas | 01/25/04 11:19 |
RE: I miss some points... | Amjad Majed | 01/26/04 08:03 |



