Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by touch

  1. They will both have the same period, but they can each run at different duty cycles, in this case I'm running one at 25% (TA1CCR1) duty cycle and one at 5% (TA1CCR2) duty cycle.
  2. #include void main(void) { WDTCTL = WDTPW + WDTHOLD; // Kill WDT P2DIR |= BIT2 + BIT5; // P2.2 and P2.5 output P2SEL |= BIT2 + BIT5; // P2.2 and P2.5 options select TA1CCR0 = 128; // PWM period TA1CCTL1 = OUTMOD_6; // CCR2 reset/set TA1CCR1 = 32; // CCR1 25% PWM duty cycle TA1CCTL2 = OUTMOD_6; // CCR2 reset/set TA1CCR2 = 6; // CCR2 5~% PWM duty cycle TA1CTL = TASSEL_2 + MC_1 + TACLR; // SMCLK, up mode, clear TAR __bis_SR_register(LPM0_bits); //LPM 0 while(1){ } } Here's some simple code for using TimerA1 to generate 2 PWM signals on the G2553. T
  3. Ah, to be an unmarried, too-poor-to-afford-this student. We're all SOL! Ahhhh.. I feel you, I've already spend my budget on gadgets a few times over... I really hope TI throws out some 1/2 off coupons like they have before.. I'll spring for it then.
  4. Anyone seen this? https://estore.ti.com/MSP-EXP430FR5739- ... x-pr-ek-es I'm definitely picking one of these up... I hope that we get some 50% off coupons soon for the TI store . Seems interesting they included a 3 axis accelerometer and a temperature sensor.
  5. I seem to remember people running it with 16MHZ external crystals, I cant find the post at the moment though. I'm tempted to throw a 12mhz crystal in instead of a 37khz watch crystal and see what happens now.
  6. I did get the USCI UART working, I used the example code that RobG linked. It's nice to finally be able to ditch Software UART.
  7. You are exactly right RobG... It's always the little things that get me tied up.. Thanks for that example code, I was looking all over TI's website for it.
  8. Yep that's an LCD problem. try applying some pressure to the black trim or glass where the area is out. The driver board is probably not making a good contact with the conductive traces on the glass, I've had something similar happen when I took a LCD apart and changed the back-light out, fixed it by re-seating the LCD glass.
  9. Throws compiler errors, I believe because that's for a different MSP430 chip series that has different register names. I've been messing around with this and I really cant figure out whats wrong - from all the documentation it seems the USCI should be the same as other MSP430's that have USCI, but the transmit interrupt is just not working at all and neither is loading the transmit register. Maybe I should try over at TI's forums. Thanks anyhow zeke.
  10. Been working with this some more, I tried having the TX ISR toggle an LED, looks like nothing is being sent at all, maybe I'm missing something but do i need to set anything after I fill the buffer to tell it to start transmitting? It doesn't look like I do from the datasheet. #include "msp430g2553.h" void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT if (CALBC1_1MHZ ==0xFF || CALDCO_1MHZ == 0xFF) { while(1); // If calibration constants erased // do
  11. Soo, I got some samples of the MSP430G2553 chips the other day, threw one in my launchpad and have been messing with the new hardware USCI UART... I had to use some jumpers to switch the TX/RX pins because of the pinout is slightly different, however I'm having some trouble sending out anything... Sample code below: I'm using the sample code here provided by TI: (it's for a different chip, but modified slightly to work with the new ones.) //****************************************************************************** // MSP430F23x0 Demo - USCI_A0, 9600 UART Echo ISR, DCO SMCLK // //
  12. I stocked most of my SMD parts from S.E. (aswell as stuff like LED's, general transistors, electrolytic caps, switches, LCD's.) and I've never had any problems with them, they've always replied to my emails within one business day, but most of the time the same day. I think they will ship by any carrier you wish. I paid 20$ for next day shipping using DHL on my last 100$ order (needed some of the parts urgently for a project.). I haven't tried them yet, but I've been tempted to get some through hole resistors from this company: http://www.satistronics.com/50-value-14 ... p2163.html
  13. I like EEVBlog, I've been looking for some other blog/educational videos, but haven't found that much that are up to the quality of EEVBlog. I wasn't that fond of AmpHour (or any audioblog for that matter), they're just not for me.
  14. If you're looking for SMD kits I highly suggest http://www.sureelectronics.net/goods.php?id=162, they also have several other kits and will give you discounts if you order larger quantities. I got them when they had free shipping. Anyone found any good RF/Power inductor kits? I've been looking for some but haven't found any. Was recently thinking about making a lightning detector/counter/warning with my one of my extra launchpads, realized I couldn't make the circuit up because I had no inductors.
  15. touch


    Picked up some samples, was working with the new hardware uart, but I cant seem to find any sample code for this chip, anyone know if there is any yet? Can't even get to the datasheet with out 404ing on focus.ti...weird.
  16. You could also do software PWM if you wanted using the TimerA interrupt, technically then you could then do PWM on any amount of pins, but it wont be as accurate and would use CPU cycles, but may be worth it if you need more than one PWM port with an adjustable duration. As to your question, I believe its FREQ / COUNTS = DURATION, so 8Mhz / 65536 = 122hz, then diving that down by 2, 4 or 8, so you're right, you would be quite limited in your duration. I was just working with the PWM demo's and needed more than 1 PWM port, was thinking of using the software method, but maybe I'll try me
  17. touch

    Anyone notice ...

    I'd love to see some breakout boards for some of the lower end MSP430F5xx series too, I mean, the big chips are nice but really we need a medium ground between the DIP 20pin and something big, I was thinking of making up some F5510 breakout boards using itead studio.
  18. Here's some modules I have: http://www.sureelectronics.net/goods.php?id=230 They're 8x8 bi-color for less than a dollar each, 3mm only but still very nice and bright. I've yet to make some boards up for these as I've not figured out how I'm going to drive them... I was thinking of using 4 modules for a 32x8 display, with 4 AS1100 LED matrix controller IC's driving the displays, and an on board MSP430 for displaying the time/temp/humidity, etc. The main reason I like the AS1100 so much is that it does multiplexing and current limiting for you, you can also adjust the display brightness
  19. Thanks, both the one-wire timer and what you posted zeke is a great deal of help. I found the book you referenced on amazon and picked that up, it looks like it would be a lot of help not only with the MSP430 but also in general how these embedded micro controllers work. I was giving some more thought to how I could do it without timers. Since we know a 1 is 70ms and a 0 is 28us, I suppose I could just use a delay for 28us and if its still high after that, I'd know a 1 was being sent, then use a blocking while() loop until the next bit start signal is sent. How hard is doing something
  20. This is something that frusterates me about the launchpad a great deal, I get these errors (and others) randomly when I'm trying to debug or load code onto my project, I have to as others have said, unplug it and plug it back in, sometimes even on a different USB port. I also have a problem (and i'm guessing this is something with he windows driver) where the serial will just stop outputting any data until I reboot the computer, unplugging the launchpad or switching its USB ports does nothing... I really think its just buggy drivers.
  21. I picked up some cheap DHT11 humidity and temperate sensors, they use some sort of 1 wire protocol (not the dallas one wire). From the testing I did on my Arduino, they seem fairly accurate for a $3 sensor. From reading the datasheet I've gathered that you start temp conversion by pulling the data line low for 18ms then high for 40us, then it will acknowledge with a 80us low and then an 80us high signal and then start sending the 40bit temperature/humidity data. It seems that the length of time that the data line is high determines if its sending a 1 or a 0. Here's the datasheet if an
  22. touch

    8x8 ledmatrix

    The AS1100 can do 7 segment displays or LED matrix's. It has several advantages over the 74595 chips. One resistor is used to set the current for the LED's and you can also control the brightness of the LED's via software, they also simplify it more because they do the row scanning for you. If you read the data sheet you can see how it can be used for LED matrix's. I picked up 3 free samples from them and the chips themselfs are 2$ in QTY 1. Yes, I understand each character/image displayed on the matrix requires 8 bytes, we have 128Bytes of RAM, that is enough for 16 characters at mos
  23. touch

    8x8 ledmatrix

    I was thinking about doing something similar. I have some bi color 8x8 matrix's but they are 28 pin. I have messed with these chips some: http://www.austriamicrosystems.com/eng/ ... ICs/AS1100 They can drive a 8x8 matrix, but I haven't figured out how I'm going to use them for bi-color as they are meant for only 1 color. Another issue I was thinking about is RAM usage, there may not be enough RAM on the launchpad chips to do character display.
  24. Though I'd post this, 70 breadboard jumpers for $4. I've yet to find anywhere that beats this price, they're alright quality, I wouldent call them heavy duty, but they seem like they'd work for any hobbyist without issue, definitely works better than the cat5 cable I was stripping/trying to use as breadboard jumpers. http://cgi.ebay.com/ws/eBayISAPI.dll?Vi ... 0561120554
  25. Everything I've received from Asia has came in tiny boxes not much bigger than the items, normally neatly packed and in about 5 layers of tape - I've yet to receive anything damaged as it's usually wrapped nicely in bubble warp. Yet every time I receive a package from any company here in the US, its normally packed in a box at-least 4 or 5 times the size it really needed, filled more foam than the items in it weigh, really amazes me the amount waste. I ordered a bunch of hookup wire, 4 digit 7 segment displays and some relays from mdfly.. Couldn't beat the prices they were offering.
  • Create New...