Jump to content

MSPLife

Members
  • Content Count

    82
  • Joined

  • Last visited

  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. MSPLife

    LDO ic selection

    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 maxResponse - threshold < 655 .maxResponse = 450+655, .threshold = 450 }; //*** CAP TOUCH HANDLER *******************************************************/ // This defines the grouping of sensors, the method to measure change in // capacitance, and the function of the group // One Button Sensor const struct Sensor one_button = { .halDefinition = RO_PINOSC_TA0_WDTp, // Sensing Method .numElements = 1, // # of Elements .baseOffset = 0, // First element index = 0 // Pointer to elements .arrayPtr[0] = &middle_element, // point to middle element // Timer Information .measGateSource= GATE_WDT_ACLK, // 0->SMCLK, 1-> ACLK .accumulationCycles= WDTp_GATE_64 //64 - Default }; void main(void) { // Initialize System Clocks WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; // Set DCO to 1, 8, 12 or 16MHz DCOCTL = CALDCO_1MHZ; BCSCTL2 |= DIVS_2; // divide SMCLK by 4 for 250khz BCSCTL3 |= LFXT1S_2; // LFXT1 = VLO P1OUT = 0x00; // Clear Port 1 bits P1DIR |= BIT0; P2SEL &= ~(BIT6 + BIT7); // Configure XIN (P2.6) and XOUT (P2.7) to GPIO P2OUT = 0x00; // Drive all Port 2 pins low P2DIR = 0xFF; // Configure all Port 2 pins outputs // Initialize Baseline measurement TI_CAPT_Init_Baseline(&one_button); // Update baseline measurement (Average 5 measurements) TI_CAPT_Update_Baseline(&one_button,5); // Main loop starts here while (1) { #ifdef ELEMENT_CHARACTERIZATION_MODE // Get the raw delta counts for element characterization TI_CAPT_Custom(&one_button,&dCnt); __no_operation(); // Set breakpoint here #endif #ifndef ELEMENT_CHARACTERIZATION_MODE // Check if the middle element sensor has been triggered. The API call // compares the value from the sensor against the threshold to determine // trigger condition if(TI_CAPT_Button(&one_button)) { // Do something P1OUT |= BIT0; // Turn on center LED } else { P1OUT &= ~BIT0; // Turn off center LED } // Put the MSP430 into LPM3 for a certain DELAY period sleep(DELAY); #endif } } // End Main Please give me an instruction to config them as capacitive sensing. Thank you!
×
×
  • Create New...