Maker Pro
Maker Pro

SMPS power supply

Hi everyone,

I have a SMPS which is powering my micro controller. The power supply is 24V and i am reading the same power supply voltage using micro controller by giving to one of the ADC channel. My doubt is i am reading the power supply voltage at every 1ms and when i plot my adc count i find that the voltage periodically goes to around 3v and then back to 24V. Does SMPS mean the voltage will be repeatedly going from OFF to ON. Am i reading the RC time constant before the power supply is stabilized. please help.

regards,
 
sorry it is my mistake, programming problem in S12x micro controller where in two cores (xgate and s12x) are available one core is updating the adc data of the voltage the other is trying to read at the same instance, hence there is data corruption at some points of the collected data and the value shows very less value than the actual value.
 
The ADC logic should determine when you can read the value, it cannot just be read every 1 ms as you might read while it is charging.
 
Read the datasheet, I don't have the time right now to fish out the details, but there are flags that get set that tell you when you can read the values. Look at the sample code in the data sheet.
 
Top