bluehash 1,581 Posted July 28, 2013 Share Posted July 28, 2013 Love the font. Thanks! Quote Link to post Share on other sites
tingo 22 Posted July 28, 2013 Share Posted July 28, 2013 Very nice - thanks for informing us. calinp 1 Quote Link to post Share on other sites
MAXI888 1 Posted August 3, 2015 Share Posted August 3, 2015 Hi there, can somebody give me a little jump start to this Display. I am using a Launch Pad with an G2553, CCS 6 with Win7. If i copy Rob G's Code to a new Project (main.c and PCD8544.h) an Build it i am getting 34 Errors. I will try to solve this problems, but i am wondering about that much Errors. Maybe somebody can give me a advice. I think i made a basic error and the code is fine. thanks for your help, Max Quote Link to post Share on other sites
RobG 1,892 Posted August 4, 2015 Author Share Posted August 4, 2015 This is weird, I got the same error when I created new project. Comment out line right above first error, //setAddr(0, 0); Build, then un-comment that line and build again, error should disappear. MAXI888 1 Quote Link to post Share on other sites
MAXI888 1 Posted August 4, 2015 Share Posted August 4, 2015 Thats really weird. Finally it runs. But i think there is another error. void writeToLCD(unsigned char dataCommand, unsigned char data) { LCD5110_SELECT; if(dataCommand) { LCD5110_SET_DATA; } else { LCD5110_SET_COMMAND; } UCB0TXBUF = data; while(!(IFG2 & UCB0TXIFG)) ; LCD5110_DESELECT; } In line 10 should be a { instead a ; ? The Display now works nice. Thanks for your help bluehash 1 Quote Link to post Share on other sites
serdarq 1 Posted June 1, 2016 Share Posted June 1, 2016 Hi guys , I use tm4c1294 and ,i connected 5110 lcd to my launchpad but i can not send the required data to lcd ? do you have any library for 5110 lcd which is compatible with tm4c1294 in energia ? Hi , i connected 5110 lcd to my launchpad but i can not send the required data to lcd ? can u help please Quote Link to post Share on other sites
veryalive 49 Posted June 1, 2016 Share Posted June 1, 2016 Hi @@RobG ... If you have some additional advice on how to get your code working - I too have a huge number of errors - exactly like the poster on 3 aug 2015. My CCS6 build looks the same as his screenshot with the first error starting at line 64 ( int c = 0x20;) then onwards. I compiled the code today. I followed your advice (see the note I cut / paste immediately below) but with no positive result. It is very strange. And, in fact, when I tried your ' 4 channel - voltmeter - on - a 5110' - elsewhere in this forum - but I got the same huge number of errors. I had no time to investigate then. But thought to bring it up now - I have 5110 displays on hand and would love to use them ! Thank you. Cheers. ================= RobG's advice..... Posted 04 August 2015 - 04:14 AM This is weird, I got the same error when I created new project. Comment out line right above first error, //setAddr(0, 0); Build, then un-comment that line and build again, error should disappear. Quote Link to post Share on other sites
Fmilburn 445 Posted June 1, 2016 Share Posted June 1, 2016 @@veryalive I use a version of this code posted by oPossum: http://forum.43oh.com/topic/1913-frequency-counter-using-launchpad-nokia-5110-lcd/ veryalive 1 Quote Link to post Share on other sites
RobG 1,892 Posted June 3, 2016 Author Share Posted June 3, 2016 @@veryalive, not sure what's going on, but I copy/pasted that code to new project in ccs6.1.3 and go the same exception (can't see any hidden chars, so it can't be it.) I then formatted code in main (shift-control-f) and all is good now. Attaching files just in case. main.cPCD8544.h Fmilburn and veryalive 2 Quote Link to post Share on other sites
veryalive 49 Posted June 3, 2016 Share Posted June 3, 2016 @@RobG Super big thanks. I downloaded your main.c (5.49KB, your post just above) and replaced the old main.c with the new one. But not PCD8544.h (so as to try one step at a time). >>>>> It worked. It compiled and dowloaded into the 2553LP. No 5110 attached at the moment. No errors in the original PCD8544.h file. I'm on two machines here: Win10 and Vista. Vista worked, next I'll try Win10. I'm also on CCS = 6.1.1.00022 on the Vista, 6.1.3 on Win10. (but I'm quite sure I got the same prob on the Win10 machine with CCS 6.1.3) I have no clue at all why this happened --- and FWIW, the same thing happened with your 4 channel voltmeter onto Nokia 5110. Maybe the forum download put in non-printing chars? But I'm not going to debug that one... Anyway, thanks again. Next step is to wire up the Nokia 5110 and try out your excellent code. Cheers. Quote Link to post Share on other sites
zeke 693 Posted June 3, 2016 Share Posted June 3, 2016 @@RobG Have you considered setting up a Github repo for your code? Quote Link to post Share on other sites
RobG 1,892 Posted June 4, 2016 Author Share Posted June 4, 2016 Yes, I am actually in the process of doing it. But going back to the problem, looks like compiler doesn't like when declaration is in the middle of statement block and there's no white space before the type. Moving declaration to the top of block or adding white space fixes the problem. void clearBank(unsigned char bank) { setAddr(0, bank); int c = 0; //<-- causes error while(c < PCD8544_HPIXELS) { ... void clearBank(unsigned char bank) { int c = 0; //<-- OK, declaration at the top setAddr(0, bank); while(c < PCD8544_HPIXELS) { ... void clearBank(unsigned char bank) { setAddr(0, bank); int c = 0; //<-- OK with white space (that's why formatted code works) while(c < PCD8544_HPIXELS) { ... You can reproduce it in new project like this: #include <msp430.h> /* * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer int c = 0; return 0; } Fmilburn 1 Quote Link to post Share on other sites
JohnFergus 0 Posted August 1, 2016 Share Posted August 1, 2016 Rob, In the original post I found you were measuring voltage with a jumper. Is there a schematic or other documentation covering external inputs? Thanks John Fergus Quote Link to post Share on other sites
Fmilburn 445 Posted August 2, 2016 Share Posted August 2, 2016 Hi @@JohnFergus and welcome to 43oh Which post and parts are you referring to? You can get Rob's attention by using @mention JohnFergus 1 Quote Link to post Share on other sites
ysfcaglar 0 Posted December 9, 2017 Share Posted December 9, 2017 hi there Rob.I try to connected msp430g2553 between nokia 5110 LCD. But i didnt succeed.Please help me!. fisrtly i design msp430g and 5110 LCD in proteus.but your shematic and proteus not same.How to connected msp430+5110 LCD? i need your your help Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.