Jump to content

Search the Community

Showing results for tags 'interrupt'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





  1. I'm following the attached I2C example code provided by TI. The MCU is put into LPM0 with three interrupts enabled. On a pending RX interrupt, the ISR stores one byte of the receive buffer and clears the LPM0 SR bits taking the MCU out of LPM0 (lines 133-135). What's the reason for exiting LPM0? And why isn't the __bic_SR_register_on_exit(LPM0_bits) used for the NACIFG and BCNTIFG? msp430fr235x_euscib0_i2c_10.c
  2. Hi, I am developing a monitor that will wake up every 15 minutes read and sensor and send some data. I'm using an EXP430G2 onto which I have successfully soldered the 32KHz crystal. The interrupts are working OK, waking every 16 seconds and toggling a LED. I'm using TACTL = TASSEL_1 +ID_3 + MC_2 +TAIE and Timer0-A1. My problem occurs whenever I try to use either the serial port (using Serial.print) or the AirBooster Pack. Then nothing happens - the system freezes. I'm assuming this has something to do with use of interrupts by the Serial and Airbooster libraries but I have no idea w
  3. Thanks in advance for helping. New to microcontrollers, not fluent in C so would prefer higher level language like Energia. Using an MSP430F5529LP to drive a stepper motor, creating a square wave using timer A interrupt handler. That works fine, but would like an additional input to the MSP to increase/decrease the speed. In the following code, the external interrupt is detected when the TA0CCR0 assignment is commented out. With the line included, the external interrupt is not recognized. Thanks again. int TESTPIN1 = P1_5; int state = LOW; void setup(
  4. I'm trying to create a toggle button but the code is not working. The code is as shown below: #include <msp430g2553.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer P1DIR &= ~BIT3; //P1.3 i/p P1REN |= BIT3; //P1.3 enable pullup resistor P1IES |= BIT3; //P1.3 high to low transition P1IFG &= ~BIT3; //P1.3 clear interrupt flag P1IE |= BIT3; //enable P1.3 interrupt P1DIR |= BIT0; //P1.0 o/p P1OUT &= ~BIT0; //clear P1.0 _BIS_SR(LPM0_bits + GIE); //enter LPM0 with interrupts enabled } #pragma vector = PORT1_VECTO
  5. Greetings, I have a project idea to control SCRs connected to three phase electric heater. I need to know which phase is behind and which phase is ahead with respect to selected/chosen phase. IMO, three pins with interrupts attached to them may satisfy the need. Each interrupt will be driven/triggered by seperate zero crossing circuits. After deciding which phase leading which one lagging, I may be capable to fire the SCRs at desired angles. Could someone tell me which msp430gXYZ chip is suitable for the job and has available (more than one) interrupt pins?
  6. I need a one example of timer interrupt like timerone.h for arduino, yhank you, for help me!!!
  7. MSP Launchpad Exp430G2 with Exp430G2553 Rev 1.5 Energia 1.6.10E18 MacOS Sierra 10.12.6 Hello friends, When I call attachInterrupt at the end of a service Routine after I detached it from a pin, I find that it takes a long time for that call to finish (two seconds). Do you have any hint how I can make that faster? Thanks
  8. MSP Launchpad Exp430G2 with Exp430G2553 Rev 1.5 Energia 1.6.10E18 MacOS Sierra 10.12.6 Hello friends, Is it possible to use the functions "attachInterrupt" or "Interrupts" inside an Interrupt Service Routine? For me, it doesn't seem to work. I made a little example: I have to pins with momentary switches attached to them. One is externally configured with a PullUp-Resistor, and the other is externally configured with a PullDown-Resistor. Both switches should be attached to another ISR. But I need to turn off the ISR that is not used, if one ISR is entered, b
  9. I am trying to read a .wav file from sd card and play it using I2S on CC3200 audio booster in Energia. I have modified the Wifi audio example of CC3200 sdk for this. The dma is setup in ping pong mode and sd card loads data into the buffer but the tx dma interrupt fires only once in primary mode and once in alternate mode. I could not understand why its firing only once. I have configured I2S in stereo mode with 16KHz sampling frequency and 16 bit size. This is my tx dma handler .
  10. Hello all, Im using the MSP430 connecting to a device which outputs 4 bits sequence (parallel) every once in a while and I want to get an interrupt for each new input sequence in port 1. The input sequence voltage level is 3.6V and the MSP powered from the micro-USB (connected to the PC). I also connected the GND of the device to the GND of the MSP. this is my code : void setup(){ Serial.begin(9600); pinMode(P1_2,INPUT); pinMode(P1_3,INPUT); pinMode(P1_4,INPUT); pinMode(P1_5,INPUT); attachInterrupt(P1,intFunc,CHANGE); }; void intFun
  11. Hello all, Im using the MSP430 connecting to a device which outputs 4 bits sequence (parallel) every once in a while and I want to get an interrupt for each new input sequence in port 1. The input sequence voltage level is 3.6V and the MSP powered from the micro-USB (connected to the PC). I also connected the GND of the device to the GND of the MSP. this is my code : void setup(){ Serial.begin(9600); pinMode(P1_2,INPUT); pinMode(P1_3,INPUT); pinMode(P1_4,INPUT); pinMode(P1_5,INPUT); attachInterrupt(P1,intFunc,CHANGE); }; void intFun
  12. Hi, How can I use UART interrupt in Energia? I tried but could not find any example or sample work.
  13. Hello! I recently started playing with Energia and the CC3200 LaunchPad. I tried the example for "attachInterrupt" in the link: http://energia.nu/reference/attachinterrupt/ I changed the code a little by modifying pinMode and attachIntterrupt #define PUSH 4 ... pinMode(PUSH, INPUT); // I want Pin 4 as my interrupt or SW3 on the board, only Input because the board has a pull down resistor already attachInterrupt(PUSH, blink, FALLING); } void loop() { ... } When I run this example, the interrupt is serviced multiple times at random without me touching the button. I
  14. Hello, I have a problem with strange behavior of gcc compiler, which does not seem to generate interrupt vectors correctly. I tried to search for hints on the forum, but could not find any helpful information. I have the following C code: void __attribute__((interrupt(TIMER0_A0_VECTOR))) timer0_isr(void) { //IMPORTANT !!!!!!! //Clear TAIV by reading it !!!! (void) TAIV; /* ... */ } void __attribute__((interrupt(TIMER0_A1_VECTOR))) timer0_a1_isr(void) { P1OUT ^= PIN0; } volatile int qq; __attribute__((interrupt(USCIAB0TX_VECTOR))) void usci_tx_isr(void) { qq=1; P1OUT ^=
  15. Hey all! Finicky issue, and I've been up for way too many hours so I'm breaking from usual habit and posting after only doing minimal digging. Hopefully it's a simple solution. Fingers crossed. Board: TM4C1294NCPDT IDE: CCSv6.1 OS: Ubuntu 16.04 Compiler: GNU v4.9.3 (Linaro) So here's what's up: I'm versed using timers and setting up my vector table properly, or so I thought. Code Composer Studio isn't finding my interrupt handler... It's confuzzling me to say the least... Here's what I'm doing: In startup_gcc.c //......Skipping top of file for readability, all is stoc
  16. I need to configure a MMA8653FCR1 accelerometer to cause an interrupt when a certain level of movement is detected. I was looking at the datasheet for it and there was a ton of minutia. Just wondering if somebody has already implemented a library for this device for use with Energia. If you know where I might find some source code for this, I'd greatly appreciate it. Before I get too many flames, I have searched google and the forums for this, but I am unable to find a satisfactory solution. Any assistance here would be greatly appreciated.
  17. Hello Everyone, I am working with the MSP432 launchpad in Energia and I can't seem to use digitalRead() in and ISR? I'm hoping that someone can give me some indication as to why or find the bug in my code This is for a rotary encoder and the interrupts must fire on both Rising and Falling Edges. This Is why I try to determine the state of the pin that was just interrupted. The ISR's will be a bit more complex for the actual encoding but first I need to be able to read the state of the pins. Thanks Guys! const int encoder0PinA = 11; const int encoder0PinB = 31; volatile int
  18. Hy, I worked on a source half a year ago with an older Energia (I do not know exactly which one.). I was able to acces UartIntHandler and UartIntHandler2() functions directly. As I remember I do not change the content of Energia under OSX. Now I try to modify 1-2 things for example in the startup_gcc.c or hardwareserial.c, but the are not working. Can you help me how could I reach the UART interrupt handlers from Energia? (The setup of UART module worked on CCS or IAR before.) Can I use something like attachinterrupt()?
  19. Hi , I have written my scheduler which uses the Timer0 subtimer A to generate interrupt for Multi-tasking. I have tested the waverforms generating accurately and arriving at the right time periods. Now the issue that I am facing is PWM waves are not arrived at the expected time. Is PWM interfere with the Timer functionality? What is the work around? Are there any free timers available which I can use it for my scheduler? Some insights to this would really help. Thanks, Peeyush
  20. Hi, I wonder if it is possible to cause a interrupt when receiving serial data. This would have the big advantage to be able to wake up from sleep mode if new serial data is available. By now, serial data is written in the rx buffer even in sleep mode, but afaik it's not possible to notice that in Energia. I found lots of code for CCS for exactly this application, but i'm not able to port it for Energia. Does anybody already has some example code or may help me to make the CCS code working in Energia? Thanks!
  21. Hello! So I'm building a robot that is eventually supposed to implement an autonomous functionality, which means obstacle avoidance. I'll be using the HC-SR04 as the ultrasonic sensor of choice. I started out by verifying that the sensor works by running it using Energia, which is the standard "loop infinitely and take a measurement every so many microseconds". In my actual application, however, I want to send out a pulse on command. So when I say so, the ultrasonic will do a measurement (or an average of a few measurements) to tell me if an object is in the path of my robot or not. My act
  22. Hi I am using tm4c123gh6pz UART. I am getting Interrupt but while I enable FIFO and try to get interrupt using following command, UARTFIFOLevelSet(UART0_BASE, UART_FIFO_TX1_8, UART_FIFO_RX1_8); for the Receive, I get interrupt after 2 byte. I think Receive FIFO is 12 bit x 16 FIFO. To get interrupt after each byte I have to disable the FIFO. Is there any other way to keep the FIFO and get interrrupt after each Byte. Please let me know Thanks
  23. Hey all, I've run into a peculiar problem where my main loop doesn't execute. I know my interrupt routine is executing because I can uncomment the led toggle and I can see it blink. From what I've researched thus far, I believe the issue might be that the ISR is starving the main loop from ever executing. If that is the case, I'm not sure what the solution would be. The reason I have my main loop set up this way is because I am going to need different functions executing at different intervals. I'm still fairly new to MSP430 development, so any help will be appreciated! #include &l
  24. Sorry if this has been asked and answered before, but the results from searches didn't explain the reason not working on my device and code.. Basically trying to do a very simple debounce in an interrupt for an Energia code sketch that paint a 1602 LCD: const int buttonPin = PUSH1; // the number of the pushbutton pin int buttonState; // the current reading from the input pin volatile int lastButtonState = LOW; // the previous reading from the input pin volatile long lastDebounceTime = 0; // the last time the output pin was toggled volatile long debounceDelay = 500;
  25. Hardware: MSP430F5529 Launchpad, CC3000 Boosterpack. Hi, im running a webduino port on the Launchpad and connected a chip (cannot disclose which chip), which requires software spi since it doesnt have a CS pin, to the launchpad. P2.5 is connected to the Data Ready Pin / Data Out pin of the chip. P2.4 to SCLK of the Chip When Data is available, the chip signals with a falling edge on Data Ready Pin, i attached an interrupt to that pin - attachInterrupt(dataReadyPin,readChip,FALLING); The interrupt gets invoked about ten times a second and when continously polling a webpage (sm
  • Create New...