Problem with I2C and TimerA

Started by merapcb in MSP4307 years ago

I am trying to implement access to a bunch of peripherals (RTC, EEPROM etc.) using I2C. I also have TimerA running. There is corruption of Read...

I am trying to implement access to a bunch of peripherals (RTC, EEPROM etc.) using I2C. I also have TimerA running. There is corruption of Read data from EEPROM. Without TimerA it works fine (so it seems). I have Googled and see that there indeed seems to be some issue with I2C and TimerA. Has anyone had experience with this problem? Thanks. ------------------------------------


How can use independent Timera in msp430f122?

Started by skylooroo in MSP43011 years ago 1 reply

Hi I'm writing to about problem TimerA in msp430f122. I need to 2 source timer.( 600usec and 10msec) somebody help me. I'm try timera...

Hi I'm writing to about problem TimerA in msp430f122. I need to 2 source timer.( 600usec and 10msec) somebody help me. I'm try timera control registor but result not good. how can control timerA registor in msp430f122 plz, adivice for me.. P.S : compiler iar3.30A and clock source external 4MHZ crystal. Best regards,


Interrupt occurs in ISR

Started by agab...@... in MSP43012 years ago 52 replies

Hi, for example TimerA generates every ms an interrupt. What happens when during the execution of TimerA ISR an interrupt for port 1 is...

Hi, for example TimerA generates every ms an interrupt. What happens when during the execution of TimerA ISR an interrupt for port 1 is generated? Is this Interrupt lost, or is it executed after TimerA ISR? Do I have to enable GIE in TimerA ISR to ensure that the Irq for port 1 is not lost? TIA, Max


TimerA running as UART on MSP430F413

Started by Stephane Hollande in MSP43012 years ago 2 replies

Hi All, I've been trying to use/port for over 2 days diverses codes sample to run my TimerA as a UART but haven't been able to...

Hi All, I've been trying to use/port for over 2 days diverses codes sample to run my TimerA as a UART but haven't been able to succeed. TimerA interrupt comes up from time to time when receiving a character, or even when character is sent. Nothing really steady, stable. Here is my config : - MSP430F413, with P1.0 as TXD, P1.1 as RXD. - MSP430 connected to PC serial port via Max232. - Exte


TimerA questions

Started by John Walker Ledbetter in MSP43010 years ago 2 replies

Hello everyone, What I'm trying to do is to have TimerA generate an interrupt every ~1millisecond for timing purposes, based off of the...

Hello everyone, What I'm trying to do is to have TimerA generate an interrupt every ~1millisecond for timing purposes, based off of the 32768Hz Aux Clock. It seems to work fine in a small test application that I've written, but in a more complicated application, it always freezes after one interrupt is generated. Basically, I'm hoping someone here can tell me if my Timer code is s...


TimerA ISR

Started by intelliquip in MSP43010 years ago 4 replies

Try this one We are programming the MSP430F1211 to do clock and calender functions. Every sec TimerA generates an interrupt and in the...

Try this one We are programming the MSP430F1211 to do clock and calender functions. Every sec TimerA generates an interrupt and in the interrupt we update seconds, minutes ect.. When the months are updating we use a lookup table to check how many days in the next month. This is all in the interrupt and causes the MSP430 to lockup intermittently. What are we doing wrong or shouldn't we us...


Getting Timer_A3 to run..

Started by umeraq in MSP4308 years ago 4 replies

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...

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 conf...


2 PWM output signal on 2013

Started by ulrich_probst in MSP43010 years ago 7 replies

Hi all, I need 2 PWM output signals and the second must have a programmable delay. The first signal can be generated by timerA -ok. For the...

Hi all, I need 2 PWM output signals and the second must have a programmable delay. The first signal can be generated by timerA -ok. For the second one a additional timer is needed wich can started from TimerA but the watchdog is to slow and a high interrupt frequency would be. Has anyone a solution? I think that is a common problem. Thanks a lot. Ulrich.


Timer Output Unit Access

Started by curlinou in MSP4309 years ago 6 replies

Hello All. Sorry for my poor english. I use TimerA for Hardware Clock Generation. - P1.3 is set in output mode -(TimerA CCR2 Block) OUT2...

Hello All. Sorry for my poor english. I use TimerA for Hardware Clock Generation. - P1.3 is set in output mode -(TimerA CCR2 Block) OUT2 Signal drives the Pin For communication purpose I need to know the state of this Pin (Low/ High). I have P1.2 available. I could link P1.3 to P1.2. Is there another way to know P1.3 state ? ------------------------------------


long delays and how to simulate them

Started by jgb_gt_84 in MSP43012 years ago 5 replies

I'm working on a project where I only need the MSP430 (probably a 'F423) to wake up once a day. It looks like the longest I can sleep though...

I'm working on a project where I only need the MSP430 (probably a 'F423) to wake up once a day. It looks like the longest I can sleep though is 30s. (TimerA w/ 32k ACLK / 8, updown mode, count to 61440 then back to 0 and interrupt on CCIFG) Any suggestions on how to get a longer delay? Also how can I simulate this? I've set up IAR/TI C-SPY to generate a TimerA interrupt, but when the


Basic TimerA Questions and Xtal Load Cap

Started by Richard in MSP43011 years ago 3 replies

Hi All, I am using the MSP430F427. I am using TimerA for a wakeup from LPM3 every 1/4 second. Should the reload value be 8192 or 8191? ...

Hi All, I am using the MSP430F427. I am using TimerA for a wakeup from LPM3 every 1/4 second. Should the reload value be 8192 or 8191? The spec makes it appear that there is an additional clock cycle after CCR0 is reached to reset the timer to zero. It also appears that the low frequency xtal pins have a 12pF load capacitance, is this correct? If so, then would it be proper to use a


DCO and timer A

Started by quaratie in MSP43014 years ago 1 reply

Hello, I was wondering if it is possible to calibrate the DCO to exactly 1MHz using timerA. I need a higher clock rate for frequency...

Hello, I was wondering if it is possible to calibrate the DCO to exactly 1MHz using timerA. I need a higher clock rate for frequency capture on timerA but I only need to perform frequency capture every 15 minutes for about 100ms, I figure if it is possible to use the DCO it is better than adding a high frequency xtal and wasting the battery power while the device is in LPM3 mode. Th


TimerA problem!!!!

Started by ramesh babu nalagarla in MSP43013 years ago 3 replies

Hello all,I'am using MSP430F412 micro controller for my project.I'am operating the micro in Low power mode 3(LPM3).My application should update...

Hello all,I'am using MSP430F412 micro controller for my project.I'am operating the micro in Low power mode 3(LPM3).My application should update the display for every one second.I configured TimerA for one second interrupt and in Up mode. My display is 8 digit display and uses 3-Mux pattern for writing into segments,When I'am writng into display I'am loosing some time.i.e I'am not getting int


Newbie question: TimerA and DCOCLK

Started by pollyp100 in MSP43012 years ago 2 replies

Greetings, I am new to both the msp430 and embedded programming in general, and, as befits my status, I have a newbie question to ask. I have...

Greetings, I am new to both the msp430 and embedded programming in general, and, as befits my status, I have a newbie question to ask. I have MCLK set to DCO, and now I want to post a timer interrupt every n counts. I therefore want to use TimerA in continuous mode. The problem I have is that there doesn't seem to be any way to select the MCLK or DCOCLK as the clock source: my choices seem


TimerA Sync problem

Started by "tim...@sbcglobal.net" in MSP4309 years ago 11 replies

Hi, I'm using TimerA for a PWM application. Here's a partial listing of the code : #include "msp430x11x1.h" ORG 0F000h ...

Hi, I'm using TimerA for a PWM application. Here's a partial listing of the code : #include "msp430x11x1.h" ORG 0F000h ; RESET mov.w #300h,SP ; Initialize stackpointer StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT SetupTA mov.w #TACLR+TAIE,&TACTL ; TACLK, Clear TAR, Enable TAIFG interrupt SetupC0 mov.w ...


Interrupts with TimerA and TimerB

Started by edrookie in MSP4309 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); ...


G2xx devices without FLL, using DCO, ACLK, and TimerA for software FLL

Started by Jon Kirwan in MSP4306 years ago 15 replies

The software FLL works just fine. Got it running last week. SMCLK feeds TimerA and the CCR0 is used (because that is where CCI0B is located and...

The software FLL works just fine. Got it running last week. SMCLK feeds TimerA and the CCR0 is used (because that is where CCI0B is located and that's how ACLK can be used to perform a "capture.") The PI is initialized by clearing the integrator (i-term summation value) and preloading a latched TACCR0 value outside the interrup code so that there is a prior value from which to compute a de...


Port 2 Interrupt On eZ430-RF2500 Along With The Demo Code

Started by Eddy in MSP4309 years ago 6 replies

Hi, this is my first time posting here and hope I can get some helps from member in this group. I am using eZ430-RF2500 target board. With...

Hi, this is my first time posting here and hope I can get some helps from member in this group. I am using eZ430-RF2500 target board. With the demo firmware program, I am able to transmit data from End Device to Access Device every ~1 second, depends on the TimerA setting. Right now, I am trying to modify the firmware. Instead of having the TimerA trigger the action, I want to use I...


TimerA question

Started by in MSP43014 years ago 1 reply

Hi, I am using MSP430F1132, and set up timera so it gives interrupt every second: WDTCTL = WDTHOLD | WDTPW; // Stop watchdog. TACTL =...

Hi, I am using MSP430F1132, and set up timera so it gives interrupt every second: WDTCTL = WDTHOLD | WDTPW; // Stop watchdog. TACTL = TASSEL0 | TACLR; // ACKL for TIMER_A CCTL0 |= CCIE; // Enable CCR0 interrupt CCR0 = 0x7FFF; // Load CCR0 with 32,767 TACTL |= MC0; // Start TA in "up to CCR0" mode I also want to get an interrupt


TIMER A UART Transmit only

Started by quaratie in MSP43013 years ago

Hello, Could someone point out to me why my code never hits the timerA interrupt. I am using the watchdog timer and every second I would...

Hello, Could someone point out to me why my code never hits the timerA interrupt. I am using the watchdog timer and every second I would like to transmit a message at 2400 baud using timerA. The watchdog timer calls Tx_Message every second, when I have "while ( CCTL0 & CCIE );" uncommented in Tx_Byte() below I never hit the timer interrupt and transmission does not occur.