EmbeddedRelated.com

DMA problems with F2619

Started by herlhayashi in MSP43015 years ago 5 replies

Hello everyone, I'm trying to use the DMA to send a string out to my UART and unfortunately, while the example code that TI provides works, my...

Hello everyone, I'm trying to use the DMA to send a string out to my UART and unfortunately, while the example code that TI provides works, my code does not. #include #include #include "msp430x26x.h" #define BUFFER_SIZE 16 char uart_out[2*BUFFER_SIZE+1]; int main( void ) { int i; // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOL


Using Lowinit to speed up processor to make startup faster?

Started by one00100100 in MSP43011 years ago 1 reply

Does anyone know if it is possible to speed up startup of the MSP430F5438 chip by increasing the processor speed to 16 mHz in the Lowinit...

Does anyone know if it is possible to speed up startup of the MSP430F5438 chip by increasing the processor speed to 16 mHz in the Lowinit function? I am stopping the watchdog timer there but don't know if it is possible to speed up the processor. Also, is it possible to choose not to initialize the segments here and then later in my startup code, initialize all the variables that need initia...


Illegal command reboot fails

Started by Matti Ruusunen in MSP43020 years ago 6 replies

Hejsan folks, I have crashed into situation where compiler produces code that in one instance works and in the other does not. The difference...

Hejsan folks, I have crashed into situation where compiler produces code that in one instance works and in the other does not. The difference between the codes is a string inside a sprintf-command. This shows up elsewhere in function by that watchdog reset stops working/reboot sequence fails in illegal command.(!!!!) This difference between the codes is very trivial, should not affect the


My MSP430F5528 CPU gets stuck several times a day

Started by veraleh in MSP43012 years ago 6 replies

Hello Group, I have a very weird problem. I am using an MSP430F5528 CPU, running the FLL at 8MHz (fixed, we don't change it). The system has...

Hello Group, I have a very weird problem. I am using an MSP430F5528 CPU, running the FLL at 8MHz (fixed, we don't change it). The system has a 3.0V LDO with 250mA current limitation. From time to time (4 to 12 times in 24 hours), the CPU will become stuck and only an external NMI will be able to reset the device. We have an external circuit that acts like a watchdog, if there is no edge c...


RTC for MSP430f5528

Started by Abhay in MSP43013 years ago

Hi Intention is to build a simple RTC block . Code: void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer ...

Hi Intention is to build a simple RTC block . Code: void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer RTCCTL1 = BIT7+BIT6+BIT5; // RTC enable, BCD mode and Hold RTCCTL1 &= ~RTCRDY; //Reset Ready // Init time RTCSEC = 0x00; // Set Seconds RTCMIN = 0x00; // Set Minutes ...


Timer B capture mode with overflow count

Started by Gustavo Lima in MSP43014 years ago 6 replies

Hi, I need to measure the time between two external signals. These signals have big periods like 1 or 2 seconds. This way I'm trying to use...

Hi, I need to measure the time between two external signals. These signals have big periods like 1 or 2 seconds. This way I'm trying to use the Timer B in Capture mode with counting of its overflows. Please look at my code: #include "in430.h" #include int overflow_count = 0; void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer //LED CONFIGURATION P1D


How to setup MCLK/SMCLK with FLL+?

Started by To chi kin in MSP43021 years ago

Dear all, I have a problem to setup the MCLK and SMCLK with FLL+ for MSP430F413, would you give me a help? The following is the code that I...

Dear all, I have a problem to setup the MCLK and SMCLK with FLL+ for MSP430F413, would you give me a help? The following is the code that I used to test the MCLK/SMCLK setting. I just try to setup the clock and then output it to P1.5 and P1.1 to check the frequency. And actually, I need a ~2 MHz MCLK void main( void ) { WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer SCFI0 |= FN_4


LED On & Off for two interrupt

Started by shskurkra in MSP43014 years ago 10 replies

Working on a LED to switch On and Off for two interrupt. First for switch, second for timer interrupt. Tried to figure out the error, but could...

Working on a LED to switch On and Off for two interrupt. First for switch, second for timer interrupt. Tried to figure out the error, but could figure. The code does not produce the desired output. Can anyone help me. Here is the code. Thank you. #include void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P2SEL = 0x00;


Reg:MSP430F2370-lcd

Started by ssundari in MSP43016 years ago 4 replies

Hi Friends, I have connected HITACHI lcd parallel with MSP430F2370.In my code controll signals are working fine but the data not yet...

Hi Friends, I have connected HITACHI lcd parallel with MSP430F2370.In my code controll signals are working fine but the data not yet display on LCD.Any one help me to find the error in my code and give me suggestion to correct the error. int main( void ) { //int i=0; //unsigned char data[] = {"HI GOOD MORNING"}; // Stop watchdog timer to prevent time out reset WDTCTL =...


problems with program

Started by msp430 nascimento in MSP43017 years ago 4 replies

Hi I started to programmer MSP430f2012 this saturday, and I found problems to compile the following program: #include "msp430x20x2.h" //...

Hi I started to programmer MSP430f2012 this saturday, and I found problems to compile the following program: #include "msp430x20x2.h" // delay_ms(void) ; #define LED P1OUT_BIT.P1OUT_0 #define botao P1IN_bit.P1IN_1 void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1DIR |= 0x01; // Set P1.0 to output direction while(1) { IF (botao) LED=0; else LED=1; } } I would l...


EMI + WDT BIG Problem

Started by lukasz_krysiewicz in MSP43017 years ago 8 replies

Hi all. We heve in company many devices witch MSP430. But actually we have = a big problem. When EMI are big (electric industry) procesor is...

Hi all. We heve in company many devices witch MSP430. But actually we have = a big problem. When EMI are big (electric industry) procesor is hand on.= In program of course is setting WDT in watchdog mode, but this circuit NOT= restart a procesor. Processor is DEAD and clients are Very Angry. Anybody have some experience witch MSP430 in EMI ?=20 Thanks for advice !!! --------------...


bug on code ?!?!

Started by edson burgo in MSP43016 years ago 8 replies

I'm working with msp430F2013 making a code, i'm using IAR Workbench to make and debug the code. Part of this code consist in a delayer...

I'm working with msp430F2013 making a code, i'm using IAR Workbench to make and debug the code. Part of this code consist in a delayer implement, and i used watchdog to make this Basically i used the RTI to increment a variable and test this variable in main code, when the test is true things would be done. The problem: I monitored the debug step by step and monitored the value of the v...


security violation

Started by zjeriet in MSP43015 years ago

Hello, On my MSP430F5438 I've installed a watchdog timer. For test purposes I let this WDT timeout after 8secs. When it restarts I check...

Hello, On my MSP430F5438 I've installed a watchdog timer. For test purposes I let this WDT timeout after 8secs. When it restarts I check SYSRSTIV (special vector to detect RESET resources). The vector indicates that a WDT timeout was the source of reset(PUC). Then my program starts but gets immediately reset due to a security violation. The SYSRSTIV contains the 0x0A code which is a security vi...


Software-generated power-up clear without setting WDTIFG

Started by Noah Treuhaft in MSP43020 years ago 2 replies

I'm trying to generate a power-up clear (PUC) on my MSP430F149 from software, and to do so without setting the WDTIFG bit in IFG1. That last...

I'm trying to generate a power-up clear (PUC) on my MSP430F149 from software, and to do so without setting the WDTIFG bit in IFG1. That last piece is important because I'd like use WDTIFG to distinguish between watchdog-generated and software-generated PUCs. I had hoped to accomplish this with an FCTLx security key violation, but I've found that this action always sets WDTIFG in addition t


lpm3 power and timers

Started by asok_subra in MSP43016 years ago 3 replies

I am new to msp430. I am wondering if we are in lpm3 mode and timer_a running, how much power consumption it will take for a typical msp430. The...

I am new to msp430. I am wondering if we are in lpm3 mode and timer_a running, how much power consumption it will take for a typical msp430. The data sheets seem to say a typical of 1 ua in lpm3 mode including watchdog timer running, but does not seem to say if that figure will hold if timer_a is also running. Thanks Asok ------------------------------------


Re: Question about Watchdog as interval timer

Started by bb_stefan in MSP43016 years ago 3 replies

I don't really know, what your goal is... ? But try this: Reset the WDT-Interrupt Flag in main(): ... IFG1 &=~WDTIFG;

I don't really know, what your goal is... ? But try this: Reset the WDT-Interrupt Flag in main(): ... IFG1 &=~WDTIFG;


how to debug reset caused by WDTCTL security key violation

Started by Xiaohui Liu in MSP43011 years ago 29 replies

Hi everyone, I'm working on a sensor project which uses TelosB based on msp430f1611 running TinyOS . My program is reset some time after...

Hi everyone, I'm working on a sensor project which uses TelosB based on msp430f1611 running TinyOS . My program is reset some time after boot up. After the PUC reset, IFG1 is found with WDTIFG bit set, indicating the watchdog timer initiates the reset. This can happen under two cases: 1) Watch


Using the Timer A for an RTC

Started by ken_and_wanda in MSP43020 years ago 2 replies

Here's my C code: [code] // Set main clock (MCLK) to 2.45 MHz sync'd to the 32 KHz crystal. WDTCTL = WDTPW + WDTHOLD; // Stop watchdog...

Here's my C code: [code] // Set main clock (MCLK) to 2.45 MHz sync'd to the 32 KHz crystal. WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer FLL_CTL0 |= XCAP18PF; // set load capacitance for xtal SCFI0 |= FN_2; // x2 DCO, 4MHz nominal DCO SCFQCTL = 74; // (74+1) x 32768 = 2.45Mhz // Set up Timer A to generate an interrupt every 32768 ACLK cycles (every 1 second). WDTCTL = WDTPW + WDTHO...


IAR weird signed long long behavior

Started by Gabriel in MSP43018 years ago 16 replies

Hello everyone I tried this simple code in IAR --------- void main(void) { signed long long myvar; WDTCTL = WDTPW + WDTHOLD; ...

Hello everyone I tried this simple code in IAR --------- void main(void) { signed long long myvar; WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer myvar = 948125391; if (myvar > 2147483647) myvar = 2147483647; else if (myvar < -2147483648) myvar = -2147483648; for(;;) } --------- For some reason IAR fails in the (myvar < -2147483648) te