TimerB OutputMode

Started by andre_chouinard in MSP43013 years ago 4 replies

I'm using timerB to generate two separate time intervals. I looked at the TI examples notice they use OUTMOD_4 (toggle), and read the...

I'm using timerB to generate two separate time intervals. I looked at the TI examples notice they use OUTMOD_4 (toggle), and read the section on output modes in the msp430 manual. I don't quite understand the significance of the toggle mode? Thanks.


interrupt intervals with the timerB latch register

Started by balucharly in MSP43012 years ago 1 reply

Hi there, I'm new with MSP430 I try to get a function running that is automatically called every 1ms by an interrupt of the timerB. In the...

Hi there, I'm new with MSP430 I try to get a function running that is automatically called every 1ms by an interrupt of the timerB. In the TI Userguide for the MSP430x1xx Family, on page 238 picture 12- 6 is an example that the MSP loads the interval by hardware. But I dont know how to do this here is a sample of my code: (using Crossworks) // SCLK = 32768 // initialize Timer B TBCTL


Interrupts with TimerA and TimerB

Started by edrookie in MSP43010 years ago 1 reply

I am using the ez430-RF2500 Development tool. I`m using the demo code with some small modifications. I`ve set up a new ISR using timer B. My...

I am using the ez430-RF2500 Development tool. I`m using the demo code with some small modifications. I`ve set up a new ISR using timer B. My problem is that the ISR on timerA and the ISR for timerB always return to the line after while (1) { volatile long temp; int degC, volt; int results[2]; SMPL_Ioctl( IOCTL_OBJ_RADIO, IOCTL_ACT_RADIO_SLEEP, "" ); __bis_SR_register(LPM3_bits+GIE); ...


MSP430 timer confusion

Started by Tom Harry in MSP4307 years ago 6 replies

Hi Group, One general question. MSP430 family has only one 16-bit timer mentioned in datasheet (SLAS491E). But, in the MSP430x2xx family user's...

Hi Group, One general question. MSP430 family has only one 16-bit timer mentioned in datasheet (SLAS491E). But, in the MSP430x2xx family user's guide there is description of timerA (1 and 2) and timerB (1 and 2). Also, I looked through the MSP430 Microcontroller basics text book. It has mentioned that timerB is provided on larger devices in all MSP430 families. I'm kind of lost, any suggestions...


trigger ADC12 with timer

Started by rbuerli in MSP43014 years ago 3 replies

We try to trigger the ADC12 with either timer by setting SHS<>0. That doesn't seam to work. Per documentation either timerA.out1 or timerB.out0...

We try to trigger the ADC12 with either timer by setting SHS<>0. That doesn't seam to work. Per documentation either timerA.out1 or timerB.out0 or timerB.out1 can be used to start a conversion. Anybody have a sample that shows how this works ? The goals is to have the ADC12 take a sample based on the timer reaching a certain count. Yes, one could deal with that from within the t


ADC12 Conversion-start issue (sourcing from TB0 or TB1)

Started by tintronic in MSP4309 years ago 5 replies

Hi there. I'm having trouble with the ADC12 of an MSP430F1610. I'm using IAR 3.42. I've used the ADC12 many times before, but not with...

Hi there. I'm having trouble with the ADC12 of an MSP430F1610. I'm using IAR 3.42. I've used the ADC12 many times before, but not with this particular configuration: I'm trying to start a sequence of conversions each time TimerB rolls over (TimerB IS working in UP mode). For that I'm selecting the SHI signal to be sourced from TB1 (have also tryed TB0), but conversions never start (there is...


TimerA or TimerB 2 square waves with 180 degree out of phase.

Started by Kris De Vos in MSP43015 years ago 11 replies

> By using either timerA or timerB in msp430f449 how do you generate two square waves 180 degree out of phase with each...

> By using either timerA or timerB in msp430f449 how do you generate two square waves 180 degree out of phase with each other. Interesting, My first reaction would be to synchronize 2 compare channels and trigger the output units, one to set bit the other to clear bit, or opposite toggle mode.... ? (add an inverter externally ......:-)


gcc , Insight & TimerB problem

Started by drumfirex in MSP43014 years ago

I develop my project using IAR toolchain and MSP430F435 uC. All worked fine. Now I tryed to use gcc and Insight. Sci routines (interrupt...

I develop my project using IAR toolchain and MSP430F435 uC. All worked fine. Now I tryed to use gcc and Insight. Sci routines (interrupt driven) works fine. Basic Timer is called only once after downloading. TimerB interrupt service routine is never called. If someone could help me, I paste here my code: void WD_Init(void) { WD_Timer_Stop(); // WDTCTL = WDTCTL_PASSWORD_VAL | WDTCTL_WDT


PWM using TimerB in Continuous mode

Started by ti2tt in MSP4308 years ago 24 replies

Hello Friends/Members, I am using MSP430F2418 device and want to generate the PWM on pin TB5 using continuous mode of TimerB. I am using this...

Hello Friends/Members, I am using MSP430F2418 device and want to generate the PWM on pin TB5 using continuous mode of TimerB. I am using this timer - module 4 and module 6 - for two different timeout values. I want to generate a PWM of 50% duty cycle and a period of 150Hz using module 5 which in turn will output a PWM on TB5. I am using ACLK=1MHz. Below is the code, I have written to configure ...


Re: TimerB Interrupts

Started by ones...@bigpond.net.au in MSP4309 years ago

In assembler the neatest, easiest way to do this is :- ADD &TBIV,PC RETI JMP ...

In assembler the neatest, easiest way to do this is :- ADD &TBIV,PC RETI JMP TIMER1_ISR JMP TIMER2_ISR ETC In C this is usually done with a switch statement Al ---- JeanLee wrote: > Thank you for your answers, > > I only have one ISR in which I distinguish between the different


Sinewave

Started by Andrew Doilidov in MSP43015 years ago 6 replies

Hi! Does anyone know if it's possible to generate at least 10 kGz sinewave with msp430 TimerB PWM mode? With 8bit resolution? Thanks Andrew

Hi! Does anyone know if it's possible to generate at least 10 kGz sinewave with msp430 TimerB PWM mode? With 8bit resolution? Thanks Andrew


timer question

Started by davep575 in MSP43012 years ago 4 replies

I'm trying to set up TimerB to give me 1s(CCR0) and 1ms(CCR1) interrupts. Right now I reload the TBCCRx with TBR + period to give me the new...

I'm trying to set up TimerB to give me 1s(CCR0) and 1ms(CCR1) interrupts. Right now I reload the TBCCRx with TBR + period to give me the new compare value. Is this the correct way to do this or is there a better way?


MSP430F2132 and Timer0/1

Started by Peter Grey in MSP4309 years ago 2 replies

I have now got to the part with Timer0_A3 and Timer1_A2 but can find no technical details on them. In the user guide (slau144e.pdf) it refers...

I have now got to the part with Timer0_A3 and Timer1_A2 but can find no technical details on them. In the user guide (slau144e.pdf) it refers to TimerA & TimerB. Can someone direct me to information that gives details on these new timers? The brochure has a little and there are some code examples. TIA Peter ------------------------------------


Re: TimerB Interrupts

Started by JeanLee in MSP4309 years ago

Thank you for your answers, I only have one ISR in which I distinguish between the different sources. - When entering inside the...

Thank you for your answers, I only have one ISR in which I distinguish between the different sources. - When entering inside the routine, I read TBIV which clears the highest priority flag. - Then depending on the value of TBIV, I am able to detect the source IRQ. This is the method described by bb-stefan-2. Is there another way to do it as mentionned by old_cow_yellow (With 2 ISR)...


About timers

Started by Ing juan manuell in MSP43011 years ago 2 replies

Hi Friends, I am new in this of MSP430, and i am trying to do something with TIMERB that i don't know if this could be posible. Until now...

Hi Friends, I am new in this of MSP430, and i am trying to do something with TIMERB that i don't know if this could be posible. Until now i couldn't do it. I am working with F169 at 8Mhz I would like to do send out like a clock of 500Khz but without interrupt. It is done is easy. The hard part it is that i need a 500hz interrupt timer inside and if could be posible send out too. Th


Digital I/O

Started by ramesh babu nalagarla in MSP43014 years ago 1 reply

Hi!I'am working on Msp430f412 micro.I'am using ICC430 compiler for programming.Is there any way to declare individual port pins as variables...

Hi!I'am working on Msp430f412 micro.I'am using ICC430 compiler for programming.Is there any way to declare individual port pins as variables and process them like in Keil compiler.If any way is there please inform me. In Msp430f412 micro TimerB is there or not?If it is there please send me the include header file for me to use that timer. Thanks & Regards, Ramesh ________________


RTC on MSP430

Started by Vito Russo in MSP43013 years ago 3 replies

Hi! I need a Clock on my MSP430F149. Now i'm using timerB as a clock. But when the supply voltage supervisor reset the micro (and this happens...

Hi! I need a Clock on my MSP430F149. Now i'm using timerB as a clock. But when the supply voltage supervisor reset the micro (and this happens often) i lose al the data about the time and date. How can I avoid this? I've heard about RTC stand-alone chips. Is there a cheap RTC? Thank you and Good Bye Vito


Re: Setting TIMERB timing bits

Started by old_cow_yellow in MSP43010 years ago

TIMERB1_VECTOR is shared with many other interrupts. See User's Guide on how to handle it. --- In m...@yahoogroups.com, Claro Louie ...

TIMERB1_VECTOR is shared with many other interrupts. See User's Guide on how to handle it. --- In m...@yahoogroups.com, Claro Louie wrote: > > Hi guys, > > May i ask for pointers regarding this? > > Below is a code that shows setting the TIMER B module to generate two different timing intervals from two control registersim setting the clock at 8MHZ. The fir


Multiple Sine Waves/Chords from a DAC

Started by zylaxice in MSP4305 years ago 24 replies

Hi all, I am currently working on some code for an MSP430F2619. I am using a 32-value sine lookup table, and pushing the sequential values out...

Hi all, I am currently working on some code for an MSP430F2619. I am using a 32-value sine lookup table, and pushing the sequential values out to the DAC12 via DMA, with the speed (and thus the note frequency) controlled by TimerB. So far,this is working well. I can produce any number of reasonable sounding pure tones/notes at frequencies from 130.8Hz (C3) to 987.7Hz (B5), and this is more th...


3-phase brushless motor

Started by Manfred privat in MSP43013 years ago 11 replies

hi group has anyone an idea of whether it is possible to speed-control a 3-phase brushless motor with MSP430F14x from my point of view it...

hi group has anyone an idea of whether it is possible to speed-control a 3-phase brushless motor with MSP430F14x from my point of view it should be possible because of the many compare registers of TimerA and TimerB - application note? - motor drivers? - code examples thanx for any help Manfred