Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | Getting Timer_A3 to run..


Advertise Here

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

Getting Timer_A3 to run.. - umeraq - Sep 11 10:43:12 2009

Hi all Im new to using the msp430 and this yahoo group.

Ive just started playing with the msp's recently.. currently using an MSP430F437 controler.. I cant seem to get the TimerA to run.. So far, I have accessed the ports etc etc... but when i configure the TACTL register of the timerA and run it.. for some odd reason TAR does not start counting .... I have a feeling its because I havent configured the a clock source.. Im using a 32768 Hz watch crystal want to know how to get ACLK,MCLK and SMCLK to run.. I feel once I have ACLK somehow configured ... TAR will start running. BTW .. I am using IAR Embedded work bench and using its simulator to see if TAR runs.... I also have a debugger/emulator .. Any help would be appreciated..

Thanks

Umer
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: Getting Timer_A3 to run.. - old_cow_yellow - Sep 11 11:02:47 2009

The world is not perfect. The simulator cannot simulate a lot of things, including the ACLK and the TimerA. If you have the real MSP430F437, why don't you use it?

--- In m...@yahoogroups.com, "umeraq" wrote:
>
> Hi all Im new to using the msp430 and this yahoo group.
>
> Ive just started playing with the msp's recently.. currently using an MSP430F437 controler.. I cant seem to get the TimerA to run.. So far, I have accessed the ports etc etc... but when i configure the TACTL register of the timerA and run it.. for some odd reason TAR does not start counting .... I have a feeling its because I havent configured the a clock source.. Im using a 32768 Hz watch crystal want to know how to get ACLK,MCLK and SMCLK to run.. I feel once I have ACLK somehow configured ... TAR will start running. BTW .. I am using IAR Embedded work bench and using its simulator to see if TAR runs.... I also have a debugger/emulator .. Any help would be appreciated..
>
> Thanks
>
> Umer
>
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Getting Timer_A3 to run.. - umeraq - Sep 11 11:35:36 2009

--- In m...@yahoogroups.com, "old_cow_yellow" wrote:
>
> The world is not perfect. The simulator cannot simulate a lot of things, including the ACLK and the TimerA. If you have the real MSP430F437, why don't you use it?
----------------------------------------------------
I'll use the debugger first thing tomorrow morning.. hook up the MSP on the target board and debug the code by single stepping it.. would that work ?

PS.. I havent configured the DCO and other clock options.. my question is : If i dont change any parameters, will ACLK or MCLK still be generated (with some sort of default values)
------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Getting Timer_A3 to run.. - tintronic - Sep 11 12:57:41 2009

Welcome tho the MSP430 world.

> I'll use the debugger first thing tomorrow morning.. hook up the
> MSP on the target board and debug the code by single stepping it..
> would that work ?
Yes, you have to change from options -> debugger from Simulator to Fet Debugger.

> PS.. I havent configured the DCO and other clock options.. my
> question is : If i dont change any parameters, will ACLK or MCLK
> still be generated (with some sort of default values)
Now you know you need to connect the msp and use the debugger, but it won't do you any good if you keep guessing how things work.
This forum is not to get a quick answer to a question popping into your mind. It is expected of you to do your homework first, read the manual (both MSP and compiler), google your problems and search this forum previous posts. Only then, when you still have problems, should you post a question. I recommend you google "how to ask question forum" and read some guides.

When you have a question, don't search the manual looking for the answer, but READ THE ENTIRE CHAPTER of the module you're trying to figure out. For example, start by reading THE ENTIRE CHAPTER 5 "FLL+ Clock Module". Don't skip any part, even if you don't understand it at first. The answer to this question is in there.

Best Regards,
Michael K.

--- In m...@yahoogroups.com, "umeraq" wrote:
>
> --- In m...@yahoogroups.com, "old_cow_yellow" wrote:
> >
> > The world is not perfect. The simulator cannot simulate a lot of things, including the ACLK and the TimerA. If you have the real MSP430F437, why don't you use it?
> ----------------------------------------------------
> I'll use the debugger first thing tomorrow morning.. hook up the MSP on the target board and debug the code by single stepping it.. would that work ?
>
> PS.. I havent configured the DCO and other clock options.. my question is : If i dont change any parameters, will ACLK or MCLK still be generated (with some sort of default values)
>
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Getting Timer_A3 to run.. - jedi_erdi - Sep 14 16:56:59 2009

Hi,
As a hint i can say that; when msp430 starts to run the internal DCO automotacially starts to run at ~1MHz but not the ACLK. You must make some configuration in "Basic Clock Module".

--- In m...@yahoogroups.com, "tintronic" wrote:
>
> Welcome tho the MSP430 world.
>
> > I'll use the debugger first thing tomorrow morning.. hook up the
> > MSP on the target board and debug the code by single stepping it..
> > would that work ?
> Yes, you have to change from options -> debugger from Simulator to Fet Debugger.
>
> > PS.. I havent configured the DCO and other clock options.. my
> > question is : If i dont change any parameters, will ACLK or MCLK
> > still be generated (with some sort of default values)
> Now you know you need to connect the msp and use the debugger, but it won't do you any good if you keep guessing how things work.
> This forum is not to get a quick answer to a question popping into your mind. It is expected of you to do your homework first, read the manual (both MSP and compiler), google your problems and search this forum previous posts. Only then, when you still have problems, should you post a question. I recommend you google "how to ask question forum" and read some guides.
>
> When you have a question, don't search the manual looking for the answer, but READ THE ENTIRE CHAPTER of the module you're trying to figure out. For example, start by reading THE ENTIRE CHAPTER 5 "FLL+ Clock Module". Don't skip any part, even if you don't understand it at first. The answer to this question is in there.
>
> Best Regards,
> Michael K.
>
> --- In m...@yahoogroups.com, "umeraq" wrote:
> >
> > --- In m...@yahoogroups.com, "old_cow_yellow" wrote:
> > >
> > > The world is not perfect. The simulator cannot simulate a lot of things, including the ACLK and the TimerA. If you have the real MSP430F437, why don't you use it?
> >
> >
> >
> >
> > ----------------------------------------------------
> >
> >
> > I'll use the debugger first thing tomorrow morning.. hook up the MSP on the target board and debug the code by single stepping it.. would that work ?
> >
> > PS.. I havent configured the DCO and other clock options.. my question is : If i dont change any parameters, will ACLK or MCLK still be generated (with some sort of default values)
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )