Author |
Message |
Topic: #int_ext and #int_rb problem |
dubinc
Replies: 11
Views: 16078
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2012 10:21 am Subject: #int_ext and #int_rb problem |
I tried to delete the TRIS statements but in this way nothing works ! My led is always OFF (with #use standard_io) |
Topic: #int_ext and #int_rb problem |
dubinc
Replies: 11
Views: 16078
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2012 9:29 am Subject: #int_ext and #int_rb problem |
Your solution isn't bad but I want to try to find why my interrupts don't works, and I have absolutly no ideas ! I tested many code on different PIC and the result is the same. |
Topic: #int_ext and #int_rb problem |
dubinc
Replies: 11
Views: 16078
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2012 5:16 am Subject: #int_ext and #int_rb problem |
I modified my code following your instructions but one more time it doesn't works !
I tried to use standard_io() function but when I wanted to use it, my led was OFF at the begining of the program (n ... |
Topic: #int_ext and #int_rb problem |
dubinc
Replies: 11
Views: 16078
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 12:34 pm Subject: #int_ext and #int_rb problem |
Thanks for your answer.
I don't understand a thing: there is 3 years I used 16F877A dev board and I wrote exactly this code and it worked ! So why now it doesn't work !?
I read the datasheet but wh ... |
Topic: #int_ext and #int_rb problem |
dubinc
Replies: 11
Views: 16078
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 11:46 am Subject: #int_ext and #int_rb problem |
Hi,
I have a big problem with these two interrupts, nothing works !! I connected a led on A5 and a button with a pull up and if I connect and push this button on RB0 (ext) or on RB4 (rb) nothing work ... |
Topic: Problem with INT_EXT (PIC16F877A) |
dubinc
Replies: 7
Views: 8853
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 12:30 pm Subject: Problem with INT_EXT (PIC16F877A) |
I understand the method but I have yet two questions:
-What is doing this line ?
changed_bits=old_bits~seen_bits;
more when I compile I have have a mistake with the "~"
- you say: &qu ... |
Topic: Problem with INT_EXT (PIC16F877A) |
dubinc
Replies: 7
Views: 8853
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 5:13 am Subject: Problem with INT_EXT (PIC16F877A) |
Ok I understand, but I'm not a very good programmer and I never use flag. Can you explain me quickly how I can use a flag. |
Topic: Problem with INT_EXT (PIC16F877A) |
dubinc
Replies: 7
Views: 8853
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2011 11:17 am Subject: Problem with INT_EXT (PIC16F877A) |
Thanks for your answer. I write to LCD with a infinite loop just to see if the program works. I try to remove the infinite loop and I insert a delay of 500ms after the message send to LCD in the ISR b ... |
Topic: Problem with INT_EXT (PIC16F877A) |
dubinc
Replies: 7
Views: 8853
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2011 8:14 am Subject: Problem with INT_EXT (PIC16F877A) |
Hi all,
First I'm french so excuse me if I make faults in my explanation. So, I'm making a program and I use the interrupt of PB0 to increment a counter when I press a button. In function of this nu ... |
|