neting 0 Posted December 31, 2012 Share Posted December 31, 2012 hello every body.... m burning a simple dimmer code through energia.... hyperternimal/serial monitor doesn't seem to responding to the code.... can anybody help me telling what can be the issue,or mistake m i commiting... thanks... Quote Link to post Share on other sites
Rei Vilo 695 Posted December 31, 2012 Share Posted December 31, 2012 Could you be a bit more specific please? Which MSP430 are you using? Which version of the LaunchPad board are you using? Please refer to the wiki for Hardware pin mapping Serial-Communication Enjoy ;-) neting 1 Quote Link to post Share on other sites
neting 0 Posted December 31, 2012 Author Share Posted December 31, 2012 well m new to energia.... my serial monitor shows some garbage output for code(given below)on selecting msp430g2553. int p=15; void setup() { Serial.begin(9600); pinMode(pin,INPUT); } void loop() { Serial.println(digitalRead(pin)); delay(1000); } this code should display 0's and 1's on serial monitor ,it will display 0's when switch is unpressed else 1's when pressed...... earlier i had selected the wrong board for which it was displaying no display on serial monitor... Quote Link to post Share on other sites
Rei Vilo 695 Posted December 31, 2012 Share Posted December 31, 2012 Use instead Serial.println(digitalRead(pin), DEC); neting 1 Quote Link to post Share on other sites
neting 0 Posted December 31, 2012 Author Share Posted December 31, 2012 nothing change...still the result is same....garbage output..... # Quote Link to post Share on other sites
Rickta59 589 Posted December 31, 2012 Share Posted December 31, 2012 Do you have hyperterminal configured for 9600 8-N-1? neting 1 Quote Link to post Share on other sites
neting 0 Posted December 31, 2012 Author Share Posted December 31, 2012 i have ensured that my hyperterminal baud rate is set to 9600 ...is there any other issue that needs to looked.....and do jumper setting also effects it any ways... Quote Link to post Share on other sites
neting 0 Posted December 31, 2012 Author Share Posted December 31, 2012 yes i have configured HT to 9600 8-N-1 configration.... Quote Link to post Share on other sites
neting 0 Posted January 1, 2013 Author Share Posted January 1, 2013 Rei Vilomy board is msp430g2553 and launchpad version is Rev 1.5.... Quote Link to post Share on other sites
neting 0 Posted January 1, 2013 Author Share Posted January 1, 2013 m totally stuck ,can anybody help me out.... Quote Link to post Share on other sites
Rickta59 589 Posted January 2, 2013 Share Posted January 2, 2013 Did you try the serial console of Energia? Did you try some different baud rates? How about just trying to print a char array Serial.println("Hello world!\r\n"); Quote Link to post Share on other sites
bluehash 1,581 Posted January 2, 2013 Share Posted January 2, 2013 Also, check your UART jumpers. Quote Link to post Share on other sites
neting 0 Posted January 2, 2013 Author Share Posted January 2, 2013 i tried printing simple array of characters....but same result garbage characters.... tried changing the baud rate....configured my jumpers to the required position.... and by serial console if u mean serial monitor ..yes i have tried it....even external hyperterminal i have tried.... my position of UART jumpers are as shown in the figure for mspg2553 rev 1.5 of the link.https://github.com/energia/Energia/wiki/Hardware.... but no good... Quote Link to post Share on other sites
Rickta59 589 Posted January 2, 2013 Share Posted January 2, 2013 Maybe try a different computer or a different launchpad board, or a different chip. -rick Quote Link to post Share on other sites
neting 0 Posted January 2, 2013 Author Share Posted January 2, 2013 different computers have tried...boath 32 bit and 64 bit....different board have tried.....same old garbage values..... and most annoying thing is when m burning the same code over arduino its working perfect... 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.