EmbeddedRelated.com
Memfault Beyond the Launch

MSP430f449 led programming doubt

Started by Anupreethi in MSP43012 years ago 2 replies

Hi , I am a beginner of MSP430 I have an header board for MSP430f449. As i am a beginner i tried to off the LED which is glowing using the...

Hi , I am a beginner of MSP430 I have an header board for MSP430f449. As i am a beginner i tried to off the LED which is glowing using the following program. The programmer i am using is jtag tiny.and the softeare i am using is IAR workbench i dint get any error for the below program #include int main( void ) { // Stop watchdog timer to prevent time out reset WD


ADC12 problem

Started by smok...@yahoo.com in MSP43014 years ago 4 replies

My board is olimex MSP430-P1611 with MSP430F1611. I'm trying to work with ADC12 . HEre is the code i use. Taken from IT code...

My board is olimex MSP430-P1611 with MSP430F1611. I'm trying to work with ADC12 . HEre is the code i use. Taken from IT code samples. #include // Specific device void main(void) { volatile unsigned int i; WDTCTL = WDTPW+WDTHOLD; // Stop watchdog timer P6SEL |= 0x01; // Enable A/D channel A0 ADC12CTL0 = ADC12ON+SHT0_2+REFON+REF2...


reset interrupt vector

Started by quaratie in MSP43021 years ago 2 replies

Could someone tell me if it is possible to reset the processor, i.e. call the reset interrupt vector from my program. I do not want to use the...

Could someone tell me if it is possible to reset the processor, i.e. call the reset interrupt vector from my program. I do not want to use the watchdog timer just yet. Thanks in advance


i'm going into LPM4 :)

Started by les_kamil in MSP43018 years ago 2 replies

Hi! it's my first project with MSP430 (MSP430f149) till now i worked only with '51 family :) I designed that on and off of my device is made...

Hi! it's my first project with MSP430 (MSP430f149) till now i worked only with '51 family :) I designed that on and off of my device is made by interrupt from pins (keyboard). when device is off, MSP sets all pins into input state, off ADC12, off internal ref etc. then i'm going into LPM4 in interrupt.when i press 'on ' key, i'm simply make POR by watchdog and my device starts:) all work...


Timer & UART with Audio

Started by manu singh in MSP43013 years ago 3 replies

Dear All, I am working with MSP430F5419. I am writing program where i have to use all timers of MSP430. RTC is using for Real time clock....

Dear All, I am working with MSP430F5419. I am writing program where i have to use all timers of MSP430. RTC is using for Real time clock. Watchdog using for switch debounce. Apart from that i m using Audio playback for messages (using timer0) and UART with 115200bps. My problem start when i an enabling any other timer then program hangs after some time. Can anybody help me on how to enable all ...


Reset button not working

Started by Karl Martin Lund in MSP43017 years ago 1 reply

Dear all, I'm developing an application based on a msp430f169. A reset button is a part of the design, but nothing happens when the reset...

Dear all, I'm developing an application based on a msp430f169. A reset button is a part of the design, but nothing happens when the reset button is operated, the program just keeps on running. The reset button is connected to pin 58, RST/NMI. I don't use the watchdog timer, so one of the first lines in the program is WDTCTL = WDTPW + WDTHOLD; As far as I read the documentation, bit...


Unstable Clock

Started by "paddu.koti" in MSP43016 years ago 2 replies

Hi, I am using the below code to test the SMCLK clock in MSP430F413,but when I checked it in the oscilloscope the SMCLK seems to be...

Hi, I am using the below code to test the SMCLK clock in MSP430F413,but when I checked it in the oscilloscope the SMCLK seems to be unstable, it flactuates between 1.9MHz and 1.24Mhz. How do I get a stable clock frequency? WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer SCFI0 |= FN_2; // Set DCO operating range FLL_CTL0 |= XCAP14PF; // Set load capaci...


Switch lazy on Lunchpad, or wrong way to programm?

Started by ulix_s in MSP43012 years ago 6 replies

Hello everybodey, after I fixed my problem with the LED's turning on, my next programm code workes. But the switch doesn't everytime turns on...

Hello everybodey, after I fixed my problem with the LED's turning on, my next programm code workes. But the switch doesn't everytime turns on the led, is this the right way to programm this? #include int main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P1OUT = 0; P1DIR = BIT0; while (1) { whi


[MSP430] BOD and Watchdogs

Started by Raymond Keefe in MSP43020 years ago 1 reply

Hi, I recently did a project with tehy MSP430F413 which has onboard brown out detection (BOD) and also an onboard watchdog timer. But both...

Hi, I recently did a project with tehy MSP430F413 which has onboard brown out detection (BOD) and also an onboard watchdog timer. But both are software enabled by the code and are not active at initial power up. They are only active after the device successfully boots and runs the startup code. The result was that my target always booted correctly off the FET module but only started corr


Changing the frequency of MCLK on MSP430FG4618

Started by kahunwa in MSP43011 years ago 1 reply

Hello! I am trying to to change the frequency of MCLK (to 8.0 MHz) on the MSP430FG4618. But I cant get it to exactly to 8.0 MHz. According to my...

Hello! I am trying to to change the frequency of MCLK (to 8.0 MHz) on the MSP430FG4618. But I cant get it to exactly to 8.0 MHz. According to my calculations, N should be 121, but am having to hard time figuring it out. Here is my code: #include void main (void) { WDTCTL = WDTHOLD | WDTPW; //Stop Watchdog Timer P1DIR |= BIT1; //set port pin P1.1 to output directi


Help with ADC

Started by naray23 in MSP43014 years ago 2 replies

Hi all I am a newbie to MSP430 and currnetly working on the MSP430F5438 experimenters board.I am trying to write an ADC code but it is not...

Hi all I am a newbie to MSP430 and currnetly working on the MSP430F5438 experimenters board.I am trying to write an ADC code but it is not worrking.I am trying to read the accelerometer on the board. Here is the code void ADC_Initialise(void) { WDTCTL = WDTPW+WDTHOLD; // Stop watchdog timer P6DIR |=0x01; P6OUT |=0x01; //Switch on VCC of acclerometer P6SEL |= 0x0006; ...


LPM4 and LFXT1

Started by "cl.buchilly" in MSP43017 years ago 12 replies

When I use the LPM4 mode with a msp430F417 I have no problem to wake-up the processor but when I use the same software with a msp430F437, the...

When I use the LPM4 mode with a msp430F417 I have no problem to wake-up the processor but when I use the same software with a msp430F437, the LFXT1 oscillator no longer work properly after wake-up from LPM4. The only way to restart it properly is to power off the processor. More details: The quartz connected to XIN / Xout is a 32kHz. After LPM4, I do a PUC using the Watchdog register. I h...


Timer code help

Started by Hithesh in MSP43013 years ago 4 replies

Hi group, I am trying to write my first timer code on the ez430F2013 USB board using IAR kickstart. The timer is Timer_A Clock input is...

Hi group, I am trying to write my first timer code on the ez430F2013 USB board using IAR kickstart. The timer is Timer_A Clock input is VLO No division. Timer is configured to count UP, upto 32768-1 When I load the code, LED lights up, but doesn't toggle. Any help? #include "msp430.h" int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer BCSCTL3 |...


Problem with running when not connected to PC

Started by RyanK in MSP43013 years ago 11 replies

So I have some code running well when in debug mode connected to my computer. I then unplug the usb cable from the computer and plug it into a...

So I have some code running well when in debug mode connected to my computer. I then unplug the usb cable from the computer and plug it into a wall usb charger and the code behaves differently. Still using the launchpad, checked the voltage and its correct. Several if statements as well as the watchdog timer setup as an interval timer are not working. Where should I start with trying to work t...


MSP430F149: Feed SMCLK using LFXT1CLK

Started by Jon Garcia de Salazar Bilbao in MSP43015 years ago 3 replies

Hi everyone,=20=20=20=20=20=20 I=E2=80=99m using MSP430F149. I have a 32KHz xtal in LFXT1CTL and no xtal i= n XT2CTL. I=E2=80=99m already...

Hi everyone,=20=20=20=20=20=20 I=E2=80=99m using MSP430F149. I have a 32KHz xtal in LFXT1CTL and no xtal i= n XT2CTL. I=E2=80=99m already using ACLK (at 32.768KHz) to feed both Timer_= A and Timer_B. I want to use my watchdog with a freq lower than 1Hz so I th= ought I would feed it using SMCLK using LFXT1CLK as source. So I checked th= e user=E2=80=99s guide and everything looked ok: =2...


running a MSP430F1121 with a 32khz watch crystal

Started by Jan Stumpf in MSP43020 years ago 3 replies

Hi! I have problems to run the MSP430F1121 with a 32khz watch crystal. It oscillates only with an amplitude of 300mV around VCC. I have...

Hi! I have problems to run the MSP430F1121 with a 32khz watch crystal. It oscillates only with an amplitude of 300mV around VCC. I have connected the crystal without external capacitators and used the following code to activate the LF mode : void vClockInit( void ){ WDTCTL = WDTPW + WDTHOLD; /* disable Watchdog */ BCSCTL1 &= ~0x30; //select low-frequencymode,


msp clock

Started by Claro Louie in MSP43017 years ago 1 reply

hi guys, may i ask your advice about this code below? how can you say it has an interval of 27ms? isn't it that the "32" /110010 means...

hi guys, may i ask your advice about this code below? how can you say it has an interval of 27ms? isn't it that the "32" /110010 means select NMI function;select interval timer mode;SMCLK as clock source;watchdog clock source 512 hz. default dco=1.2Mhz. this is a sample code i got from TI.com. WDTCTL = WDT_MDLY_32; thanks so much guys claro ----------------------...


MSP430F1481 hang ups

Started by rwil...@technolog.com in MSP43014 years ago 15 replies

Hi Group, First post so I hope you can help me. I have a battery powered product that uses an MSP430F1481 as a pulse counter, the code is...

Hi Group, First post so I hope you can help me. I have a battery powered product that uses an MSP430F1481 as a pulse counter, the code is written entirely in assembly. The MSP spends 95% of its time in LPM3 with only low frequency pulses on a couple of digital GPIO inputs and a 1Hz Real-Time-Clock interrupt waking the CPU up from LPM3. The Real-Time-Cock is provided by the watchdog configure...


About WDT in timer mode

Started by in MSP43020 years ago 9 replies

I have setup the WDT as watchdog mode. In this mode however, when the unit resets because of a wdt, the values in the variables are lost. ...

I have setup the WDT as watchdog mode. In this mode however, when the unit resets because of a wdt, the values in the variables are lost. Therefore, what I would like to do is put the wdt in interval timer mode, so that if the code ever jumps to the interrupt, I can save the current data and reset the mcu. However, I can not seem to clear the counter in interval timer mode, the resetting


TimerA question

Started by in MSP43021 years ago 1 reply

Hi, I am using MSP430F1132, and set up timera so it gives interrupt every second: WDTCTL = WDTHOLD | WDTPW; // Stop watchdog. TACTL =...

Hi, I am using MSP430F1132, and set up timera so it gives interrupt every second: WDTCTL = WDTHOLD | WDTPW; // Stop watchdog. TACTL = TASSEL0 | TACLR; // ACKL for TIMER_A CCTL0 |= CCIE; // Enable CCR0 interrupt CCR0 = 0x7FFF; // Load CCR0 with 32,767 TACTL |= MC0; // Start TA in "up to CCR0" mode I also want to get an interrupt



Memfault Beyond the Launch