I am new to nxp s32k144 . I have successfully tested the read and write functions but now i want to use ADC module and write code for reading the value from potentiometer and then displaying it on semihosting console .
If possible please provide me the code and also give me step by step instructions to run that code and view the output
Hi,
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:
Jiri
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
Hi,
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).
Jiri
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