Author |
Message |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 2:29 pm Subject: port B interrupt on changes int not clearing |
PCM programmer,
Thank you very much. I understand what is going on. You have helped me to understand several things during this. Hopefully someone else will find it helpful as well.
Thanks agai ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 12:52 pm Subject: port B interrupt on changes int not clearing |
PCM programmer
Thanks for the information. The disassembly now looks correct for the clear interrupt. But the app still behaves the same way. Once the first interrupt triggers the LED continues to ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 11:48 am Subject: port B interrupt on changes int not clearing |
From the lst file:
CCS PCM C Compiler, Version 4.109, 53512
Thanks
Kevin |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 10:16 am Subject: port B interrupt on changes int not clearing |
I have looked at the disassembly listing for the ISR. The register/bit that is being cleared by the clear_interrupt seems to be the incorrect register. The datasheet shows the intcon register is at ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 9:39 am Subject: port B interrupt on changes int not clearing |
PCM programmer.
I have made the change you suggested and also upgraded to 4.109 The ISR still continues to be called repeatedly once it gets called the first time. Any ideas where I should look ne ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Wed Aug 04, 2010 5:33 am Subject: port B interrupt on changes int not clearing |
Thank you. I will make that change. I have ordered the upgrade to 4.109 and should be able to download it today. Hopefully that will help. I will post if that works.
Thanks
Kevin |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Tue Aug 03, 2010 5:17 pm Subject: port B interrupt on changes int not clearing |
It is a switch to ground. There is a 100ohm series resistor. When the switch is closed the input sees less then 0.2V and when it is open it sees 5V.
It doesn't matter whether the input is High or ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Tue Aug 03, 2010 3:53 pm Subject: port B interrupt on changes int not clearing |
Sorry for not posting enough information.
Here is the entire program:
#include <16F1937.h>
#include <STDIO.h>
#fuses BROWNOUT
#fuses NOWDT //WDT
#fuses PUT
#fuses INT ... |
Topic: port B interrupt on changes int not clearing |
kjankows
Replies: 17
Views: 34030
|
Forum: General CCS C Discussion Posted: Tue Aug 03, 2010 2:58 pm Subject: port B interrupt on changes int not clearing |
I have a 16f1937 which will wait for the first transition on port b2. The interrupt routine is processed (turns led on then off). The interrupt will be called continually from this point on. It doe ... |
|