Forums Search for: TimerA
TimerA questions
inGood afternoon, Does anyone know if it's possible to use timer a multiple times with different intervals?? I'd like to make a timerfunction...
Good afternoon, Does anyone know if it's possible to use timer a multiple times with different intervals?? I'd like to make a timerfunction that handles several functions for example I install a function that should occur every 10 sec one that comes every sec and one that comes every 1ms Question: is it possible to serve these ints like this: void TimerA_isr(void) __interrupt [TIMERA1_VE
MSP430F149 MCLK using 32kHz?
inHi everyone, Would like to know has anyone tried operating MCLK with only 32kHz xtal attached? From TI TimerA sample codes, it wrote there...
Hi everyone, Would like to know has anyone tried operating MCLK with only 32kHz xtal attached? From TI TimerA sample codes, it wrote there MCLK default uses DCO ~800kHz. However, when I try to trigger the Watchdog timer (WDT_MRST_32), I don't see it returning to the breakpoint I've set at the every beginning? Did I miss out anything? Please help. Thanks! :) Another qn, I'm trying to fin...
MSP430F149 resets during code execution
inHi all, I'm having a little problem with my MSP430F149 using both IAR and Code Composer. When running a simple program (shown below) my MSP...
Hi all, I'm having a little problem with my MSP430F149 using both IAR and Code Composer. When running a simple program (shown below) my MSP keeps resetting. I cannot see any changes in the SFR that could indicate anything, and my watchdog is on hold. My intention is to run a software RTC, mostly to play around with interrupts. When the interrupt on TimerA triggers, a counter (RTCCount) ...
Looking for IrDA functions
inI am looking for two functions for the MSP430F133 that handle the IrDA physical layer. The two functions, one for TX and one for RX, would use...
I am looking for two functions for the MSP430F133 that handle the IrDA physical layer. The two functions, one for TX and one for RX, would use TIMERA and the CCP module. The development environment is IAR. I am willing to either purchase these or contract for the development of same. If anyone would like to take this on or can point me in the direction in order to out-source these tasks,
TimerA and ADC12 problem
inHi, I just want to take an analog sample at pin 6.0 (MSP430F149) and convert it.The only thing is that i want to use a timer so that i can...
Hi, I just want to take an analog sample at pin 6.0 (MSP430F149) and convert it.The only thing is that i want to use a timer so that i can tell exactly when to take the sample. Below is my code. Although it compiles, it does not work. Does any1 know what is wrong with it? Thanks in advance. #include "msp430x14x.h" // Standard Equations void main(void) { WDTCTL
TimerA and PWM
inHello All This is my first post to the MSP430 news group, and as you have guessed I am new to the MSP430. I am trying to get the PWM to work on...
Hello All This is my first post to the MSP430 news group, and as you have guessed I am new to the MSP430. I am trying to get the PWM to work on a MSP430F1232 chip, I am using the example fet120_ta_pwm01.c. Which works fine, but I would like to use the Timer_A in continous mode as opposed to up mode in the example. Because I am using Timer_A for a 1ms tick. Can any one help! Thanks in advance
Software Interrupt.
inI need to add a software interrupt to my program. The SLU00049 shows that the Digital I/O section can be used for such a purpose by setting a...
I need to add a software interrupt to my program. The SLU00049 shows that the Digital I/O section can be used for such a purpose by setting a particular P1IFG true in software. Also it adds that the Interrupts will be recognized even they occur in an ISR. My TimerA maintains 4 software counters which at their expiration execute certain task. I dedicated Counter4 to set the P1IFG0 a...
16 MHz Verification
inHey guys, I'm new to the MSP430, and am having some trouble verifying that my TimerA is operating at 16MHz. I have a scope attached to P1.0,...
Hey guys, I'm new to the MSP430, and am having some trouble verifying that my TimerA is operating at 16MHz. I have a scope attached to P1.0, and am watching for the appropriate signal out. Here is my code. It's a bit pirated from TI's sample code, but i believe i should be getting about 1000 Hz from P1.0. [code] #include "msp430x22x4.h" void main(void) { BCSCTL1 |
Serial communication
inHello. Sorry for disturbing, but I wanted to ask one question that has been bothering me.if you could please help me, i would really...
Hello. Sorry for disturbing, but I wanted to ask one question that has been bothering me.if you could please help me, i would really appreciate it. i have a board with msp430f149. the outputs from the board are timer B1 and A0. The board also has a serial connection with the URXD1. what i want to do is control the frequency and pulsewidth of the timerA and timer B frequency from my com...
3-phase brushless motor
inhi 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
Random generator initialisation
inHi All, Have you got any idea about considerable fast random generator initialisation (the first value)? I have tried to use RAM contest to...
Hi All, Have you got any idea about considerable fast random generator initialisation (the first value)? I have tried to use RAM contest to do it (some XOR and ADD of 0x80...0x9ff area) but I don't know if it is really random after power on and most important after other resets. Using timers A (32kHz oscillator) and B (internal RC) by reading TBR in timerA interrupt is either time cons
Segment Control Directives of ISRs using IAR
inI'm working on a program with the MSP430F417 using IAR. The program has two ISR's - one for a software defined UART using TimerA and the other...
I'm working on a program with the MSP430F417 using IAR. The program has two ISR's - one for a software defined UART using TimerA and the other a RTC using the BT. For both of these programs I used the sample code provided by TI to get me going and they both work fine - individually. The problem I'm having is when you combine the two programs I get a linker error saying " Error[e124]: Segmen...
TimerA ISR
inHello, apologies for the earlier email... well ...i should've gone thru' the manual...i'm using msp430 - F1611...mspgcc for it doesnt...
Hello, apologies for the earlier email... well ...i should've gone thru' the manual...i'm using msp430 - F1611...mspgcc for it doesnt support pragma....using interrupt as follows ...i can now compile it... my goal: set the signal period of 20ms using CCR0 and fire a PWM o/p(1 ms duty cycle) at the start of the signal period. but will this code set TAIFG when the timer starts the count from
MSP430f2252 Capture time
inHi guys, I need some pointers on what is the best way on how to synchronize my clock with an input signal. Here's a situation. I have a...
Hi guys, I need some pointers on what is the best way on how to synchronize my clock with an input signal. Here's a situation. I have a relay that is connected to my microcontroller (MSP430F2252). I want to detect if the opening or closing of the relay is slower than the allotted time for it to open or close. i'm thinking of using the capture mode of the timerA of my microcontroller. Can ...
sharing timer A in MSP430F2012
inHi, We plan to use 2012 device which has 2kb flash for basic metering application. It has 4 digits of multiplexed 7 segmenet display and...
Hi, We plan to use 2012 device which has 2kb flash for basic metering application. It has 4 digits of multiplexed 7 segmenet display and 4 channel A/D interface. Due to shortage of the I/O lines. we are forced to use an I2C I/O expander for connecting the display segments( Common). The anodes are swicthed directly by I/O Lines. Our TimerA ISR has to trigger the ADC conversion every 200us...
Best way to keep track of number of clock cycles
inHi i'm new to the MSP430 and i'm currently playing around with the F149 chip. Anyhow i was just wondering what would be the best way to keep...
Hi i'm new to the MSP430 and i'm currently playing around with the F149 chip. Anyhow i was just wondering what would be the best way to keep track of the number of rising edges that occurs when a clock is running. I've looked into setting up TimerA in upmode with an ISR and then basically having a counter there to count each time the interrupt occurs. But i was wondering if there is a
frequency generator
inHi all, could anyone help me getting started, i'd like to build a frequency generator using the F149. frequency range should be between 0Hz...
Hi all, could anyone help me getting started, i'd like to build a frequency generator using the F149. frequency range should be between 0Hz and 200kHz. i thouoght of using timerA and then toggling an output pin, to change the freq. i thought of adjusting the clock frequency, but perhaps this is not enough (to achive the ful range) and therfore i thought of using CCR1 register. but th
TimerA - Capture mode code error...
inHi, I'm using the ez430RF2500 (MSP430 2274 + ZigBee module) and I need to measure the time interval between input pulse signals (0V to 3.6V) ....
Hi, I'm using the ez430RF2500 (MSP430 2274 + ZigBee module) and I need to measure the time interval between input pulse signals (0V to 3.6V) . I tried to implement a timer interrupt in capture mode but it don't works. Someone can help-me? (my code with comments of the configurations used is following) Thanks Gustavo #include "msp430x22x4.h" void main(void) { WDTCTL = WDTPW + WDTHOLD...
Potentiometer + pwm
Hi, I'm new to MSP430 and would like someone to help me in this problem. I need to simulate a pwm using a potentiometer connected to a port of...
Hi, I'm new to MSP430 and would like someone to help me in this problem. I need to simulate a pwm using a potentiometer connected to a port of the ADC10 but am having trouble creating a routine for stopping TimerA and ADC10_vector. Can anyone help me? It is a very simple problem ... Thanks #include "msp430g2231.h" void ini_ADC10(void); void ini_TIMERA(void); void ini_CLOCK(void); void in...
Timer triggered sampling
inHello Guys I would like to use the ADC12 to sample a sensor signal at 200 samples per second, the MCU runs from DCO configured at 2Mhz. Whis...
Hello Guys I would like to use the ADC12 to sample a sensor signal at 200 samples per second, the MCU runs from DCO configured at 2Mhz. Whis is the ideal way to achieve this? Configure TimerA to fire the ADC? if this is the case, then just configure the Timer for a 5ms intreval and perform ADC conversion? Do I make use of both Timer's and the ADC's interrupt mechanism? I did look at t