EmbeddedRelated.com

TimerB OutputMode

Started by andre_chouinard in MSP43019 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 MSP43018 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


MSP430 timer confusion

Started by Tom Harry in MSP43014 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 MSP43020 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 MSP43016 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 MSP43021 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 ......:-)


PWM using TimerB in Continuous mode

Started by ti2tt in MSP43014 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 ...


Sinewave

Started by Andrew Doilidov in MSP43021 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


MSP430F2132 and Timer0/1

Started by Peter Grey in MSP43016 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 ------------------------------------


About timers

Started by Ing juan manuell in MSP43018 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


RTC on MSP430

Started by Vito Russo in MSP43020 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


Multiple Sine Waves/Chords from a DAC

Started by zylaxice in MSP43012 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 MSP43020 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


sine wave

Started by alim0403 in MSP43020 years ago 2 replies

Hello group, I have a problem.I work on the MSP430P149. I convert a sine wave every 120?s in a ADC way and I made the opposit after with the...

Hello group, I have a problem.I work on the MSP430P149. I convert a sine wave every 120?s in a ADC way and I made the opposit after with the timerB pwm. The problem is that when the signal reach 500hz the signal doesn't still clean even if i change the filter. Can you help me please?


Nested interrupts Or Alternatives

Started by Vinod in MSP43014 years ago 9 replies

Hi all, I am working on project on metering based on MSP430F249. I am using TimerB for my multiplexed display refreshing and key scanning at...

Hi all, I am working on project on metering based on MSP430F249. I am using TimerB for my multiplexed display refreshing and key scanning at 1ms. I use UART ISR for serial communication. Both these ISRs are short and cause no problem. But I have some issues with ADC ISR - I am using ADC12 module for integration of AC energy. The true RMS computation of Power and energy takes couple of t...


TimerB ISRs

Started by ssk2k4 in MSP43015 years ago 6 replies

Hello forum members, I am using MSP430F1611 with CrossStudio. I want to use Timer B for generating a PWM as well as a counting a timeout...

Hello forum members, I am using MSP430F1611 with CrossStudio. I want to use Timer B for generating a PWM as well as a counting a timeout value. The PWM code is as: void ConfigTimerBCompare (void) { P4SEL &= ~0xA0; P4SEL |= 0x20; // P4.5 - Select as TB5 functionality P4DIR |= 0x20; // P4.5 - Select compare as output ...


MSP430 variable corruption

Started by lewis in MSP43017 years ago 4 replies

Hi, I am implementing a sensor network on a MSp40f1611 . I have a software clock(unsigned long variable) that is used for the real time clock...

Hi, I am implementing a sensor network on a MSp40f1611 . I have a software clock(unsigned long variable) that is used for the real time clock by counting evrytime(50us) TimerB counts upto TBCCR0. Another variable is used to deciede wake up/transmission times. The eproblem i am having is that after a random number of seconds the variable that holds the wakeup count gets cottupted and the...


IAR simulator interrupt question

Started by "Hayashi, Steve" in MSP43015 years ago

Hello everyone, I'm working with IAR workbench, and I'm utilizing the TimerB with the MSP430F2619. Though I realize that the simulator cannot...

Hello everyone, I'm working with IAR workbench, and I'm utilizing the TimerB with the MSP430F2619. Though I realize that the simulator cannot simulate the clock signals, I'm trying to simulate multiple different interrupts to ensure that every thing works relatively smoothly. First, the trouble I'm running into is that the interrupts seems to trigger multiple times in a given setting (i.e. ...


TimerB capture #2 doesn't trigger interrupt

Started by rattencremesuppe in MSP43019 years ago 7 replies

Hi, I'm trying to setup multi-channel capture on the 430F149 for frequency measurement. The sensors are connected to P4.0, P4.1 and...

Hi, I'm trying to setup multi-channel capture on the 430F149 for frequency measurement. The sensors are connected to P4.0, P4.1 and P4.2 P4.0 and P4.1 are properly triggering interrupts, but P4.2 doesn't. (Hardware is ok, because I'm seeing correct values when reading the pin state as GPIO). Is it necessary to somehow setup the interrupt multiplexing? (P4.0 capture uses a dedicated inter


MSP430 TimerB Capture compare problem

Started by lewis in MSP43018 years ago 5 replies

Hi, I'm stuck with a problem implementing a capture compare on TIMER B. I have toggled a pin in the ISR and measured the waveform on the...

Hi, I'm stuck with a problem implementing a capture compare on TIMER B. I have toggled a pin in the ISR and measured the waveform on the CRO. The ISR triggers as expected after every 50ms , but after some time (quite random) the timer misfires i.e. i get a shorter duration pulse. I have pasted the code below. Thanx once again for ur help. Regards, Lewis //////////////////////////////