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

STM32F10x - FreeRTOS - ADC - ISR

Posted by Valerio GiampĂ  on May 24, 2011
Dear Collegue,
I have to use an ADC integrated into the STM32F10x microcontroller.
The firmware application is based of STM32 Peripheral Library and FreeRTOS Porting for STM32 Arm Cortex M3 RTOS.
I have to configure the ADC to operate in single channel continuous conversion mode.
i would select the ouuput data of the ADC with the ADC Interrupt service routine.
I don't know How I can configure the ADC Interrupt and How I can generate an OS Signal in the ADC ISR to start the task.
Can yu help me?
In addition I would like to know if I can use in alternative at the ADC ISR, a DMA to transfer the ADC Output data into the memory without CPU load and How I can do it.

RE: STM32F10x - FreeRTOS - ADC - ISR

Posted by MEdwards on May 24, 2011
If you have questions about setting up STM32 ADC conversions, then read the STM32 manual, look at the examples ST give you, and then if you are stuck ask on an STM32 forum. This is a FreeRTOS forum.

Hidden in your question is a sub question about how to generate an OS signal to start a task. Every FreeRTOS port has its own demo project, and each demo project includes an interrupt definition that demonstrates what you want to do. Have a look at that first, read the FreeRTOS tutorial books, and inspect the queue and semaphore API function descriptions on the web site (look at the ones that end in the text FromISR). When you have done all that, if you cannot get it to work, then ask again with information on what you have tried and what the problem is.

Until that time, I don't think anybody here is going to put any time into answering such an open question when all the information you need is already provided.


[ 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