lastaid 15 Posted April 5, 2011 Share Posted April 5, 2011 Is there a port available that uses an i2c interface? i saw the 7 segment i2c driver, when i get my displays [ ordered the a month ago from hk :roll: ] i could give it a try. especially because msp430 is cheap, the displays cost me 3,40 Quote Link to post Share on other sites
gwdeveloper 275 Posted April 9, 2011 Share Posted April 9, 2011 Has anyone seen this link? http://www.fatihinanc.com/msp430-cesitli/msp430-launchpad-ve-74hc595-lcd/ GeekDoc 1 Quote Link to post Share on other sites
RobG 1,892 Posted April 9, 2011 Share Posted April 9, 2011 Or you could make your life easier and do this: viewtopic.php?f=9&t=540#p3717 gwdeveloper 1 Quote Link to post Share on other sites
gwdeveloper 275 Posted April 10, 2011 Share Posted April 10, 2011 Hey, that works great! It was way easier to dig a little deeper in the old parts bin for a 164 than to decipher that code. It didn't import well at all. Quote Link to post Share on other sites
P!-Ro 4 Posted April 11, 2011 Share Posted April 11, 2011 I just started a thread for those who would like to interface the msp to an lcd directly. It does use 7 pins though, so for some projects needing more pins I would try out Rob's method to save on I/O. Quote Link to post Share on other sites
oldcyberdude 4 Posted June 10, 2011 Share Posted June 10, 2011 I trying to use the button count code with a Sparkfun backpack and 4x20 lcd. I use the gcc compiler and got a good compile (changed out the __delay_cycles() ) except for an "invalid use of void" Here is the code snip // Update the button press count, and toggle LEDs, when the button is pressed #ifdef __MSP430__ interrupt (PORT1_VECTOR) PORT_1 (void) { #else #pragma vector=PORT1_VECTOR __interrupt void PORT1_ISR(void) { #endif buttonPresses++; P1OUT ^= BIT0; P1OUT ^= BIT6; P1IFG = 0; // clear interrupt __bic_SR_register_on_exit(LPM4_EXIT); } I don't see the problem? BTW, using the #ifdef in the code is really nice for portability. SOLVED - It seems msp430gcc doesn't like LPM4_EXIT some googling showed it should be LPM4_bits - interesting. zeke 1 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.