Electronic Components Datasheet Search
  English  ▼

X  

AN3984 Datasheet(PDF) 39 Page - STMicroelectronics

Part # AN3984
Description  The purpose of this document is to provide a tool to calculate
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3984 Datasheet(HTML) 39 Page - STMicroelectronics

Back Button AN3984 Datasheet HTML 35Page - STMicroelectronics AN3984 Datasheet HTML 36Page - STMicroelectronics AN3984 Datasheet HTML 37Page - STMicroelectronics AN3984 Datasheet HTML 38Page - STMicroelectronics AN3984 Datasheet HTML 39Page - STMicroelectronics AN3984 Datasheet HTML 40Page - STMicroelectronics AN3984 Datasheet HTML 41Page - STMicroelectronics AN3984 Datasheet HTML 42Page - STMicroelectronics AN3984 Datasheet HTML 43Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 46 page
background image
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);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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