Jump to content
43oh

Leaderboard

Popular Content

Showing content with the highest reputation on 10/16/2010 in Posts

  1. Hi All, 43oh has a new feature, where you can "Thank" users if their posts have been helpful to you. You will see a tiny "Thumbs Up" sign on the top right of every post, except yours..as you can't thank yourself :mrgreen: . This also adds two fields to your profile. Hope you guys like it and make use of it.. Thank away!
    2 points
  2. Two options for debugging, and they can be done simultaneously. First, throw some leds between the shift register and the lcd. Don't know how much current can be sourced from the register, but all you need is enough to light them for debugging purposes. This allows you to ensure every control nibble you push is what it should be. Second, you could tie the register's latch to its clock, and drive the lcd's enable pin directly. More control, same number of lines. Since the 2 line setup comes relatively quick into using the lcd, and the first five you should be able to verify quickly.
    2 points
  3. I was browsing through bluehash's other site, and came across this link showing his workspace (drool): http://www.machinegrid.com/2009/12/the-jerker-geek-desk-workbench/ Personally, I have a 6-foot folding table in the basement for my workspace (I'll add a pic later). I would like to see pics of others' set-ups, perhaps with lists/descriptions of their main features/tools. At the very least, it would give a reason to clean up your work area! (As I must do before taking a pic. :oops: ) Anyone willing to share? Post pics of your coding/building areas (mine are separate) and
    1 point
  4. Hi all. In an effort to prototype the shiftOut() function for my MSPhere library, I went ahead and threw together a quick and dirty binary LED counter using the LaunchPad, 8 LEDs, 8 1k resistors (not ideal, but they're the lowest value I had on hand, the rest are packed up to go to campus with me on Sunday), and of course, a 74HC595 shift register. Basically, you set up the circuit as follows: (all pin numbers are in regards to the '595 chip, information available at http://www.msarnoff.org/chipdb/74595) Q0-Q7 (pins 15, 1-7): LED to ground, with suitable resistor in series. GND (pin
    1 point
  5. I made this little project and wanted to share it. The code is mostly from "Half Duplex Software UART on the LaunchPad" by NJC, I just added the ADC parts I needed. The Processing application send first a "X" and the LP answer with the value from one of the axes, then send a "Y" and you get the value from the other axis. After that the soft update the snake position and repeat the process. In order to start the game you have to click on the START button (pretty obvious), you lose if the snake touchs any of the sides, also the length and speed increase as you eat the little boxes. The codes
    1 point
  6. jsolarski

    delay function

    This Delay function is for mspgcc, this is the one suggested by mspgcc to use instead of int i = 1237; while(1--); or int i; for (i = 0; i <1234; i++); mspgcc will usually remove delays like this thinking it is a wast of space. mspgcc suggest to use an inline function like this example taken from the mspgcc user guide. static void __inline__ msp_delay(register unsigned int n) { __asm__ __volatile__( " 1: \n" " dec %[n] \n" " jne 1b \n" : [n] "+r"(n)); } call this function when ever you need to do a short delay(or long one lol) example //"your code" msp_dela
    1 point
  7. Beige

    POV Text Display

    Ok, found something to do with the Value Line chips, a Persistence Of Vision display. Nothing quite like wildly swinging electronics in front of a camera on a long exposure Oh, and excuse the piezo, was a separate experiment... Code and big pics can be found at http://www.beigematchbox.co.uk/blog/?p=1518
    1 point
  8. This is how to install the 32K stock crystal that comes with the MSP430 Launchpad kit Original post http://justinstech.org/2010/07/msp430-launchpad-dev-kit-how-too/ * Supplies * Launch pad * 32KHz crystal * soldering iron * solder * headers * Bright lamp * electrical tape or tape like substitute * odds and ends (lol)(tweezers or other tool for manipulation) Steps 1) open crystal packagaging and place crystal on launchpad 2) more the crystal around with tweezers or other manipulation tool till the leads of the crystal line up with the
    1 point
  9. Hello all, If you've been reading my posts, you might have heard me mention a framework I've been working on for the MSP430 to bring the Arduino functions and programming paradigm to the MSP430--in particular the LaunchPad and compatible devices. Note that this is not a direct port of the Arduino libraries, but original work with a few code snippets whose basic functionality is the same on both architectures littered in. Well, I've made some progress, and thought I'd start this thread about it. I will update this first post as time goes on, linking all of my blog articles to this pos
    1 point
  10. This is probably redundant to some/most, this is just some of my test code on interpreting ti's docs on clocks, timers & interrupts into c, all their example code was in asm which wasn't too helpful for me as I'm pretty much starting from scratch, its been a long time since I've done any programming. Its mostly just setting up the clocks,timers, interrupts, and not much of a demo: it uses 3 clocks and blinks. Cpu/software@15.25mhz, wdt, & timer_a1. Wdt & timer_a1 are sourced from aclk/vlo@12khz. software clock runs somewhere from 600ms-700ms, wdt@ ~667ms , timer_a1 @ ~5.46seconds
    1 point
  11. Hey all, I made up a quick little noise maker to get used to some ADC10 code. Code and information is available on my blog: http://blog.suspended-chord.info/?c=16 Let me know what you think! EDIT: New blog post with fixed code: http://blog.suspended-chord.info/?c=17
    1 point
  12. Since there is a lack of 20 pin DIP msp430 chips, and considering that with only 1 8-bit port (Plus 2 bits if you don't solder the crystal on), the easiest way to interface the msp430g launchpad devices to a breadboard would be a 10-pin cable, on 1 side! After you soldered on either the female (best option imo) or the male headers to the launchpad, use a jumper to tie p1.6 to p2.5, p1.7 to p2.4, and another jumper cable from a gnd point (3 pin header at bottom, or at the top of j2) to p2.3. Additionally, add three jumpers to the bottom of the dip socket on the launchpad, bridging the l
    1 point
  13. actually i think it is the other way around, to use the XIN XOUT as IOs, i have to set them to 0s i.e. P2SEL &= ~(BIT6|BIT7); it is more consistent this way, all P1 pins have P1SEL bit low when they are digital IOs. i checked the datasheet p.43 and p.44 to confirm this, the tables also implies that u cannot use P2.7 as IO when P2.6 is timer output. i observed this as i always sets P2SEL=0x00; to make them available as IO. i would guess that at POR value of P2SEL is set to BIT6+BIT7 (aux function, but default setting) and u have to reset them (turn off) to enable IO.
    1 point
  14. This is quite easy, if you don't have the crystal soldered on. These two pins are P2.6 and P2.7, and to enable them as GPIO pins, you simply use something like... P2SEL |= BIT6 + BIT7; This register (the PxSEL register) tells the MSP430 which function to use the pin for. P1 is set by default to be GPIO, and P2 is set by default to be for peripheral use. Setting the appropriate bits to 1 in the PxSEL registers tells the MSP430 to use the secondary mode, which for P2 is as a GPIO pin. Hope this helps! Oh, and cde... great idea with the LEDs. I never would have thought of that!
    1 point
  15. I think I just geeked in my pants! : http://projectproto.blogspot.com/2010/09/android-bluetooth-oscilloscope.html
    1 point
  16. Ah, gotcha. Good. Thanks for the thought, and ouch! Hope your mouth feels better soon! Looking at your code and the datasheet (60 pages, yeesh), you do have the right value being sent during initialization. One thing I might suggest is taking out the 595, just for now, to see if you can get it to work directly in 4-wire mode. Again, binary values help there. And since you'd be using P1 directly, you could just set P1OUT to whatever value you needed. One thing I noticed in the sheet and didn't quite find in your code (probably my bad, I'm terrible at reading other people's cod
    1 point
  17. Just noticed at the bottom that it is your birthday! Gratz! I'd have got you something, but I wouldn't know where to send it (and LaunchPads are on backorder ). -Doc
    1 point
  18. Click for larger photo The two voltage regulators at the front provide 3.3v and 5v from a 12v wall wart I had lying around. A gearmotor is driven by a TB6612FNG (the red breakout board in the photo; PWMA is tied high, A0IN/A1IN are tied to P1.6/P1.7 on the msp430, vcc/vmotor/gnd/reset are connected as appropriate). The IR receiver demodulates at 38khz (it was surprisingly difficult to find one that operates at 3.3v, 5v seems to be standard); it is connected to P1.5 on the MSP430. The circuit was built on a breadboard initially, with the launchpad attached and reporting infrared samples to
    1 point
  19. Hi all. I've written a quick library to support the TLV5620 8-bit, quad-channel DAC from TI. This is a relatively powerful chip, and available in TI's magnificent sample program, in quantities of up to five in two temperature ranges (C and I). Anyways, as I'm lazy and don't want to rewrite my blog post here, and as I'd also like to attract more traffic to my blog, I'll just post the link here. If you have any questions or comments, feel free to leave them here or on my blog. I'll try to answer everything to the best of my knowledge Blog post: http://blog.suspended-chord.info/?
    1 point
×
×
  • Create New...