Jump to content
43oh

MSP430 USI i2c and Adafruit LCD backpack


Recommended Posts

Ive had this Adafruit Lcd backpack for a while and thought I would get it working with the launchpad.

I'm using a sparkfun level converter, and I am powering the LCD via the TP1 port on the launchpad.

For the i2c code I used fj604's from here: viewtopic.php?f=10&t=1037

The code sends characters 2 different ways, one char at a time , and using oPossums tiny printf

from here: viewtopic.php?f=10&t=1732

Maybe someone can use this. The code is attached, its a CCSv5 project.

 

 

here is my setup

post-105-135135546425_thumb.jpg

 

here is the backpack. (I added the led for debugging)

post-105-135135546697_thumb.jpg

 

small video(really impressive!)

LCDi2cdemo.zip

Link to post
Share on other sites
  • 2 months later...

I did a quick experiment where I un-commented the serial debug code, which compiled fine, but I got errors when CCS attempted to link the serial.asm object file to the project. Is there additional setup I need to do/make in CCS 5.2 to inform the linker how to resolve the external call to serial_setup?

 

Also I noted that the print.c module had an exclamation point next to it, not sure what that means?

 

Thanks great project, lot's of good info on I2C, 3.3 to 5V conversion, etc.

 

Best,

 

R.

Link to post
Share on other sites

Rando

 

Thanks for the compliment!!

 

If you are using the serial.asm code be sure to uncheck the exclude resource from build box in the compiler preferences.

Right click on the serial.asm file in the project explorer click on msp430 compiler then uncheck the box.

 

I tried to comment everything that needs to be un-commented for the serial terminal to work. That serial code of oPossum's

was a great help in debugging I use it all the time now.

 

As far as the exclamation point on the printf.c file goes, I think its mostly a syntax thing I have CCS 5.1 and I get

"Possible assignment in condition 'c =*format++'. If it compiled and ran than I guess its not that big of a problem.

 

This is a good question for oPossum the original author of the code, maybe he will see this and reply, I'm pretty sure

he uses CCS as well.

 

edit: Ive updated my CCS to ver 5.2.0.00071 and I get 6 function declared implicitly warnings when compiling.

Due to the fact that the putc function is declared in the main and not the printf file.

It loads and runs fine.

 

I hope this helps

Tim

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...