
mnpumar
Members-
Content Count
41 -
Joined
-
Last visited
Everything posted by mnpumar
-
Thank you so much! I'm going to give this a try tomorrow and I'll let you know how it goes.
-
I'd like to control an MSP430G2231 connected to my PC using the launchpad. After doing a little research, it looks like UART may be what I need. I found some code examples from TI, but I don't really understand how they work. What I'd like to do is send a signal from my PC to the MSP430 which would tell it to enable/disable certain pins. Here is the code i found, would anybody mind explaining how to use it? What is the difference between these two UART code samples? How do I send/receive on my PC? Do I need some sort of terminal? Can someone please explain? //********************
-
Will this work with a G2231?
-
Hmm..this seems a little overly complicated for what I need to do. Is there any possible way to raise and lower a single pin on the launchpad through some command sent via usb? Is it possible to do this using UART? Are there any code samples of how to use the UART on the launchpad?
-
Thank you for the info! Since the msp430f series only comes in smt, are there still development kits available? If so, are there any you would recommend for a beginner?
-
I'm thinking of using the MSP430 USB Developers Package for a little project i'm going to be starting, and I was wondering if anybody here has some experience with it. I can't seem to find any wiring diagrams that show how to connect the MSP430 to USB. Does anybody on here know? I suppose I could try it out with the development board, but I'd like to have something that doesn't rely on that. Also, does anybody here have experience with the HID USB Application? Is it difficult to get the MSP430 to start receiving and responding to USB messages? Here's a link to the package: http
-
Yes, they are multiplexed digit by digit. The hours are combined into one multiplexed grid, and the minutes are each multiplexed separately. It took me hours on end to make all the connections on the breadboard to make this possible.
-
I will post a full schematic when I have more time, the other digits are exactly the same with one less column. I'm swamped with work for my other classes now until Wednesday. Thanks for all the positive comments and support.
-
[ ENDED ] Nov 2010 - 43oh Project of the Month Contest
mnpumar replied to bluehash's topic in Project of the Month Contests
My project/code/schematic is all posted here: http://www.43oh.com/forum/viewtopic.php?f=9&t=225 -
Thanks! Code has been uploaded thanks to bluehash Thanks! I emailed you the schematic, would you mind adding it too? Also, is there any way to make the pictures appear larger? EDIT: Forgot to author my code :S can add it to my first post again? It's attached to this reply. EDIT2: Also authored the schematic, sent it to your email. Code.zip
-
Thanks! The breadboarding took me 2 days straight, and a few more hours the next day after I finally made it to bed. I uploaded the full version of the pictures for you here: http://www.megaupload.com/?d=AS2R5SHU, they were too big to send via email. I also sent a copy of the link to your email, and my code.
-
Sure, I can post the code if people are interested.
-
So here it is: (EDIT: the forum seems to be cutting off some of the pictures to the right, if you'd like to see the full version of them, go here: http://img718.imageshack.us/gal.php?g=25703750f.png) 4 MSP430's working together The whole thing runs off a single 9V battery. The two digits for the hours are connected to one MSP430, and the two digits that make up the minutes are each connected to separate MSP430s. The whole thing is controlled by another MSP430 which keeps the time. The itself clock has two modes, one mode where it counts time
-
I don't really have a button, I was just connecting the pin to ground/vcc with a wire. I got it to work by doing the following: int main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P2OUT = 0; //P2 is output low P2DIR = BIT7; //P2 is output P2SEL = 0; //P2 is digital i/0 P2REN = 0; //P2 disable pullup resistors */ P2DIR &= ~BIT7; int i = 1; for(;{ //Digital Input while (!(P2IN & BIT7)){ Display(i); } //wait for P1.7 to go high (button is released) i = i + 1; //inc
-
I am not familiar with interrupts i thought i'd be more comfortable working with inputs
-
Just tried this: The LED stays on and never turns off from the beginning :?
-
I'm trying to use P2.7 as an input pin, but it doesn't seem to be working. Here's the code I'm using: int main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P2OUT = 0; //P2 is output low P2DIR = BIT6 + BIT7; //P2 is output P2SEL = 0; //P2 is digital i/0 P2REN = 0; //P2 disable pullup resistors */ int i = 1; for(;{ //Digital Input while (P2IN & BIT7); //wait for P1.7 to go low (buttion is pressed) Display(i); //display while (!(P2IN & BIT7)); //wait for P1.7 to go
-
LOL forgot to add infinate loop...guess these things happen when you stay up all night breadboarding/coding
-
I have wired up a layout in which the LEDs are connected in a grid. The rows are all connected to transistors which switch between the positive supply and zero, and the columns switch between an open circuit and a connection to ground I am using the following code: #include "io430.h" void TurnON(unsigned x, unsigned y) { unsigned YBITS[5] = {BIT0, BIT1, BIT2, BIT3, BIT4}; unsigned XBITS[3] = {BIT5, BIT6, BIT7}; P1OUT &= ~YBITS[y]; P1SEL &= ~YBITS[y]; P1DIR |= YBITS[y]; P1OUT |= YBITS[y]; if(x < 3) { P1OUT &= ~XBITS[x]; P1SEL &= ~XBITS
-
I wish I could give you 100000 thanks for this! I just spent the last 4 hours trying to figure out why this wasn't working, and it was the reset pin! Thank you so much!!
-
Are you programming it on the breadboard? Then yes. You need to connect test and rst. I'm not programming it on the breadboard. I program it on the launchpad, then take it off the launchpad and put it on the breadboard. How do I run the MCU just off 3.5V source? Would test and rst be connected to ground?
-
The code works fine with the MSP430 connected to the launchpad. When I take it off and connect it to the breadboard, nothing happens.
-
I disabled everything in the code, all it's supposed to do is turn on P1.1 and P1.2, and I tested those pins with a volt meter and they are 0V. Do I still need to connect any other pins than VCC and GND for this to work?
-
I am trying to get an MSP430G32231 to work on a breadboard. Here is what I did: I connected the MSP430G2231 to the breadboard. I connected VCC from the lanuchpad to the top right pin of the MSP430 on the breadboard. I then connected a wire from the top right pin of the mcu to the GND pin on the launchpad. However, the MCU does not respond. What am I doing wrong??? Here's a picture of the setup: And the code: // use timer_a to generate one second ticks // built with msg430-gcc, flash w/ mspdebug // #ifdef MSP430 #include "signal.h" #endif #incl
-
I think I can actually get it down to 10 pins by following this charliplexing example: http://ominoushum.com/life/ I post back when i get the right layout down. EDIT: Is it possible to implement NPN transistors into that type of layout so I can use a higher voltage to power the LEDs? Edit2: I attempted to come up with a solution like this: However, when I simulate it, it does not work. My intention was that when V2 (representing the input of the msp430) is 3V, it would output 9V, and when V2 was 0, it would output a connection to ground. Does anyone know why this doesn'