Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all 21946 articles
Browse latest View live

MSP432P401R: Which pins provide generation of a PWM waveform using timer_A (without interrupts)?

$
0
0

Part Number:MSP432P401R

There are 40 pins on the board I am working with. I am trying to identify all the pins that would allow for the generation of a PWM waveform on them by using a timer_A feature and without using any interrupts as well as the identifying the corresponding timer_A module (i.e., TA0, TA1, TA2, TA3).

Using Figure 28. Schematics (1 of 6) found in the LaunchPad User's Guide I come up with:

P2.4-7, TA0
P5.6, TA2

Which is clearly wrong, so I attempted searching up if anyone asked any similar questions on this forum and came across <https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/711190>, which gives:
P2.0-7
P3.0-7
P7.0-7

Is this correct? P5.6 is surely a PWM pin?

I went and asked a colleague about how to figure this out, and they pointed me to Figure 4. MSP432P401RIPZ Pinout in the LaunchPad User's Guide. I noticed there seems to be a lot of information condensed tightly, which I am not too sure how to read. Take for example:

P2.7/PM_TA0.4P7.4/PM_TA1.4/C0.5

Does the PM mean it is PWM capable? I believe the C0.5 is referring to the corresponding capture/compare copy (copies 0 to 6) is that correct?


MSP430I2041: PRW_SERVER_MON Calibrator GUI tool - any pre-processing of data from MSP

$
0
0

Part Number:MSP430I2041

Support,

I am using the PWR_SERVER_MON and the associated Calibrator Tool GUI.  Does the Calibrator tool do any pre-processing of values sent from the MSP?  I'm interested in all the values sent but I'm more interested in what it does with the Power Factor?

Regards,

Marc

EVM430-FR6043: HSPLL unlock & output frequency error

$
0
0

Part Number:EVM430-FR6043

Hi

I have uploaded the untouched EVM firmware UltrasonicGasFR6043_02_20_00_07 via USB ez-fet (CCS Studio) to the EVM430FR6043, and using the USS GUI02_20_00_16, I get error 22 and 24 all the time (see picture) directly when I connect while the status is "Waiting for device". You can also see a picture of the jumper setup. 

Thanks in advance

Thibault

MSP430F2617: Internal Reference Calibration Data

$
0
0

Part Number:MSP430F2617

Hello,

I understand how to apply the calibration data to a reading. My question is, does the calibration cancel all or just a portion of the error attributable to the datasheet internal REF tolerance specification of +/-4%?

Thank you in advance.

Chris

MSP430FR2153: CS DCO frequency VCC limitations?

$
0
0

Part Number:MSP430FR2153

Hello MSP430 team,

I just wanted to confirm that since there is no Operating Area chart which shows the maximum CPU clock frequency by VCC, that there are no clock speed limitations imposed by the operating voltage?

In other words, could I run the MSP430FR2153 at 24 MHz with a VCC = 1.8? 

Thanks!

Munan

MSP430F5359: MSP430Flasher doesn't seem to handle the "-e ERASE_SEGMENT" qualifier correctly

$
0
0

Part Number:MSP430F5359

Normally, when you program a device using the MSP430Flasher (in my case, "MSP Flasher v1.3.18"),
the flasher erases the entire device prior to programming any of it.

(I ASSUME that this is the "-e ERASE_ALL |  Erase memory. Default: ERASE_ALL (INFO&MAIN)"
behavior that the usage message descries.)

Right now, though, I need to blast in two independent images that must simultaneously be
resident in Flash memory. So I tried the "-e ERASE_SEGMENT" qualifier which is described
by the usage message as "-e ERASE_SEGMENT | ERASE_SEGMENT: erase segment to
be programmed only". Sounds like just the ticket, doesn't it?

This had the desirable behavior that the entire device isn't erased and my two images ended
up co-resident in Flash memory. But in experimenting with the value at the RESET_VECTOR
address (0x0FFFE and 0x0FFFF) which all complete MSP430 images must share, I
noticed that the Flash Segment (Page) containing the RESET_VECTOR wasn't being erased
as each image loaded. Instead, it appears that the Flash is simply being re-programmed
without being erased.

I test this by making the RESET_VECTOR of one image 0xFF00 and the RESET_VECTOR
of the other image 0xAAAA.

When I blast in the first image (without any -e qualifier), the RESET_VECTOR location can be
read-back afterwards as the expected 0xFF00 and the verification step succeeds.

When I then blast in the second image (with the "-e ERASE_SEGMENT" qualifier), the
RESET_VECTOR location is read back afterwards as 0xAA00 and the verification step
fails.

That is, the second blast step didn't erase that word of Flash but it was able to program
additional bits in the word to zeroes.

Do you believe this qualifier is correctly implemented? I'd have expected the whole 512-byte
Flash Page containing RESET_VECTOR to have been erased by the second blast step.

Atlant

MSP430F5328: Sampling the REF voltage - why is it not measured at full scale by the ADC?

$
0
0

Part Number:MSP430F5328

I have an issue that I don't really understand.  If I sample the reference voltage and apply the reference calibration from the TLV structure should I read full scale, that is 0xFFF?

For example:

The two-volt reference is select as the reference:

 

Select the reference channel for the ADC to sample:

 

VeREF+ connected via REFOUT. VREF is also mapped out to the pins and measured at 1.96664

Selected reference for the ADC

Take 16 samples from the ADC at one second intervals and average them in fixed point.

Raw ADC samples average = 0xffc = 4092.  Converted to volts 2/4096 * 4092 = 1.998046875

Apply the reference calibration factor from the TLV of  0x7E9A to the raw ADC values and averaged yields 0xfd2 = 4050.  Converted to volts 2/4096 * 4050 = 1.9775390625

 

The specification for REF is 1.98 typical.

Why is the measured reference from the ADC not close or exactly 0xFFF when applying the REF TLV calibration?

Is the reference not 2 volts but rather 1.98 volts? If that is true, then why is it stated that “The measured values are normalized by 1.5/2.0/2.5 V before being stored into the TLV structure:”

MSP432P401R: P10.4 and P10.5 as PWM pins using analogWrite() function on Energia

$
0
0

Part Number:MSP432P401R

Hi,

I am trying to generate PWM signals on pins P10.4 and P10.5 using the analogWrite() function on Energia. On the datasheet, it's given that the pins act as Timer pins TA3.0 and TA3.1 and I assumed they can be used to generate the PWM signals before getting the boards fabricated, It seems I am able to generate PWMs only on the following pins as stated in the Launchpad manual:

P2_4
P2_5
P2_6
P2_7
P5_6
P5_7
P6_6
P6_7

Please let me know how to make the pins other than the ones in the list behave as analog outputs. 

Thank you!


MSP430F5329: About the current increase after returning from the UCS fail-safe state

$
0
0

Part Number:MSP430F5329

Hi,

I have question about of UCS Module Fail-Safe Operation.
We are facing the issue of increased power consumption due to UCS fail-safe operation.
We are using XT1 operation ins LF mode, when a clock failure occurs in XT1, the fail-safe function switches the clock source, and as a result only MSP430 has a current increase of about 4μA.

Although the oscillator failure has been removed and the DCOFFG, XT1LFOFFG, and OFIFG registers have been checked to confirm that the failure has been removed, a current increase of about 1μA can be seen compared to before the occurrence of the oscillator failure.

We predicted that the current consumption would be equal since the clock resources would return to their pre-fault state when the MSP430 recovers from the oscillator failure. Wwhat is the reason for the 1A current increase?

Best Regards,
H.U

MSP430FR2111: Factory programming service

$
0
0

Part Number:MSP430FR2111

Hi team,

I have some questions as below.

1. Do we have factory-programming service for MSP430FR2111?

2. If yes, what are the terms(minimum volume, etc)?

3. What are the recommended programming methods for mass production?

Linux/MSP430FR5994: Warning: Unable to identify and include MCU header

$
0
0

Part Number:MSP430FR5994

Tool/software: Linux

Hi everyone,

I am trying the basic LED blinking code on Linux OS, but when I want to compile it, this error comes out. Please help.

Thanks and regards,

Liew

MSP432E401Y: Current Consumption in Low Power Mode

EVM430-FR6043: Receiving waveform shape

$
0
0

Part Number:EVM430-FR6043

Hi

0m3/h

4m3/h

DNS Two spindles

DELTA ToF = 0...

Where is the configuration error?

At zero traffic, the data is very good.
At high flow rates, the shape of the accepted waveform will always change a lot. Why?

MSP430FR5969: MSP 430fr5969 Comparator

$
0
0

Part Number:MSP430FR5969

Hi 

I want to use comparator inputs in MSP430FR5969 for one of my application.

I want to use different comparator channels for different type of inputs, and ill keep my uC in sleep and will wake up on comparator interrupts.

So can i use different comparator channel with different reference voltage at same time.

Thanks

Vivek Pathak

MSP430FR6989: Implementing an auxiliary Serial2 using pins p2.1 and p2.0.

$
0
0

Part Number:MSP430FR6989

Hello,

I tried implementing another auxiliary serial using pins p2.1 and p2.0 which falls in UCA0 and are tx and rx pins as read in the datasheet.

I did the changes in pins_energia , hardware serial.h and in hardware serial.cpp in the cores folder.

And when used a code it gives an error: redeclaration of 'ring_buffer* rx_buffer_ptr' and same error continues with tx also so i changed the rx_buffer_ptr to ptr1 then it compiled successfully but the rx and tx did not work at all and i tried serial1 after these changes that worked but not serial2, i need to use serial2 with a wireless device which uses the tx and rx pin to transmit data.

  i attached the files please look into it and tell me where iam wrong and what changes need to be done.

Thank  you(Please visit the site to view this file)(Please visit the site to view this file)(Please visit the site to view this file)  


MSP430FG479: About power consumption of charge pump(LDC_A) at low power mode

$
0
0

Part Number:MSP430FG479

Hello,

 

Regarding to charge pump(LDC_A) on MSP430FG479, my customer is asking some question.

They are using MSP430FG479 for battery application and use LCD_A controller with charge pump..

They configure LCD_A module and charge pump as following at low power mode(LPM3).

(Low power mode :LPM3)

LCD_A module off:(LCDO=0)

Charge pump disable(LCDCPEN=0)

Charge pump voltage select(VLCDx) = 2.96V

 

In above case, when MSP430 is set to low power mode, power consumption of some MSP430 is became to high.

A ratio of high current consumption against total device(100set) is 10 (set) /100(set). (one MSP430 using/set)

・Normal power consumption(Vcc:3.3V) at LPM3: less than 1uA

・High power consumption(Vcc:3.3V) at LPM3: more than 10uA (40-50uA average)

 


 

They found out to cause high power consumption by power voltage(Vcc).

And they confirmed threshold range of power supply(Vcc) with high current consumption MSP430.

Please refer below table.

 

 

 

(Note)

・NG-min[V]:minimum voltage of increase current consumption

・NG-max[V]:maximum voltage of increase current consumption

・NG-range[mV]:voltage range of increase current consumption

・Above behavior is happened only in above supply voltage range on high power consumption MSP430.

(It isn’t happened except to above supply voltage range.)

・Regardless of supply voltage, above behavior isn’t happened on normal power consumption MSP430.

 

(Question)

(1) Is there any possible that this behavior will be caused on regulated charge pump/contrast control in MSP430?

If so, is there any possible cause?

(2) When power supply voltage(Vcc) closes to charge pump set voltage, how behavior does MSP430 become?

(3) Is there any possible that this behavior will be caused by individual specificity of device?.

 

Regards,

Tao 2199

MSP432P401R: MSP432P401M: Can't read the status of gpio pin

$
0
0

Part Number:MSP432P401R

Hello,

   Currently I am working on my own design msp432p401m controller board.I want to read the status of gpio pin without using interrupt when high signal (+3.3V) is getting. I'm using P7.0,P7.1,P7.2,P7.3,P6.4,P6.5,P6.6 and P6.7 as input but i can't read the status of these gpio pins except P7.0. I can use these pins as output but not use as input.

  I have checked the same gpio pins on launchpad also but still i got the same issue.

  I am attaching my code for reference. please tell me what i am doing wrong??

(Please visit the site to view this file)

CCS/MSP432P401R: CCS/MSP432P401R: Error initializing flash programming: Your XMS432P401R material is no longer supported

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

hi

I use solution:CC256xCQFN_EM+BOOST_CCEMADAPTER+MSP_EXP432P401R to evalue CC256C。

Now CC256xCQFN_EM is not insert),and MSP-EXP432P401R‘s version is’Rev 1.0' (Black).

 XDS test is successfull.

I download the  ANPDemo  with ccs8.0.0,the errro is as follow

CORTEX_M4_0: Error initializing flash programming: Your XMS432P401R material is no longer supported. We recommend you moving to production-quality MSP432P401R/M silicon by ordering samples at www.ti.com/product/MSP432P401R.

CORTEX_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
CORTEX_M4_0: File Loader: Verification failed: Values at address 0x00007FF0 do not match Please verify target memory and memory map.
CORTEX_M4_0: GEL: File: D:\CC256x MSP432 Bluetopia SDK\v4.2.1.1\Samples\ANPDemo\ccs\Debug\ANPDemo.out: a data verification error occurred, file load failed.

I am hoping someone has a solution

MSP430G2553: Issue with Internal pullup resistor

$
0
0

Part Number:MSP430G2553

Hi all,

 I have tried to implement a positive logic in an onboard switch(P1.3) in MSP430G2 launchpad, I want it to be done by enabling the internal pulldown resistor, I tried the code below but it didn't work as I expect,

can anybody provide a solution for this issue,

int main()
{
clock_init();  // disable watchdog timer
P1DIR = 0X00;
P1DIR |= BIT0 + BIT6; //P1.0 and P1.6 output
P1OUT &= ~BIT3;
P1REN |=BIT3;
//int count =0;
P1OUT |=BIT0;
while(1)
{
if(!(P1IN & BIT3))
{
P1OUT ^= BIT6;
delay_ms(100);
}
else
{
P1OUT &= ~BIT6;
P1OUT ^= BIT0;
delay_ms(100);
}
}
return(0);
}
The logic I tried to implement was when the switch is pressed P1.0 should blink

CCS/MSP430G2553: How can enable Timer0 A3 only for 1 sec.

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

How can enable Timer0 A3 only for 1 sec, to measure the  RPM  of BLDC motor by using hall effect sensor. I have three digital input value, by using this three digital input value at time measure the rotation of motor in second.

Viewing all 21946 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>