Jump to content
43oh

Rickta59

Members
  • Content Count

    1,135
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by Rickta59

  1. The least appealing thing about it, is that It really isn't specific to the msp430f5510. That board is just a pin break out for 48 pin QFP chips. No usb connector, no decoupling capacitor, no XTAL provision, no BSL connector, no reset button, no pullup resistor. There is nothing that makes it a break out board specific to the msp430f5510. The bigger problem I see with trying to sell something like is the competition from itead / seeedstudio / dorkbotpdx prototype pcb services. They all make it so inexpensive, it stifles any reason to do anything other than design your own custom board
  2. I looked at those before. However, they seemed too expensive when you consider that you can get 3 of these http://www.seeedstudio.com/depot/xqfp-breakout-board-05mm-p-755.html?cPath=175_177 for the same cost. The DP board also supports the 64 and 80 pin devices. -rick
  3. So it really can't be used as a general purpose IO like you can do with the AVR RESET pin. However, it is great to be able to fully use all the pins. I guess I should read the e2e.ti.com site more often. : ) Thanks, -rick
  4. Thanks, I didn't know you could use it like that. -rick
  5. Sample code? I missed that one. -rick
  6. Maybe In the AVR world, not so much here in the msp430 universe. The RESET and TEST pins on a msp430 G series are dedicated to the SBW (Spy Bi Wire ). You can't use them for anything else. -rick
  7. Have you tried this demo from the msp430f5529 samples? MSP430F552x_dma_02.c DMA0, Repeated Block UCA1UART 9600, TACCR2, ACLK -rick
  8. gwdeveloper clued me in about this one: http://lakeweb.net/MSP430/#I2C_bitbang_master -rick
  9. Thanks Peter, this is just the kind of feedback I was looking for. What was I thinking? Of course those memory mapped registers need to be marked as volatile, the hardware is updating them and the value can change at any moment. I updated the gpio.h and changed the sample so that it performed some serial toggling of the same pin: ... LED1.setHigh(); LED1.setLow(); LED1.setHigh(); ... msp430-gcc seems to generate the proper code even with -Os turn on: inline void setHigh() _INLINE_ { reinterpret_cast(PORT_BASE_ADDR)->_OUT |= PIN_MASK();
  10. Might be easier just to snag the software only SPI implementation from bad apple project. You can run that on any pin. -rick
  11. [EDIT: This code concept has evolved into "fabooh" find it here on github https://github.com/RickKimball/msp430_code/tree/master/fabooh ] I've been experimenting with msp430-gcc uniarch trying out different approaches to implement a fast GPIO abstraction layer that hides some of the bitmask gymnastics we all seem to do when programming the msp430. I think I've come up with a reasonable approach and I'm hoping for some feedback from all of you. Normally to access the gpio ports on the msp430 with 'C', you use a bit ANDing (P1OUT & BIT4) and ORing ( P1OUT | BIT1 ) style of programmin
  12. It would be great to be able to use the github's embed feature. <script src="https://gist.github.com/1597239.js?file=fastgpio.cpp"></script> What do you think? -rick
  13. I really like the idea of that. I have been talking up an idea like this on #43oh IRC since last June. My idea, without an implementation, was kind of a hard sell. People didn't see the value. Me, I think this idea has great merit for a bunch of reasons. 1.) Low barrier of entry to try things out with an MSP430 MCU. Online, no install, only one place to update for new features and function. 2.) A good place to create wizards and tools that people can use to generate the chunks of code. It would be great for configuring PWM for a specfic frequency and duty cycle. Think a web
  14. How many bytes do you need to send to the Nokia? How often are you updating that data? Can you feed the Nokia using SPI? The big question is can you update the memory then read it back faster than your screen refresh rate. When I was testing, I set my MCLK to 16MHz and then measured how long it took to read one byte and one 32k block. The one byte read has some minimum SPI protocol overhead but could be done in about 110ish uSecs. The 32k read took about 100mSecs. I think I was using a 4MHz SPI clock, you might be able to do better than that. -rick
  15. I haven't yet. I'm planning on using as memory buffer for serial data. However, I mainly wrote it to figure out how SPI worked on the msp430 chips with USI peripherals. -rick
  16. I tried this code and it works with the EXTRAFLAGS. I ended up with a different size elf file than you though: Erasing... Programming... Writing 250 bytes to c000 [section]... Writing 32 bytes to ffe0 [section]... $ make rm -f *.elf msp430-gcc -Wall -g -L/usr/msp430/lib/ldscripts/msp430g2553/ -I /usr/msp430/include -Os -fdata-sections -ffunction-sections -Wl,--gc-sections -mmcu=msp430g2553 -o clock.elf main.c $ msp430-size clock.elf text data bss dec hex filename 282 0 3 285 11d clock.elf $ I'm using the 20110706 msp430-gcc with all the
  17. You can find some useful info here; http://mspgcc.sourceforge.net/manual/x1248.html -rick
  18. Use the ior operation (inclusive or); gas doesn't recognize or as an alias. 'ior' doesn't seem to be in the 20110706 LTS version. for this line of code I get: ... ior #0x0300, ARG1 ; Add Stop bit(s) to tx char ... sw_serial.S:162: Error: unknown opcode `ior' In the code I ported before I used BIS instead of OR. Is 'IOR' available in some upcoming release? Is it any different than using a BIS? -rick
  19. I had already fixed up the serial.asm here: http://www.43oh.com/forum/viewtopic.php?f=10&t=1727#p12116 there are some hints on that post regarding what needs to be changed. -rick
  20. Do you have any more information to share about this project? Board schematics? source code? more videos? TIA, -rick
  21. I've often thought that it would be nice if you type: "msp430-gcc --version -v" and it would display not only the gcc version but also a list of all applied patches. Anyone else think this might be useful? Maybe there Is there another way to figure out through headers or some other means which patches are applied? -rick
  22. This code snippet is part of a bigger library I'm working on that will be a GPL compatible license if I ever release it. As far as running from a more accurate clock, you might find a post on here from oPossum that details how to steal the 12MHz clock signal from the LP FET and use it as an external clock. -rick
  23. You could try: msp430-gcc -Os -g -fdata-sections -ffunction-sections -Wl,--gc-sections file1.c functionLib.c -o out.elf -rick
×
×
  • Create New...