Skip to main content
HMura.6
Associate II
Feb 16, 2021 12:25 AM UTC
Solved

STM32L0 ADC register

I am using STM32L073.

When using this ADC, the EOC of the flag ADC_ISR for which AD conversion has been completed does not change unless the EOCIE of ADC_IER is set.

is it right.

This topic has been closed for replies.
Bowman32
Bowman32Best answer
ST Employee
Feb 23, 2021 11:43 AM UTC

Hi @HMura.6​ 

The EOC of the flag ADC_ISR is set by hardware at the end of each conversion of a channel.

If the EOCIE (End of conversion interrupt enable) of ADC_IER is enabled then, an interrupt is generated when EOC bit is set.

Bouraoui

3 replies

Bowman32
Bowman32Best answer
ST Employee
Feb 23, 2021 11:43 AM UTC

Hi @HMura.6​ 

The EOC of the flag ADC_ISR is set by hardware at the end of each conversion of a channel.

If the EOCIE (End of conversion interrupt enable) of ADC_IER is enabled then, an interrupt is generated when EOC bit is set.

Bouraoui

Andrew Neil
Super User
Feb 23, 2021 12:00 PM UTC

"the EOC of the flag ADC_ISR for which AD conversion has been completed does not change unless the EOCIE of ADC_IER is set"

How, exactly, do you observe that?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
HMura.6
HMura.6Author
Associate II
Feb 24, 2021 12:20 AM UTC

I was thinking of monitoring ADC_ISR with software.

However, I understood the condition.

Thank you very much.