??? 06/16/06 11:52 Read: times |
#118402 - Clarification Responding to: ???'s previous message |
Yes i have give for level or edge triggering--- i have used edge trigering.
I have used edge triggering but i really do not know the difference. pls tell me the difference between the two....... i am tell more about the codeing as bellow: interrupt used ----int0 i.e pin p3.2 vector address------0003h my code is as follows: 0000H LJMP MAIN 0003h LJMP ROUTINE MAIN: MOV SBUF,#41H JNB TI,$ CLR TI JB P3.2,$ JNB P3.2,$ MOV SBUF,#42H JNB TI,$ CLR TI LJMP OVER ROUTINE: CLR EA MOV SBUF ,#43H JNB TI,$ CLR TI SETB EA RETI OVER: END I have done the proper settings for serial communication and interrupt settings. if i write the coding as above the program works well but if i remove the two lines JB P3.2,$ AND JNB P3.2 then my program does not works. What is the reason pls tell me the reason. Also one more thing pls tell the thing that what i said in the very first thread is it correct. I have stated it again. """""********The normal interrupt concept is that whenever an interupt occurs the uC executes the current on-going instruction, saves the contents of PROGRAM COUNTER(PC; which is the address of next instruction where the uC has to return after executing the ISR)onto the stack and then jumps to the vector address.***********"""""""""" Is the above concept about the uC correct.????? So the two things i want to know is 1) why prog. does not works without jb/jnb p3.2.$ .??? 2)What i have stated about uC is it correct.??? |
Topic | Author | Date |
interrupt is really an interrupt | 01/01/70 00:00 | |
post your code | 01/01/70 00:00 | |
How to post code | 01/01/70 00:00 | |
forgot edge triggering? | 01/01/70 00:00 | |
Level & Edge interrupts? | 01/01/70 00:00 | |
Clarification | 01/01/70 00:00 | |
It is an INSULT to those that may be wil | 01/01/70 00:00 | |
Why it does not work![]() | 01/01/70 00:00 |