Hot answers tagged

16 votes
Accepted

Getting MSP430 USB Driver Signed By Microsoft

It's not so bad, actually. I've done this a few times at work, writing and signing an .INF/.CAT for a Microchip PIC24FJ64GB002-based USB CDC-ACM-to-I2C interface. Establish a relationship with a ...
Adam Lawrence's user avatar
13 votes
Accepted

I2C only works when probed or loaded with 1Mohm

I think I've found the answer. It turns out this is a known problem, but I only found that after I'd decided where the problem was, and searched for that! Here is the process I went through, so you ...
SamGibson's user avatar
  • 17.8k
9 votes

Programming bare microcontroller chips

You can use a JTAG programming tool for this purpose. Pinout of the programmer looks like this: You can find matching pins on the IC: When you design your custom board, you can put in a row of ...
Whiskeyjack's user avatar
  • 8,286
9 votes
Accepted

32kHz crystal long start time on 10% of PCBs we order

Loading Cap Size Assuming you are correct that the crystal needs a 12.5pF load (which I can't verify from the info in the question), and the MSP equivalent load is 1pF (from the datasheet), then that ...
colintd's user avatar
  • 7,804
8 votes

My oscilloscope is not measuring the frequency of my wave accurately

The MSP430FR58xx, MSP430FR59xx, and MSP430FR6xx Family User's Guide says in section 3.2 that the CS module default configuration is: LFXT is selected as the oscillator source for LFXTCLK. ...
CL.'s user avatar
  • 19.2k
8 votes
Accepted

UART in my code transmits a character, yet on the oscilloscope I find it gave me another signal

If you try to use 9600 bps rate with 32768 Hz clock, it is not possible, the actual baud rate will be faster, 10923 bps. That is 13% faster than requested 9600 bps, and thus out of tolerance ...
Justme's user avatar
  • 143k
7 votes
Accepted

Wrong load capacitance for 20 MHz, 20 pf crystal

To get the specified 20 pF load for a crystal, you need two 40 pF caps, theoretically. However, these 40 pF caps in reality do include package pin capacitance (2-3 pF each pin), plus parasitic ...
Ale..chenski's user avatar
7 votes
Accepted

Test UART send and receive without a physical device

You can do a simple "loopback" test - connect your Tx output to your RX input - if all is well, you can talk to yourself. EDIT The loopback test only shows that your transmit/receive ...
Peter Bennett's user avatar
6 votes
Accepted

MSP430 launchpad's bypass capacitor mystery!

SBWTDIO is a high frequency signal (used for programming the chip) which won't tolerate an 100nF cap. Remember that a cap in the data line results in longer signal rise and fall times. Note the ...
Turbo J's user avatar
  • 10.1k
6 votes

How do you design a switch input to a MCU for ultra low power consumption?

Turning the internal pull-up (or in your case, pull-down) resistor off is indeed a way to minimize the power consumption when a switch remains asserted against that resistor. However, by itself that ...
Chris Stratton's user avatar
6 votes

My oscilloscope is not measuring the frequency of my wave accurately

The community's help is very much appreciated. The time-base setting (orange box added by me) is 400 us. I've also over-laid vertical red lines on your screen shot. Each red line highlights the ...
Andy aka's user avatar
  • 451k
5 votes
Accepted

How do microcontrollers (MSP430G2452/G2553 specifically) behave when the battery runs low?

The problem with VCC dropping uncontrolled is as follows. Erratic Behavior. Unstable Clocking. Brown-Outs. And Stalling. Or worse, corruption. Not even accounting for mismatched input voltages. From ...
Passerby's user avatar
  • 72.9k
5 votes
Accepted

How do you design a switch input to a MCU for ultra low power consumption?

The internal pulldown has 20–50 kΩ, typically 30kΩ, which limits your choice of resistor to pull the input up. Fortunately, you can turn the internal pulldown resistor off, which is also the ...
Simon Richter's user avatar
5 votes
Accepted

MSP430 microcontroller

Sounds like, due to your questions on basic hardware and software setup, that you should start with the MSP-EXP430G2 Launchpad. It's US$10 and has all the hardware you need to familiarize yourself ...
calcium3000's user avatar
  • 2,516
5 votes
Accepted

Switch for turning off MSP430

The problem is that the PL2303 (and most UART configurations) idle with a high output on TX out. This ends up powering your MSP430. Yes, the logic high output of PL2303 TX is powering your MSP430 ...
Vince Patron's user avatar
  • 3,596
5 votes

Switch for turning off MSP430

I'm not going to guess at and then review a schematic you haven't provided. But I've been here a few times with the MSP430 and have learned a thing or two. An MSP430 can run off of just a few ...
jonk's user avatar
  • 77.8k
5 votes
Accepted

Code Composer Studio 6.1.0 debugger is not acting as it should

Your MSP430 is a 16-bit machine, so the compiler is doing the (10000*tnth) as a multiplication of 16-bit numbers and truncating the result to 16 bits before ...
brhans's user avatar
  • 14.7k
5 votes

MSP microcontroller Watchdog timer

Go to TI's web site and locate the main page for your MSP430 processor. (I'm not as familiar with the MSP432.) For example, here is the site for the MSP430G2553. Once there, find and get the User ...
jonk's user avatar
  • 77.8k
5 votes

My oscilloscope is not measuring the frequency of my wave accurately

Now being a little more productive than I was in my comment, and trying to solve your X problem rather than the Y problem you asked about (see XY problem), there's almost certainly an error either in ...
swineone's user avatar
  • 1,472
5 votes

My oscilloscope is not measuring the frequency of my wave accurately

Which clock path did you intend to select? These modern MCUs have a zillion options. I believe that this is the default path (in red). 32768/25 = 1310 Hz Toggling at 1310 Hz yields 655 Hz. Not ...
Mattman944's user avatar
  • 15.7k
5 votes
Accepted

HX711 chip not working

I think in your schematic that you haven't tied AGND into proper GND: - The above is a sample circuit I found on google that clearly shows that AGND connects to a GND symbol and your circuit doesn't ...
Andy aka's user avatar
  • 451k
5 votes

Can I use a timer delay inside a i/o interrupt handler?

If you are just going to loop and wait around inside the interrupt handler until the delay is over (i.e. polling the value of the timer while inside your interrupt handler to check whether the delay ...
DKNguyen's user avatar
  • 56.4k
4 votes
Accepted

How to troubleshoot overheat/short of microcontroller?

Things that could go wrong: PCB manufacturing error (especially with DIY technology): you should check the integrity of the traces before soldering the components, for example with a DMM in ...
Laszlo Valko's user avatar
  • 2,008
4 votes
Accepted

Turning MSP430FR5969 off

You need to carefully think about two things: 'entering the off condition' and 'exiting from the off condition'. The MSP430 family is famous for its versatile operating modes. And the Low Power ...
Andrejs Gasilovs's user avatar
4 votes
Accepted

Difference between `gcc` and `gcc-msp430`

gcc (alone) is your local machine compiler that generates code for x86 and x86-64 (ie. the target is your computer, unless you are running on non-x86). ...
filo's user avatar
  • 8,931
4 votes
Accepted

Why does the UART not report an error for a data byte with wrong parity?

When you set UCPEN, the hardware sends (and expects to receive) an additional bit: If the actual data bits D0…D7 already have the correct parity, the PA bit is transmitted as zero. If the D0…D7 ...
CL.'s user avatar
  • 19.2k
4 votes

Blow MSP430 security fuse with FET430 or MSP-FETFlash programmer

Actually only 2 TI programmers can blow fuses (electrical and software fuses) on the MSP430 MCU line: MSP-FET430UIF (the white box, mini USB) and MSP-FET (the black box, micro USB) As per document: ...
Tweepy's user avatar
  • 69
4 votes
Accepted

Lithium thionyl chloride for GSM application

Manufacturers of lithium thionyl chloride battery packs use hybrid layer capacitors (HLCs) for this exact purpose. For example see Tadiran.
Mr. Snrub's user avatar
  • 2,583
4 votes

Acceleration calculation from ADC raw data

The answer from jusaca is correct as far as it goes. Unfortunately, it doesn't go far enough. A quick look at the datasheet for the PCB model 393B12 acceleration sensor shows that it will be more ...
JRE's user avatar
  • 70.7k
4 votes

Programming bare microcontroller chips

You use a JTAG debugger or programmer like this one or use the launchpad as Eugene Sh. suggested. When you make your design, you can add a connection for either a JTAG or SWD interface. There are ...
Peter Karlsen's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible