2018-01-24 07:00 AM
Am not able to read the ADC value externally in simulink scope any one please help me regarding this. Am able to connect successfully externally but am not able to monitor the ADC values in scope.
Am using STM32F407VG discovery board. Other than PWM and GPIO is working fine in external mode
Please any one help me regarding this. What configuration I have to do to read the ADC value in simulink.
Any configuration (CubeMX and Simulink block) or examples are there is more helpful,
Here i attached the simulink and cubeMx file
Thank you
#simulink #stm32-mat/target-matlabSolved! Go to Solution.
2018-02-08 02:27 AM
Hello, Sajeevkumar
I found the ADC1 configuration in your .ioc file is PA5 pin so maybe this is cause your problem.
Because this pin is SCL/SPC pin for LIS302DL or LIS3DSH as the below picture.
My recommendation is change to another pin such as ADC1_IN1(PA1 pin) and use default configuration in ADC_Regular_ConversionMode.
Best regards,
2018-02-08 02:27 AM
Hello, Sajeevkumar
I found the ADC1 configuration in your .ioc file is PA5 pin so maybe this is cause your problem.
Because this pin is SCL/SPC pin for LIS302DL or LIS3DSH as the below picture.
My recommendation is change to another pin such as ADC1_IN1(PA1 pin) and use default configuration in ADC_Regular_ConversionMode.
Best regards,