/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / STM32F10x - FreeRTOS - ADC - ISR

Username:     
Password:     
             

Forum

# 1   2011-05-24 15:08:55 STM32F10x - FreeRTOS - ADC - ISR

valeriogiampa
New member
Registered: 2011-02-10
Posts: 3

STM32F10x - FreeRTOS - ADC - ISR

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.

Offline

 

# 2   2011-05-25 06:13:27 STM32F10x - FreeRTOS - ADC - ISR

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: STM32F10x - FreeRTOS - ADC - ISR

The Primer's CircleOS does touchscreen and battery voltage acquisition by managing ADC in DMA mode. It can be a good example.
Take a look at this page :
http://www.stm32circle.com/projects/circleos.php.
Else, you can see the several examples provided with the ST peripheral library on ST website.

Offline

 

Board footer