Author |
Message |
Topic: Problem with GLCD.C driver on dsPIC [Solved] |
samu350
Replies: 4
Views: 13666
|
Forum: General CCS C Discussion Posted: Sun Mar 17, 2019 5:53 pm Subject: Problem with GLCD.C driver on dsPIC [Solved] |
Without seeing the datasheet for the GLCD or the dsPIC
My first guess is that you haven't disabled some internal peripherals that also use the pins the GLCD is now attached to.
To help debug, I'd us ... |
Topic: Problem with GLCD.C driver on dsPIC [Solved] |
samu350
Replies: 4
Views: 13666
|
Forum: General CCS C Discussion Posted: Sun Mar 17, 2019 5:40 pm Subject: Re: Problem with GLCD.C driver on dsPIC [Solved] |
https://i.gyazo.com/dbf861aadb2aa5e01c192dfaa8c37bd0.png
It seems that this pin G2 right here is not available for me to use, I changed it and it solved the issue, maybe I should read the datasheet ... |
Topic: Problem with GLCD.C driver on dsPIC [Solved] |
samu350
Replies: 4
Views: 13666
|
Forum: General CCS C Discussion Posted: Sun Mar 17, 2019 5:34 pm Subject: Problem with GLCD.C driver on dsPIC [Solved] |
PIC: dsPIC33EP256MU806
So I've been using the glcd.c driver for quite a while and it has been working pretty good. But a problem happened recently, I've always used the E port since it's a 8 pin po ... |
Topic: Problem with GLCD.C driver [Solved] |
samu350
Replies: 4
Views: 10810
|
Forum: General CCS C Discussion Posted: Tue Jan 29, 2019 5:07 pm Subject: Problem with GLCD.C driver [Solved] |
This is actually because you are on the DsPIC.
Normally (PIC16 & 18), byte and char are completely interchangeable.
However on the DsPIC's, a 'byte', is defined as an 'unsigned int8', while
... |
Topic: Problem with GLCD.C driver [Solved] |
samu350
Replies: 4
Views: 10810
|
Forum: General CCS C Discussion Posted: Mon Jan 28, 2019 9:53 pm Subject: Problem with GLCD.C driver [Solved] |
Sorry for the late reply, internet went down for quite some time. My problem was that the function inside the driver had a wrong value type parameter. The solution was to set it to BYTE instead of CHA ... |
Topic: Problem with GLCD.C driver [Solved] |
samu350
Replies: 4
Views: 10810
|
Forum: General CCS C Discussion Posted: Mon Jan 28, 2019 1:09 pm Subject: Problem with GLCD.C driver [Solved] |
Currently trying to use the GLCD.C driver with the dsPIC33EP512MC806.
I keep getting the error "Function used but not defined" in the glcd_writeByte function. I know I'm not allowed to po ... |
Topic: Confused about how to set up a level change int [Solved] |
samu350
Replies: 5
Views: 13029
|
Forum: General CCS C Discussion Posted: Mon Jan 28, 2019 1:05 pm Subject: Confused about how to set up a level change int [Solved] |
Thanks a lot! Halfway yesterday I realized about this problem and I decided to just use the DSPIC external interruptions, much more comfortable. I assigned these pins to the external interrupts 1, 2 a ... |
Topic: Confused about how to set up a level change int [Solved] |
samu350
Replies: 5
Views: 13029
|
Forum: General CCS C Discussion Posted: Sun Jan 27, 2019 3:15 pm Subject: Confused about how to set up a level change int [Solved] |
clear_interrupt(PIN_D8);
clear_interrupt(PIN_D9);
clear_interrupt(PIN_D11);
}
void main()
{
enable_interrupts(global);
enable_interrupts(PIN_D8);
enable_interrupts(PIN ... |
Topic: Confused about how to set up a level change int [Solved] |
samu350
Replies: 5
Views: 13029
|
Forum: General CCS C Discussion Posted: Sun Jan 27, 2019 3:00 pm Subject: Confused about how to set up a level change int [Solved] |
PIC: dsPIC33EP512MC80
I've been searching but most information I find is related to how to set up a external B0 interruption.
I just want to make it so D8, D9 and D11 are buttons that when press ... |
|