| 전자부품 데이터시트 검색엔진 |
|
AN3984 데이터시트(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3984 데이터시트(HTML) 39 Page - STMicroelectronics |
|
39 / 46 page ![]() AN3984 Matlab code (functions) Doc ID 022240 Rev 1 39/46 A.8 Float to hex conversion (myFloat2Hex.m) %-------------------------------------------------------------------------% % function [floatN] = myFloat2Hex(hexN, range) % Args:hexN -> hexadecimal number to be converted in string format % without the 0x, i.e. 0x123456 => '123456' (24 bits % only) % range -> coefficients range 4, 2, 1 % Return: floatN -> floating point notation number % % Description: converts a fixed point hexadecimal number into a % floating point one % % STMicroelectronics - Agrate (ITALY) % MSH - Audio & Sound BU % Revision: 1.1 % Date: 23 June 2011 %-------------------------------------------------------------------------% function [hexN] = myFloat2Hex(floatN, range) format long quantizerSetup.mode = 'fixed'; % quantizerSetup.roundmode = 'nearest'; quantizerSetup.roundmode = 'ceil'; quantizerSetup.overflowmode = 'saturate'; %Quantizer to translate from hex to num if(range == 1) quantizerquantizerSetup.format = ([24 23]); elseif(range == 2) quantizerquantizerSetup.format = ([24 22]); elseif(range == 4); quantizerquantizerSetup.format = ([24 21]); end q = quantizer(quantizerquantizerSetup); |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |