cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find ADCy_AWDx_OUT ?

matic
Associate III
Posted on September 28, 2015 at 13:05

When ADC threshold is reached ADCy_AWDx_OUT is set and stays high as long as first conversion is between low and high threshold levels.

Where can I read this value? Is possible to configure interrupt for this transitions between low and high state at ADCy_AWDx_OUT ?

Thanks
3 REPLIES 3
raptorhal2
Lead
Posted on September 28, 2015 at 17:00

Care to reveal which processor ?

Cheers, Hal

matic
Associate III
Posted on September 28, 2015 at 22:23

STM32F303

I already found that it is related only to advanced timers as TIM1 and TIM8. I would like to achieve an interrupt only once when first ADC result is outside programmed threshold. ADCy_AWDx_OUT allowed this (it become high at first conversion which is higher than threshold and then stays high), but problem is because I get more than one interrupt because of noise.

raptorhal2
Lead
Posted on September 30, 2015 at 16:10

I believe you should monitor the status of AWD1, AWD2 or AWD3 flag in the ADC Interrupt & Status Register. It doesn't reset until you reset it with software.

Cheers, Hal