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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

3,456件の閲覧回数
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 件の賞賛
返信
1 返信

410件の閲覧回数
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 件の賞賛
返信