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




Loading

GPIO interrupt question in MSP430X of freeRTO

Posted by Pascal Hernandez Schobert on December 29, 2011
Hello,

This is my first time that I'm working with a RTOS so I'm not sure if what I'm doing is correct. I'm using a MSP430FG4618 and I want to comunicate with an ADS1194 analog converter but this chip has a DRDY port (Data Ready port) so I'm wondering how could I manage the interrupts becase the freeRTOS just handle 1 (Timer interrupt) as far as I know.

I'm planning to enable the uC port interrupts once that I'm inside this task and then disable it once that I have finished all but I think that if a timer interrupt occurs it will affect the system, isn't it?

Just as a cultural information, the ADS1194 converter gives the information through SPI with 8 bits packages. I suppose to receive 6 packages in 1 cycle task. (so 6 DRDY ports interrupts will occur)

So any I idea how could I manage this constant interrupt that will be made by the interrupt port?

Best Regards,
Pascal.

RE: GPIO interrupt question in MSP430X of freeRTO

Posted by Richard on January 3, 2012
FreeRTOS uses only a single interrupt itself (to generate the time base), but does not limit your use of any other interrupts. It provides an API that allows tasks and interrupts to synchronise, and for data to be passed into and out of interrupts. Take a look at the "Interrupt Service Routines" section of the documentation page for the port you are using, and the API reference for any function that ends in "FromISR". You must not use an API function that does not end in FromISR in an interrupt.

Also look at the demo application that comes for the port you are using. Each demo has an example of at least one interrupt being used. In the MSP430X case, take a look at the serial.c file to find examples.

Regards.


[ 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