Jump to content


  • Content Count

  • Joined

  • Last visited

About CsCrazy

  • Rank

Contact Methods

  • Website URL

Profile Information

  • Location
  1. Hi! I have made some changes to the LCD-button boosterpack in order to get this display to function with MSP430G2452 using USI. I thought to share this with you guys, someone might find this helpful. I made some changes to the original source code (lcd.c / lcd.h) because the hardware is a bit different when NOT using MSP430G2553. One noticeable change is that MOSI pin is not P1.7 as it would be in MSP430G2553. When using MSP430G2452, MOSI-pin is P1.6. I don't know why TI has done this (other than to confuse the customers ). I have attached the schematics and the source code at the end of this reply. Oh, and I used the V2 board with buttons, not touch. But the USI-functional part should be the same whether to use touch or button... Someone with touch-board could verify this? Or perhaps someone would send me an touch-display for me to do it Anyways, thanks and c ya! Sitronix_LCD_ST7579.zip
  2. Wohoo my F5529 LP Kit arrived today here to Finland. It's fascinating to think that this launchpad travelled across the Atlantic ocean I wonder if i have to start using other tools than CCS (due to 16 kB code size limitation) with this board?
  3. Rickta59 this is good I think i'm gonna try this soon as I get home from work. I like that you have modified the code to be smaller and that now HW-UART is used, because that's more efficient way to do things... and in my opinion it's the right way to put data through serial port (well at least on chips which do have USCI). I've noticed that you have changed the CS-line selection more easier. Only one or two (depending on the port being used) changes are needed in SPI.h file, good! (CS_POUT and CS_BIT) But on the bitbanging side, there's no defines how to select pins that the user wants. Anyways if user isn't a beginner, he/she is able to change the port bits easily, not a biggie. But this could be made a bit more easier too, as in HW-SPI. Nevertheless, great work, much appreciated
  4. I helped myself here and got the write function working. You have to make an empty file, or use any kind of file actually that's large enough so that writed bytes are actually written in the SD card. This is because of the limitations with the PetitFS library. The PetitFS can't make files any bigger, so there must be a "dummy" -file in the directory or in the cards root for writes to work. This is actually documented in the web site: http://elm-chan.org/fsw/ff/pf/write.html So maybe next time i'll read the f***ing manual instead of crying for help :DD So summa summarum, here's the steps i got it working: 1) Format SD-card to FAT 2) Create file which has some data in it. File can be txt-file for example. How you create the file is your proplem, but there are tools available. If requested, i can send my program which i wrote to make any size file i want, you have to install it though because it's written in C# and uses .NET. 3) Plug the card in the MSP430 (i know you can't really "plug" it in there but you know what i mean) 4) Write functions will now work for the created file 5) Be happy, take a cup of coffee or a beer. I hope this helps someone.
  5. Hi! I have exactly the same problem here! Using PetiteFS version 1.02 though but still.. I can read from the card (at least i think so because the fl (directory listing) works), but cannot write. I haven't changed much of the code, only the chip-select pin P2.0 --> P1.4... I have formatted the card as FAT and used default allocation size. Windows shows 0 bytes too after I tried to fw (write 100 lines, opened the file before writing). Any help is appreciated!
  6. Thank you bluehash! I think I just might do that, when will the contest open?
  7. Hi all! Yesterday I finished with my little project, which was to play ring-tones in rtttl-format (Ring-Tone Text Transfer Language) with MSP430G2231. I thought that some of you might be interested about the project and about the code. Code is "built" from arduino sketch which involves Tone Library and the sketch acts as a interpreter for the rtttl "code", but also the code is partly made of 'msp430 LaunchPad Music' made by Bob Somers. So this is a kind of a ported code. Here's how it works. Main part of the rtttl-player (as the CCS project is named) is the play_rtttl(*song) function, which reads the song in RTTTL-format. After the function has decoded each note, the note's frequency is selected from the lookup table and it's length is calculated. These two values (note-freqyency in timer ticks, note-length in ms) are then forwarded to PlaySingleTone(...)-function, which sets up the timer and a delay which they together produce a notable sound from the speaker. Speaker might be any low-power speaker (since MSP430G2231 doesn't have much kick to drive larger speakers) or a piezo-speaker, as in my case i used a piezo-speaker. Speaker can be connected to any of the pins in mcu, since timer A causes only interrupt when capture/compare register value is detected. Inside the interrupt the port pin is toggled. You can see or preferrably hear how this little bug plays a MacGyver theme, here's a link to my youtube video: So with the msp430g2231 chip you can play about 45 sec long song (of course it depends on the song and it's tone lengths). Couple of things which were problems during the project: 1. Sounds were at the beginning very wrong, they had different frequency of what it should have been (it hearded like the sounds were inverted each note). This was due to defines in the code. Because this was originally an arduino skecth, the defined note-values (like #define NOTE_C4 <number>) were direct frequencies in Hz and I didn't think of this at first and I just inserted these values into timer. So it was obviously a wrong method. 2. In Tone.c -file I forgot to remove TAIE interrupt (which in this code is not needed) and I didn't have interrupt handler so the player produced only one note and then it was resetting itself. This was very obvious when it was detected. So here it is. Thank you for your interest. Hopefully this is useful for somebody, for me it was really fun thing to do and the interesting part was the parser code (play_rtttl) function. In the attachment you can find the project-files for CCSv5 and below is a picture of my speaker setup: RtttlPlayer.zip Edit: Added schematics for the current code. msp430g2231-RTTTL-Player.pdf
  8. Would it be possible to overlap smd-pads at least on capacitors? It could basically be just a solder mask opening? I think many of us have smd-components which could then be used too
  9. Hi Username! I don't know where are you looking at but I can definately see some LM4F-series MCUs which are active from here: http://www.ti.com/lsds/ti/microcontroller/arm_stellaris/m4f_series/products.page I have understood that any LM4F-mcu can be debugged and programmed through the launchpad. At this moment these are are active: LM4F230H5QR - Stellaris Microcontroller LM4F231H5QR - Stellaris Microcontroller LM4F232E5QC - Stellaris Microcontroller LM4F232H5BB - Stellaris Microcontroller LM4F232H5QC - Stellaris Microcontroller LM4F232H5QD - Stellaris Microcontroller All the other are in 'preview' state. I have a feeling that all of these 'preview's are set to active any day or week now. Just my two cents
  10. Hi again! I did a bit of searching in stellarisiti forum and found that CCS should be totally un-restricted when connected to Stellaris-Launchpad: http://forum.stellarisiti.com/topic/186-will-ccs-be-free-for-the-stellaris-launchpad/ So I quess my question is answered then... Gotta love TI!
  11. Hi, I just thought to share this tiny bit of info with you guys... Yesterday I received two pieces of Stellaris-Launchpad. I had ordered them about 1
  12. I would like to see an C implementation of this. Also if it is possible to modify the code for this to operate with 16 MHz crystal it would be great too, because I think 16M is more common frequency than 18M. Anyways, great job!
  13. This looks interesting. I will try to install this package into existing Eclipse Juno... Yesterday I tried to follow the information on this website: http://springuin.nl/articles/launchpadwindows in order to get the open source tools working in windows, but I had some problems with the linker and compiler settings and used 4-5 hours just trying to get the damn Led-blink program to compile and link... So I hope this works better
  14. Hi Bluehash! Nokia HQ and some R&D work is still in Finland if you didn't know A good dish? Hmmmmh... well we all have different taste, so I'm not so sure what to suggest. Maybe some gamefood, you know like reindeer, moose or some bird (wood grouse)... Fresh boiled potatoes and real butter with the gamemeat. Of course some kind of brown sauce would be nice. There are lots of good foods in here, but I'm no chef so... Almost in any restaurant in here there are some "finnish" foods available, so if you ever visit here, go ahead and try. (Menus are in finnish and in english and sometimes in swedish too.) Most of the people understand and can communicate in english since we start learning it about when we are 8-10 years old.
  15. 27 years old finnish hardware engineer guy says hello! I just recently registered in to this forum, but i have been lurking around for a while now. This forum has been a great help to me and there have been some very interesting projects out there, I'm hoping to see more of them. Regardless that my job title is hardware engineer, I've done some programming too, mostly in C. C++ and C# are familiar languages for me too. Umm.. not sure what to say, isn't this enough ? Feel free to ask if you have questions! (No, there's no polar-bears in here, only regular ones and a beer which is named as 'bear' = Karhu in finnish - which i like Oh, if there's any finnish readers out there and you are interested in MSP430 programming, check out my webpage which has finnish tutorials about Launchpad (url at the end). Of course other nationalities are welcome too, but since it's written in finnish you propably won'd understand it... But hey, I got some youtube videos also! Comments are welcome. That's it. Be nice or else santa won't bring you any new gadgets to play with. BR. Mika 'CsCrazy' V
  • Create New...