EmbeddedRelated.com
Memfault Beyond the Launch

Configuration of SMCLK output

Started by ssk2k4 in MSP43015 years ago 6 replies

Hello forum members, I am using following code to output ACLK, SMCLK and MCLK on corresponding port pins. void OutputMCLK (void) {...

Hello forum members, I am using following code to output ACLK, SMCLK and MCLK on corresponding port pins. void OutputMCLK (void) { P5DIR |= 0x10; // Select MCLK as output P5SEL |= 0x10; // Select system functionality } void OutputSMCLK (void) { P5DIR |= 0x20; // Select SMCLK as output P5SEL |= 0x20; // Select system functionality } void OutputACLK (void) { P5D...


__delay_cycles() problem

Started by meistak in MSP43015 years ago 2 replies

Hello I am using the MSP430 F1611 with the Crossworks Compiler. The MCLK is 7.3728 MHz. So when I use __delay_cycles(737280) i expected a...

Hello I am using the MSP430 F1611 with the Crossworks Compiler. The MCLK is 7.3728 MHz. So when I use __delay_cycles(737280) i expected a delay of 100 ms. Instead the delay is 273 ms (measured with the timer and the 32.768 kHz clock). Interrupts are switched off. Did I understand something wrong here? Best regards MeistaK ------------------------------------


Timer B question

Started by kelsonbatista in MSP43013 years ago 11 replies

Hi All I need to implement 2 timers (B), one running each second and another 1KHz, but I am not getting the second working properly....

Hi All I need to implement 2 timers (B), one running each second and another 1KHz, but I am not getting the second working properly. Source: MCLK ==> 8MHz ACLK ==> 32KHz Timer B Setup: TBCTL = TBSSEL_1 + ID_0 + MC_1 + TBIE + TBCLR; TBCCR0 = 32768; TBCCTL0 |= CCIE; TBCCR1 = 32; TBCCTL1 |= CCIE; The TBC


DCO calibration

Started by SBurck in MSP43022 years ago 9 replies

I'm on a project where we have an MSP430F149 - and a need to use a UART at 115,200kpbs. To enable this, we took a 16,392MHz signal on the...

I'm on a project where we have an MSP430F149 - and a need to use a UART at 115,200kpbs. To enable this, we took a 16,392MHz signal on the board, divided it by 4, and gave it to the MCU as its MCLK or SMCLK (depending on the version), and as its UART 0 clock, to get the required baud rate. We do this, and it works fine. It is the ONLY reason we need the 4MHz signal - we have a 32KHz c


IgnoRe: bis.b #SELM1+SELM0,&BCSCTL2

Started by totalneuro in MSP43019 years ago 1 reply

Please help me understand why the processor works with the DCOCLK, if the MCLK is set to the LFXT1CLK: Tested on MSP430 F123, F1232,...

Please help me understand why the processor works with the DCOCLK, if the MCLK is set to the LFXT1CLK: Tested on MSP430 F123, F1232, F1011 LFXT1CLK = 8 MHz (I can see ACLK on P2.0) DCOCLK = 7xx KHz (Can be seen disconnecting JTAG, on P1.4) Program: ;------------------------------------------------------------------------------ ORG 01000h


A/D conversion

Started by hawkran in MSP43017 years ago 3 replies

Hi to all I have been stuck up with the problem of sampling an input signal at 8000 times per second on a MSP430F169 What i do is...

Hi to all I have been stuck up with the problem of sampling an input signal at 8000 times per second on a MSP430F169 What i do is generate an interrupt at 0.125 miil second ( equivalent to 8000 triggers per second) and i run a ISR routine where a/d conversion is performed and transferred to DAC . My SMCLK and MCLK are 2MHz and SMCLK is used as ADC12CLK.When i see the output the freq...


about lcd interfacing

Started by aniket patwardhan in MSP43015 years ago 10 replies

hello i am currently working on msp430f1611 and interfacing it with 5V lcd which is of 44780 type in 4 bit mode.I have written...

hello i am currently working on msp430f1611 and interfacing it with 5V lcd which is of 44780 type in 4 bit mode.I have written the functions for writing nibbles into mc.I could display the characters on lcd but the delay placed in between is not working.Please guide me about time specifications and clock to be used i.e.mclk,smclk. I m using 32.768 khz crystal. Thanks Aniket --...


MSP430F4371 FFL + Clock Module

Started by Ahmed in MSP43013 years ago 1 reply

Hey everyone, This is my first time working with the TI MSP430 Family. I am trying to work my way around the MSP430's "FLL+ Clock...

Hey everyone, This is my first time working with the TI MSP430 Family. I am trying to work my way around the MSP430's "FLL+ Clock Module". Given below is a piece of code that my predecessor wrote. The TI Family user guide says upon PUC the MCLK is 32 times ACLK (32.768KHz). ---------------------------------------------------------------------- FLL_CTL0 |= XCAP18PF; ...


Problems with XT2 at F449

Started by gerdknese in MSP43020 years ago 6 replies

Hi Folks, sorry about the german in my first message. I need your help with a problem I have. I've got a MSP430F449 on the...

Hi Folks, sorry about the german in my first message. I need your help with a problem I have. I've got a MSP430F449 on the Olimex-Headerboard with a 32kHz XTAL at XT1 and a 8MHz XTAL at XT2 and I want this device to run with 8MHz MCLK but it won't do so. I use the ICC430 IDE from ImageCraft to compile my code and the sourcecode has been transfered to the MSP via JTAG without any error.


LPM3 Mode at different DCO frequencies

Started by Rahul Bajaj in MSP43016 years ago 9 replies

Hello, I am using MSP430F169 MCLKSource(DCO); //use DCO as MCLK Source setTimerA0(ACLK_SOURCE); //Source...

Hello, I am using MSP430F169 MCLKSource(DCO); //use DCO as MCLK Source setTimerA0(ACLK_SOURCE); //Source Timer A from ACLK _EINT(); //Enable interrupts __bis_SR_register(LPM3_bits); //Sleep Mode3 Whenever a timer interrupt comes, MSP wakes up but this waking up time depends on frequency of DCO ...


SD16 ISR problem

Started by Hoai Anh in MSP43014 years ago

Hi all, I have a piece of code and dont know why it does not run. Clock is as default (1Mhz) void SD16Setup (void) { SD16CTL = SD16REFON +...

Hi all, I have a piece of code and dont know why it does not run. Clock is as default (1Mhz) void SD16Setup (void) { SD16CTL = SD16REFON + SD16SSEL_0; // 1.2V ref, MCLK SD16INCTL0 = SD16GAIN_32 + SD16INCH_4 + SD16INTDLY_0; // x gain, channel A4+/- SD16AE = SD16AE1 + SD16AE2; //Enable analog input A4+, A4- SD16CCTL0 = SD16IE + SD16DF;// Continuous conv, interrupt and bipolar...


Re: Increase master clock of MSP430F5438

Started by shet...@yahoo.com in MSP43012 years ago 2 replies

Hello everyone, i am using MSP430F5438 Controller for the project. i want to calculate the time period of the external signal which is given...

Hello everyone, i am using MSP430F5438 Controller for the project. i want to calculate the time period of the external signal which is given to the input of the TIMER B0.can anyone help me. can anyone please tel me the Frequency values of MCLK,ACLK,SMCLK when 32 KHz crystal is connected to the MSP430F5438 Controller. please... thank you. Hi guys, > > I try to increase the master clo


Simple DCO question...

Started by Gabriel in MSP43021 years ago 5 replies

Greetings, Just got confused with DCO specs and XTAL usage. I read in MSP430F149 datasheet that it supports 8Mhz a external HF XTal. Is...

Greetings, Just got confused with DCO specs and XTAL usage. I read in MSP430F149 datasheet that it supports 8Mhz a external HF XTal. Is it possible to archive the same speed using DCO with the LF 32kHz XTAL? The maximum MCLK I got was 4.8Mhz on my system. Gabriel


DCO characteristics

Started by tom_torfs in MSP43019 years ago 7 replies

Everyone, In an MSP430F149-based design, I need to ditch my 8MHz XTAL from XT2 while maintaining a clock of around 8 MHz from the DCO for...

Everyone, In an MSP430F149-based design, I need to ditch my 8MHz XTAL from XT2 while maintaining a clock of around 8 MHz from the DCO for MCLK. I still have a 32.768kHx XTAL on XT1 for clocking critical timing stuff (such as sample rate). I have a 100K 1% external resistor on P2.5, which according to the user guide will allow me to boost the DCO upto 10MHz, with a pretty good temperature


Discontinuties in SPI transmission

Started by frb78 in MSP43020 years ago 2 replies

Hi, I'm currently designing a little RF transceiver and I have a little probleme with SPI transmission. I try to sent many consecutive 8 bit...

Hi, I'm currently designing a little RF transceiver and I have a little probleme with SPI transmission. I try to sent many consecutive 8 bit words to a device but between each transmission of the U0TXBUF (8 bit), a delay of about 2 cycle clock [@ baud rate, which is very slow (8khz) compare to the MCLK (750khz)] occurs. I use interrupt from USART0TX_VECTOR to refresh the U0TXBUF. Can so


Running at 3.3V @8 MHz

Started by markcrowptm in MSP43017 years ago 11 replies

On my project, VCC can run from 1.8V to 3.3V and my oscillator is 8 MHz. Unfortunately I'm not in a position make any hardware changes. The...

On my project, VCC can run from 1.8V to 3.3V and my oscillator is 8 MHz. Unfortunately I'm not in a position make any hardware changes. The data sheet for the MSP430F1611 seems to indicate that the micro can only run at 8 MHz if VCC is 3.6V. It indicates I can run with my VCC issues at 4 MHz. Can I then simply program the clock control register BCSCTL2 to divide MCLK by 2 and solve ...


Disabling DCO

Started by Harish Kumar in MSP43016 years ago 4 replies

Hi I would like to know if there is anyway of disabling DCO (for saving power) without entering any of the predefined low power modes. I...

Hi I would like to know if there is anyway of disabling DCO (for saving power) without entering any of the predefined low power modes. I do not want to switch off the CPU but only the DCO. I have sourced the MCLK from VLOCLK and set SCG0 and SCG1 to 1. I have attached the code below. void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT P1DIR |= 0x81;...


Xternal crystal

Started by sammsp430 in MSP43020 years ago 2 replies

hi all, have mounted an external 8 Mhz crystal,but it doenst seem to be working.the MCLK gives me the default DCO clk which is apprx...

hi all, have mounted an external 8 Mhz crystal,but it doenst seem to be working.the MCLK gives me the default DCO clk which is apprx 750Khz,and the external crytal isnt activated,i dont see any oscillations. #include "msp430x13x.h" ORG 0F000h RESET mov.w #300h,SP mov.w #WDTPW+WDTHOLD,&WDTCTL


DCO calibration question

Started by William Sell in MSP43017 years ago 7 replies

I have a new product that uses the LF 32Khz crystal. I looked at the code that sets the DCO frequency (from the TI examples) and noted the loop...

I have a new product that uses the LF 32Khz crystal. I looked at the code that sets the DCO frequency (from the TI examples) and noted the loop exits when the compare equals the target count. So my question is, is the granularity of the DCO registers good enough to make sure that the target count will be met. In other words, you set the capture to read pulses from the MCLK every 8 ticks of...


MSP430 DCO operation

Started by mjruley in MSP43022 years ago 4 replies

I am interested in using the DCO for MCLK and SMCLK with a 32 KHz crystal generating an interrupt on TIMERB . How much software overhead is...

I am interested in using the DCO for MCLK and SMCLK with a 32 KHz crystal generating an interrupt on TIMERB . How much software overhead is needed to maintain lock for the DCO with the 32 KHz interrupt? Ideally, the DCO will be off most of the time so how time consuming is the re-synchronization effort? We are planning on using the DCO clock to do precise timing measurements using TIMER



Memfault Beyond the Launch