I'm using S32K144 evaluation board and trying to use the potentiometer (ADC0_SE12)to change the light intensity of LED.My problem is how I can update the potentiometer value in run time and see an immediate change of the light intensity?
unfortunately this feature is not supported by S32DS. In runtime you can only see values in PE Micro Real Time Expressions:
You can use FreeMaster for that. There is an example in S32DS:
Thank you for fast reply,Unfortunately "ftm_pwm_s32k144" is not useful ,since I'm not using SDK. Actually I want to acquire the potentiometer value to ADC and generate PWM to change the RGB light intensity?...I used
PE Micro Real Time Expressions,if I changed the potentiometer and I have to run the code every time so that I can see the value changing also the intensity..What I need is to see the intensity changing with potentiometer changing without the need to run the code each time !!
I hope it is clear
sorry, I don't get it. If I understand it correctly - you like to simulate potentiometer output voltage by Debugger in real time, Am I correct?
PE Micro allows only reading values in real time. Value can't be written in real time (you need to stop program, change value, and run it again).
yes that's right,I get it now ....I have another question :I would like to update the pwm compare register from the ADC0 to control the the duty cycle of the pwm using the adc,,I'm using FTM0_ch0 for the pwm output
Retrieving data ...