Author |
Message |
Topic: possibly a bug [RESOLVED] |
smoglu
Replies: 2
Views: 4164
|
Forum: General CCS C Discussion Posted: Tue Jul 20, 2010 5:53 am Subject: possibly a bug [RESOLVED] |
Yes, you are right. PIC datasheet says A4 is open-drain type.
Thanks. |
Topic: possibly a bug [RESOLVED] |
smoglu
Replies: 2
Views: 4164
|
Forum: General CCS C Discussion Posted: Tue Jul 20, 2010 4:37 am Subject: possibly a bug [RESOLVED] |
Hi. The following little code does not work. 2 LEDs are connected to pin A4 and A5, and pin A4 does not light up the LED but pin A5 does. There is a problem with pin A4.
Compiler Version: 4.068
... |
Topic: immediate change by external interrupt |
smoglu
Replies: 4
Views: 3824
|
Forum: General CCS C Discussion Posted: Fri Jul 09, 2010 7:19 am Subject: immediate change by external interrupt |
Ok, I guess I found the solution. But I need to wait for tomorrow to try it out. So after I try it, I will share my problem and my solution together. |
Topic: immediate change by external interrupt |
smoglu
Replies: 4
Views: 3824
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 8:40 pm Subject: immediate change by external interrupt |
The project is simple. There are 20 leds connected to PIC I/O, and they turn on and off according to some pattern. For example, one pattern: only first one of them is on and then only second ... goes ... |
Topic: immediate change by external interrupt |
smoglu
Replies: 4
Views: 3824
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 9:49 am Subject: immediate change by external interrupt |
Hi.
In the code below, I change the value of "action" once external interrupt is triggered (by a button ). Then, the action according to action's value is executed, after the last one ... |
Topic: CANbus not working after a few messages |
smoglu
Replies: 2
Views: 4189
|
Forum: General CCS C Discussion Posted: Mon Jul 05, 2010 9:16 am Subject: CANbus not working after a few messages |
Your problem is that you're doing something (printing to the LCD) which takes a LONG time, inside an interrupt service routine. If a new CAN message arrives before the first ISR has been serviced, ba ... |
Topic: CANbus not working after a few messages |
smoglu
Replies: 2
Views: 4189
|
Forum: General CCS C Discussion Posted: Mon Jul 05, 2010 3:19 am Subject: CANbus not working after a few messages |
Hi. I am working on a CAN bus project. There are two (actually many but for now only two) nodes on bus, each of them is a 18F458 (with MCP2551 of course) connected to LCDs. In one of them, two buttons ... |
|