Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


MSP430 Interrupt issues

Posted by Julio Armijos on April 24, 2011
Good Evening all,

I have successfully ported the original MSP430F5438 demo built for CCSv4 into an MSP430F6638, but I am now having difficulties with the interrupt routine that comes from one of the push buttons. I have modified the routine so that it uses port P1.0 of the chip since that is where I have a button open, but as soon as the interrupt routine starts, FreeRTOS behaves strangely and does not return to the routines nor displays data on the screen. Does anyone have any idea on what could be happening here?

I find it strange that the scheduler continues to work, and if I press the interrupted button it will go back to the interrupt subroutine, but nothing happens after that.

The only changes that I made to the code was in the main.c file were I modified the interrupt vector to use port1.

Any help in this issue will be greatly appreciate it.


RE: MSP430 Interrupt issues

Posted by Richard on April 24, 2011
If the interrupt fires, but only once, can you check that the interrupt handler is clearing the correct interrupt bits.

RE: MSP430 Interrupt issues

Posted by Julio Armijos on April 29, 2011
Hello Mr. Barry,

Thank you for your prompt reply. I have checked the handler, and it is clearing the proper interrupt bit. The interrupt that I am using is located in port 1. To be exact, it is at P1.0 of the MSP430.

I am new to the RTOS concept, and my understanding is that the kernel uses some interrupts in order for it to run properly. Is there any chance I might be clearing one of those interrupts by using port 1 in my project?

RE: MSP430 Interrupt issues

Posted by Richard on April 29, 2011
The MSP430X port only uses a single timer interrupt. The timer used is configured by the application callback function (defined in the application, not the kernel) vApplicationSetupTimerInterrupt(). In the provided demos, vApplicationSetupTimerInterrupt() uses the TA0 timer. I don't think clearing a port pin would in any way effect that timer.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists