cancel
Showing results for 
Search instead for 
Did you mean: 

Out of range channel written in ADC seq register for STM32L475

Harish1
Associate III

Hi,

What happens if I write them out of range channel numbers in the ADC sequence register.

For STM32L475, the channel range is 0 -18 but I wrote the channel number 19. While debugging, from debug window I found that the seq. register accepting number 19th.

But I am not getting what would happen if I do like this?

Can anybody help here?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

The RM doesn't guarantee anything in this case. Using invalid settings leads to undefined behavior.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

The RM doesn't guarantee anything in this case. Using invalid settings leads to undefined behavior.

If you feel a post has answered your question, please click "Accept as Solution".