Problem with ADC for 56F8037

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem with ADC for 56F8037

2,247 次查看
Krtektor
Contributor I
Hi.
I made an interface for control of electric drives but for sensing current i needed reference volteges Ureflo=1.65V and Urefh=3.3V. However, the ADC doesnt operate correctly for this configuration.  Can anybody help me?
0 项奖励
回复
2 回复数

1,146 次查看
Deeftepo
Contributor I

Hi.

I´m need use external reference voltages for de ADC. I´m using CodeWarrior and de EVM, the code generated look fine, but all mesures are 0.

 

... 

setReg(ADC_CAL,0x3000);  

 

Thanks. 

0 项奖励
回复

1,146 次查看
jag
Contributor IV
Hi,

you have to connect the two references at the right pins (for example at Vrefha and Vrefla). Then you have to set the right bits in the CAL register or the ADC.

Please check the 56F8037 datasheet and the 56F803X Peripheral Reference Manual for details.

Hope this helps.

Bye Jack
0 项奖励
回复