Author |
Message |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 6:46 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
I was unable to access the CCS website for the last 4 hours, at least.
But now it's up again.
I wasn't able to access it either.
Your program is way too complicated for checking a button. T ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 6:02 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
I de-soldered the three buttons and connected them to pins B0, B1, and B2 (That way I can connect them to +5v without resistors) however they always read 1 in the program, which is a test one:
#i ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 1:42 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
You need to move on from this, and do the rest of your project.
I finished the rest, all the code is done also, but the only last problem is the push buttons, none of them do anything except button C ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 1:25 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
Yes, that will work.
I used different resistor values for each button (as I cannot find equal values), this is how my buttons are wired:
+5v
|---|---|
< ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 12:01 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
You can use 10K or any reasonable value.
Yes, when the button is pressed it will be read as a Logic 0 by the PIC.
Can I use 1k ohm resistors? |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 11:52 am Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
You can use 10K or any reasonable value.
Yes, when the button is pressed it will be read as a Logic 0 by the PIC.
Ok I'm going to try and tell you my results. |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sun Jun 10, 2012 11:31 am Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
+5v
|
<
> 4.7K
< ___ Switch
To | _|_|_
PIC -----------------o o------
pin ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sat Jun 09, 2012 8:41 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
That switch circuit can't supply two logic states. With that circuit, the PIC
pin is either a floating input or it's a logic "1". You need to fix that.
Change them all to the schem ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sat Jun 09, 2012 7:49 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
do you have an idea why the following code doesn't function properly?
I need to know how your switches are wired - negative or positive logic.
This is how my switches are wired
... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sat Jun 09, 2012 5:56 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
Post a link to a schematic for your PIC circuit, including all connections
to the PIC and to the LCD (Power, ground, signals, external components,
values of components, etc).
Use a free image h ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Sat Jun 09, 2012 8:00 am Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
Maybe some of the i/o pins are not working on that PIC. Try using
pins on a different i/o port.
I bought two new PICs and everything works except for the display... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Fri Jun 08, 2012 5:56 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
I don't think you can fix that problem. You have to get a new PIC.
How about the one that for some reason doesn't power the display? |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Fri Jun 08, 2012 5:40 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
How do you know it's the PIC ?
I know it's the PIC because I mistakenly connected the 12v power to the 5v power lines and the PIC became very hot. So I'm 100% sure it's the PIC.
Edit: My programmer ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Fri Jun 08, 2012 5:11 pm Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
DAMN! I somehow managed to burn the other PIC that worked. Is there a way to fix a burnt PIC? I program it using MicroPro and I get an error:
ROM programming error at address 0x0001
Good 0x0000 ... |
Topic: LMB204BDC with Flex 4 x 20 driver not displaying text |
seifpic
Replies: 42
Views: 38138
|
Forum: General CCS C Discussion Posted: Fri Jun 08, 2012 9:12 am Subject: LMB204BDC with Flex 4 x 20 driver not displaying text |
YAY, I got it to work by trying out a different PIC16F877a I had lying around and it worked! Thanks for all of your help. |
|