vamsi1994 0 Posted March 1, 2015 Share Posted March 1, 2015 HI all, What is the energia code to assign the LCD display pins and LED driver using microcontroller??? I just want to display "hello world"?? Please help the noob out. Regards, Vamsi Quote Link to post Share on other sites
Rei Vilo 695 Posted March 1, 2015 Share Posted March 1, 2015 Which LCD display are you using? What is the LCD controller? Are you using Energia? Have you searched the forum for LCD screens and libraries running on Energia? Please refer to Information to Provide When Asking for Help. Quote Link to post Share on other sites
vamsi1994 0 Posted March 1, 2015 Author Share Posted March 1, 2015 I am using a RG1602A 16*2 LCD display which is powered by an LED driver TLC5940nt. MSP430g2553 is the microcontroller and also using the energia code. I don`t know the code to display a message on LCD display. I know the code for connecting the LCD with the microcontroller but I don`t know how to use with a LED driver. Please help me out. Quote Link to post Share on other sites
spirilis 1,265 Posted March 1, 2015 Share Posted March 1, 2015 That is different. Never used one of those, but I encourage you to look at the Arduino forums as well for advice since Energia should work similarly. Quote Link to post Share on other sites
igor 163 Posted March 1, 2015 Share Posted March 1, 2015 What do you want to do with the PWM unit? (e.g. are you trying to put a variable voltage in to the backlight input on the display? The display looks like a standard 16x2 character LCD (use LiquidCrystal library, or equvialent) When looking for drivers, may help to search for HD44780 (this controller chip or similar are used in many such displays The TLC5940 looks like a 16 channel PWM unit. I would start by looking at Arduino libraries, such as: http://playground.arduino.cc/Learning/TLC5940 Quote Link to post Share on other sites
vamsi1994 0 Posted March 2, 2015 Author Share Posted March 2, 2015 @spirillis- okay,, thanks!! @igor- I Just want to display a message in a LCD through an LED driver. The input is given from the microcontroller and the signal is sent through serial communication when an object is detected by an sensor. I wrote the coding for the sensor and microcontroller, I do not know to assign LCD pins as there are connected to the LED driver. Quote Link to post Share on other sites
igor 163 Posted March 2, 2015 Share Posted March 2, 2015 @igor- I Just want to display a message in a LCD through an LED driver. The input is given from the microcontroller and the signal is sent through serial communication when an object is detected by an sensor. Oh, I think I understand now, you are using the LED driver as a port expander to feed the inputs into the LCD? One simple approach would be to create/use a library that allows you to turn on/off each pin on the LED driver. Then modify the LCD driver of your choice, by replacing the pin on/off calls with calls to the library to toggle LED driver pins. If wanted to get fancy, could think about how to use PWM functions, but timing might be an issue (unless you have enough control of the PWM that you can get several channels to output a synchronized wave-form.) You might also look at how people have handled using a shift register (e.g.) as a port expander for running LCD on Arduino. vamsi1994 1 Quote Link to post Share on other sites
vamsi1994 0 Posted March 3, 2015 Author Share Posted March 3, 2015 okay then I will write the coding for the LED driver and LCD in a seperate library.Then I will include the file in the microcontroller code Shall I do that??? Quote Link to post Share on other sites
Rei Vilo 695 Posted March 4, 2015 Share Posted March 4, 2015 What is the voltage of the LCD? Keep in mind the LaunchPads operate at 3.3V. 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.