floating to fixed point conversion-help

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

floating to fixed point conversion-help

606件の閲覧回数
garimella
Contributor I

I was referring to AN3943 - which provides details of ATO algorithm. We require to generate C code using HDL coder from simulink to flash to the target(kinetis). We tried first by modelling this algorithm in simulink using all floating point operations. It works fine. Next we wanted to convert this to fixed point and we got into trouble. We are using external ADC(AD7606) to read the quadrature inputs. So we fixed the input data type to fixdt(1,16,15). sine/cosine functions within simulink was used. The results after fixed point conversion is erratic. Please provide advise for the same.

0 件の賞賛
返信
0 返答(返信)