Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by MSPLife

  1. Yes, pin 14, 15 have both I2C and SPI, I want to communication two devices on those pins.
  2. Dear everyone, I am going to use P1.6 and P1.7 on MSP430G2553 for both function I2C and SPI on same pins, so in the code I will continuously re-config pinmux to match with my purpose. My question is, is my idea possible to implement? Thanks in advance!
  3. Dear everyone, I have a question about LDO IC of Texas Instruments. Normally, I have not seen they use TLV111733 or LM1117-33 in reference design, instead of using TPSxx line, could you help to explain? Could I find an IC that have two output 5V and 3.3V (one chip)?
  4. Dear everyone, I solved my problem, it came from the way I solder the MCU. Thank for all support! By this thread, I was learned many thing. Much appreciated!
  5. Dear May be that is my problem, could you suggest a specific part of 1uF, should I use a electrolytic capacitor or 0805, 1206, ... surface mount? Anyone who has experience with this problem, please help Thanks!
  6. Could you please help to explain about high capacitance on VBUS will cause problem? I just think it will make more stable. Which kind of 10uF (footprint 0805, 1206, ...) I should use in this situation ? Thanks!
  7. I also try to connect to VCC/GND pins on G2 Launchpad (without LDO and 220uF). Voltage still dropped. Both of voltage on P2.2 button and VCC pin (my PCB) is fine, around 3.3 Volt. Only RST pin has problem.
  8. Current would be 3.3V/47K. I design based on the G2 Launchpad
  9. This is my layout. C1 is 1nF, R1 is 47K sw1 is reset button.
  10. My question is, if I can flashed firmware to MCU, was my MCU have ability to be dead?
  11. Firstly, I can program the board, the code flashed without any error. I take off the chip and measure the pad, it is 3.3V, so the board can not be shorted. I face with 5 pcbs with same problem. I used a soldering iron without adjustable heat. I wonder if the MCU was dead by overhead, but after all, I can flash the firmware so ....
  12. Thank for you reply. I use LM1117 3.3 to drop down 5V to 3.3V from USB port. I power directly from computer also try on a adapter.
  13. Dear everyone, I made six pcbs, but only one pcb well-worked. I just wrote a program to test LED and Interrupt on button with LPM4. My problem is only one pcb has about 3.3V on RST (well-worked), another about 2.2 to 2.8V. The lower one only work for a short time, after that it turns to be uncontrolled. I take off the chip and measure on RST pad (with out MCU), it is 3.3V. So I hope your help to figure out where is my failure, why the RST pin was dropped voltage, was my MCU broke? Please give me some suggestions to solve my problem. Thank in advance!
  14. Hi everyone, I am a newbie with capacitive touch, I did a example which I can not config P1.1, P1.2, P1.3 as capacitive sensing function, another pins is ok. The code as below, I just change which PIN, and Port. / Middle Element (P2.5) const struct Element middle_element = { .inputPxselRegister = (uint8_t *)&P1SEL, .inputPxsel2Register = (uint8_t *)&P1SEL2, .inputBits = BIT2, // When using an abstracted function to measure the element // the 100*(maxResponse - threshold) < 0xFFFF // ie maxRespons
  15. Yep, I read that before, but the dot '.' at the beginning of the syntax make me confuse, which I have not seen at any tutorial.
  16. Hi everyone, I wanna understand about how the source can define as below while I can not find in any C tutorial about defining a struct. struct Element{ uint8_t *inputPxselRegister; // PinOsc: port selection address uint8_t *inputPxsel2Register; // PinOsc: port selection 2 address uint8_t *inputPxoutRegister; // PinOsc: port output address uint8_t *inputPxdirRegister; // PinOsc: port direction address uint16_t inputBits; // PinOsc: bit definition uint16_t *baseCnt; // PinOsc: base count uint16_t *threshold; }; //a dot '.' make me confuse const struct Element First ={ .inputPxselReg
  17. Dear everyone, I am using two methods to capture echo pulse from ultra sonic sensor. 1. I config to capture both rising and falling edge without LPM mode. in ISR, I measured delta time between rising and falling edge. TA1CCTL0 |= CM_3 + CCIS_0 + CAP + CCIE; //select smclock for timer a source + make ta1ccr0 count continously up + no division TA1CTL |= TASSEL_2 + MC_2 + ID_0; 2. I config to use rising Interrupt and go to LMP0 , when a rising edge is detected exit LMP0, I config to detect falling edge so I measure time between to edge and calculate the result. TA1CCTL0 = CM_1
  18. Hi everyone, I am facing with a problem about changing DB9 port to USB port to adapt to new computer generation. I download an application that has a Graphic user interface was written on Windows XP, use DB9 port connect to a board has a MAX232 IC to convert signal from RS232 to UART to communication with MCU with diagram: PC -- DB9 cable -- RS232 to UART -- MCU. My computer running windows 8, which does not have DB9 port, so I bought a board that convert USB to TTL (uart). So now my diagram is: PC --- USB cable -- USB to TTL board --- MCU. With my connection (using USB to TTL), I can no
  19. Yes, I use try to use both of 3.3 and 5V on Launchpad G2, same result. Range only about 160cm.
  20. Hi everyone, I use SRF05 to measure ranges, in datasheet, they wrote that it can measure up to 4 meter. But I use below source, maximum about 165cm. https://gist.githubusercontent.com/sashao/3819281/raw/2beef5c80c960a3cfa816dda0417a626a564773d/msp430g2553_hc-sr04.cpp Can anyone help to explain? Thank you!
  21. Thank everyone! But I understood my problem, the problem came from my LDO IC, I have connected 1nF to RST pin but no effect, Moreover, I use 4 pin includes: VCC,GND,RST,TST to flash and debug my code, those pin does not connect to 1nF or 47K resistor of LP. Now, my board just run a shot time without LP, after that it was halt. But if I connect 4 pin to LP and 5V from USB, it worked well! I use two 220uF ALU capacitors for LDO IC. Please ask me any question to solve my problem. Thank you!
  22. Dear @abecedarian You means that I need to add two 0.1uF ceramic to two sides of LDO (close)? and 1nF to !RST, aren't you ? Thank you!
  23. Hi everyone, I face with a problem as below when using MSP430G2 launchpad (LP) to flash code and debug MSP430G2553: - When I connect LP to the target board ( designed as attached file) my program work fine. - When I disconnect LP, and use a USB port to power the target board, it does not work. I am doubting about my schematic of power supply, is it stable enough for MCU? (Resistor for RST pin = 47K). Please help to solve my problem. Thank you!
  • Create New...