Author |
Message |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Wed Apr 12, 2017 4:37 am Subject: CAN problem |
That particular pull-up one is a 'gotcha', in the CCS code, where it only works correctly with the drive disabled, on transceivers that do have internal pull-ups....
So, now you need to be doing so ... |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Wed Apr 12, 2017 2:52 am Subject: CAN problem |
He is actually compiling for the F, not the LF.
Since it runs on the F at full voltage, and the device ID for the F and LF are the same, we know the problem is with the voltage, not the code.
I ... |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Tue Apr 11, 2017 7:29 am Subject: CAN problem |
OK. So as I read it, you can compile and use the code OK on the 'F' variant, but the compile is halting on the 'LF' variant?.
If so, the first thing you need to tell us is the compiler version?.
Any ... |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Tue Apr 11, 2017 7:27 am Subject: CAN problem |
What is the Vdd voltage on each PIC, and on each type of CAN bus
transceiver chip ?
The PIC 18F2685 has a VDD voltatge of 5V and the 18LF2685 has a Vdd voltatge of 3.3V
The 18F2685 is connecte ... |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Mon Apr 10, 2017 3:44 pm Subject: CAN problem |
What is the other PIC?.
The 2685, has the ECAN peripheral, so you really should be using the 18F4580.h driver.
The other pic is the 18LF2685 |
Topic: CAN problem |
jamalavedra
Replies: 12
Views: 21088
|
Forum: General CCS C Discussion Posted: Mon Apr 10, 2017 10:06 am Subject: CAN problem |
Hi;
I am doing a project where two PIC have to communicate between each other using the CAN protocol (can-18xxx8.c , in the drivers folder in PICC).
I have tried to establish (turning on & of ... |
Topic: Repetitive pattern on GLCD |
jamalavedra
Replies: 68
Views: 99682
|
Forum: General CCS C Discussion Posted: Tue Mar 21, 2017 8:25 am Subject: Repetitive pattern on GLCD |
Just use a text search engine on the files in the CCS drivers directory on
your PC. Search for 'rectangle'. You will find a few functions that
draw a filled rectangle with the specified color.
... |
Topic: variable problem |
jamalavedra
Replies: 3
Views: 9135
|
Forum: General CCS C Discussion Posted: Thu Mar 16, 2017 11:03 am Subject: variable problem |
Great, it worked perfectly. Thanks guys. |
Topic: Repetitive pattern on GLCD |
jamalavedra
Replies: 68
Views: 99682
|
Forum: General CCS C Discussion Posted: Tue Mar 07, 2017 11:32 am Subject: Repetitive pattern on GLCD |
The problem is that with this "blank display" code that I have shared doesn't allow to blank neither the display not the buffer in random square locations of the display, as it isn't meant f ... |
Topic: variable problem |
jamalavedra
Replies: 3
Views: 9135
|
Forum: General CCS C Discussion Posted: Tue Mar 07, 2017 10:58 am Subject: variable problem |
Hi
I am currently developing some bargraph (8 LEDs) made with a shift register and, in order to test it i have developed to following code.
The problem I have encountered and that I need help with ... |
Topic: Repetitive pattern on GLCD |
jamalavedra
Replies: 68
Views: 99682
|
Forum: General CCS C Discussion Posted: Sat Mar 04, 2017 6:42 am Subject: Repetitive pattern on GLCD |
Do you guys have any idea on how to modify the attached code in order to only clear a specific area of the display and not the whole screen? I have tried several times but haven't successfully found a ... |
Topic: pin RB5 output problem |
jamalavedra
Replies: 7
Views: 14925
|
Forum: General CCS C Discussion Posted: Sat Mar 04, 2017 6:22 am Subject: pin RB5 output problem |
Thanks,
By disabling the fuse LVP works perfectly
jaume |
Topic: pin RB5 output problem |
jamalavedra
Replies: 7
Views: 14925
|
Forum: General CCS C Discussion Posted: Fri Mar 03, 2017 1:40 pm Subject: pin RB5 output problem |
this is how my fuses are defined
#include <18F2685.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
# ... |
Topic: pin RB5 output problem |
jamalavedra
Replies: 7
Views: 14925
|
Forum: General CCS C Discussion Posted: Fri Mar 03, 2017 12:56 pm Subject: pin RB5 output problem |
I've tried by disconnecting the programmer and still doesn't get to the high level. Other pins do work. I also tried by changing to some other 18LF2685 so the error is not in the PIC.
thanks
jau ... |
Topic: pin RB5 output problem |
jamalavedra
Replies: 7
Views: 14925
|
Forum: General CCS C Discussion Posted: Fri Mar 03, 2017 12:31 pm Subject: pin RB5 output problem |
Hi,
I am using a 18LF2685 PIC and recently I have tried to turn on some LEDs with the pin RB5 with pin number 26. When trying with some other pins I get no problems but with this one I can't get it ... |
|