Hello, I´m using the ADC 10 Bit of S08DZ60 to convert a v...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hello, I´m using the ADC 10 Bit of S08DZ60 to convert a v...

3,304 Views
a_serbouti1
Contributor I
Hello,
I´m using the ADC 10 Bit of S08DZ60 to convert a voltage in the intervall from 0,5 to 4,5V.
In the Watch window I get maximally 910 and not the supposed 1024.
in this uC the Vrefh ist connected to Vddad und Vrefl to VSSad so that I can´t use any
voltage divider.
My question is how to get it with software?
I have read the datasheet but still can´t get it!
I´ll be merciful for any help or advices.
regards!
0 Kudos
1 Reply

258 Views
Denn
Contributor I
Hello,
 
Try putting this question in 8 bit controller section.
 
 


ADC VrefH & VrefL wrote:
 
I´m using the ADC 10 Bit of S08DZ60 to convert a voltage in the intervall from 0,5 to 4,5V.
In the Watch window I get maximally 910 and not the supposed 1024.
in this uC the Vrefh ist connected to Vddad und Vrefl to VSSad so that I can´t use any
voltage divider.
My question is how to get it with software?

You'll get 1024 when your voltage applied is equal to VDDAD !!! Reason is that VREFH ist connected to VDDAD as you said.
 
 
Calculations are as follows
Assumption I make is your VDDAD is 5V(please check this at your end)
 
ADC Counts you get=  Applied Voltage * 1024 /  VDDAD = 4.5*1024/5 =921.6. So I feel the value you get is fine.
 
Regards
Denn
0 Kudos