Search the Community
Showing results for tags 'Timers'.
-
Implementing multiple timers simultaneously can be tricky and I was unable to find any good examples in TI's Resource Explorer. Using the MSP430FR5969 Launchpad, this code generates a sequence of multi-tone square waves to drive an external piezo-buzzer. The audio frequency is set by TA1 and waveform duration controlled by TA0. Written in C to illustrate the bit-wise register operations: https://github.com/microphonon/Piezo_Buzzer
-
Hi, I'm new here and I just started programming the TI MSP430FR2355. I have been struggling to get any examples of code I've found online for the use of Timer A to compile in CCS Studio, it always says everything related to Timer A is undefined. I just found this location on the TI website: http://dev.ti.com/tirex/explore/node?node=ANzAuV9QdJf4FZucFqNrMA__IOGqZri__LATEST I tried the code there to set up Timer B and it works!!! I notice there are no examples whatsoever on this page that use Timer A, but in all the documentation I have found Timer A is a thing on the FR2355... so what
-
I have modified the code and now the zero crossing interrupt is occurring.But the timer is still not functioning.Can anyone see and tell whether I have configured it right? #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_timer.h" #include "inc/hw_types.h" #include "debug.h" #include "interrupt.h" #include "timer.h" #include "driverlib/prcm.h" #include "inc/hw_gprcm.h" #include "wiring_private.h" #include "driverlib/rom_map.h" #include "driverlib/pin.h" void setup() { pinMode(2,INPUT_PULLUP); pinMode(4,OUTPUT); noInterrupts(); MAP_PRCMPeripheralClkEnable(PRCM_TIMERA0,PRCM
-
Hi , I am unable to use the Timers of CC3200 on Energia. Kindly view my code snippet and see what errors have I made.I am getting the errors which I have mentioned at the last. CODE:- #include <driverlib/timer.h> #include <inc/hw_timer.h> void setup() { pinMode(2,INPUT_PULLUP); pinMode(9,OUTPUT); noInterrupts(); TimerIntStatus(TIMERA0_BASE,true); TimerDisable(TIMERA0_BASE,TIMER_A); TimerIntDisable(TIMERA0_BASE,TIMER_TIMA_MATCH); TimerConfigure(TIMERA0_BASE,TIMER_CFG_A_PERIODIC_UP); TimerPrescaleSet(TIMERA0_BASE,TIMER_A,32); TimerMatchSet(TIMERA0_BASE,TIMER_A,7500); TimerInt
-
I have experience with the traditional C programming in Code Composer and have implemented a timer interrupt routine in CCS for TIVA TM4C1294, now I want to create a timer ISR in Energia, how do I proceed ?
- 9 replies
-
- energia
- interrupts
-
(and 3 more)
Tagged with:
-
Hello dear developers, I am currently working on an automated rover project working on multiple MSP430 the board in charge of the electrical power management embbeds a MSP430G2744 model. As I quite used to work with arduino IDE I tried to port it to Energia. Unfortunately I got stuck at some point editing my variant of pins_energia.h : The timers for the ported microcontrollers appears something like T0A0 T0A1 T1A0 ... etc On the MSP430G2744 however they only appear as TA0, TA1 etc. The Energia.h file in cores does not allow in its enumaration list for TA0, TB0 simple notations I
-
My question is this: can I use a while loop to suspend a program until a value in a global variable is >= a constant. I'm using timer0 to interrupt every one second. I update a global integer value by one every time the interrupt method executes. However, when my program reaches the while loop, it locks up my program. Does the while loop prevent the interrupt from firing, or is the while loop putting a lock on the variable and not allowing the interrupt statement to update. The code I have is as follows and I am new to hardware programming. // initialize timer TA0CCR0 = 12