| Author |
Message |
volkan
Joined: 29 Dec 2004 Posts: 14 Helped: 1
|
11 Jan 2005 23:05 tx interrupt problem in keil |
|
|
|
|
Hi all
i am writing a protocol for 89s52 and using assemly in Keil. I want to use 89s52's external interrupts in edge trigger mode(by setting IT0 and IT1 ). But Keil ignores my edge triger setting, It still work as in level activated mode.
For example when i begin debugging,i clr external interrupt inputs before running, and after running the program it directly calls external interrupt routine . Do you have any idea about this?
|
|
| Back to top |
|
 |
mrcube_ns
Joined: 10 Apr 2002 Posts: 429 Helped: 11 Location: Dark side of the Moon
|
12 Jan 2005 22:52 Re: keil's debugging problem |
|
|
|
|
Thats very strange. Maybe you dont cofigure all parameters well.
Which ke|L you use?
Did you try to program real mcu and try same thing to see what is happend (for instance turn on some LED in interrupt routine for external interrupt occurence).
Regards.
Mr.Cube
|
|
| Back to top |
|
 |
ayan_m
Joined: 17 Jan 2005 Posts: 16
|
17 Jan 2005 18:02 ke*il's debugging problem |
|
|
|
|
| Check ur target options to see if nething is different. It works in both modes I've tried it.
|
|
| Back to top |
|
 |
volkan
Joined: 29 Dec 2004 Posts: 14 Helped: 1
|
18 Jan 2005 21:46 Re: keil's debugging problem |
|
|
|
|
thank you all,
i couldnt understand why it happened but at last i did the project by another way,so it works now..
tx
|
|
| Back to top |
|
 |
Google AdSense

|
18 Jan 2005 21:46 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
rellutzu
Joined: 18 May 2004 Posts: 40 Helped: 2
|
19 Jan 2005 16:31 Re: keil's debugging problem |
|
|
|
|
keep away form external interrups at 89s52.
I had the same unresolved problem and I had to find another way to trigger an interrupt.
It would have been wonderful, the datasheet assures a clean interrupt, but it was't so.
Maybe that generation of chips had some bugs.
|
|
| Back to top |
|
 |
x_zoli
Joined: 22 Jul 2004 Posts: 106 Helped: 6 Location: Brasov, Romania
|
20 Jan 2005 15:07 Re: keil's debugging problem |
|
|
|
|
Hi
I used to find that bug too while debugging interrupts. It's no real problem since the settings are correct and your main concern when debugging is to get in the interrupt, not the way you get there. I observed that the newer versions fixed that bug.
Best regards
|
|
| Back to top |
|
 |