| 전자부품 데이터시트 검색엔진 |
|
AN2388 데이터시트(PDF) 37 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2388 데이터시트(HTML) 37 Page - STMicroelectronics |
|
37 / 54 page ![]() AN2388 Software design 37/54 4.4.2 Numerical considerations The PU model has been developed in order to represent some quantities that reach nominal value in certain condition. Take into consideration that during the transient the current might reach higher values than the nominal current (Ib). The numeric format consideration Integer data is inherently represented as a signed two’s complement value, where the most significant bit is defined as a sign bit. Generally, the range of an N-bit two’s complement integer is -2N-1 to 2N-1-1. For a 16-bit integer, the data range is -32768 (0x8000) to 32767 (0x7FFF), including 0. Fractional data is represented as a two’s complement number where the most significant bit is defined as a sign bit, and the radix point is implied to lie just after the sign bit. This format is commonly referred to as 1.15 (or Q15) format, where 1 is the number of bits used to represent the integer portion. The range of an N-bit two’s complement fraction with this implied radix point is -1.0 to (1-21-N). For a 16-bit fraction, the 1.15 data range is -1.0 (0x8000) to 0.999969482 (0x7FFF), including 0.0 . The resolution in this format is: In normal saturation mode, the 32-bit accumulators use a 1.31 format, which enhances the precision to 4.6566*10-10. An example of different representations (positive and negative numbers) are shown below: 4.4.3 ST10-DSP features ST10 is a combined CPU and DSP. As a CPU, it is a powerful real time oriented 16-bit CPU. As a DSP, it is a single MAC 16 by 16-bit multiplier with a 40-bit accumulator 5 15 10 * 01518 . 3 2 1 − = 0 000000000000 1 1 -20 2-1 2-15 Implied radix point 0x4001 = 2-1 + 2-15 = 0.000301518 = 0.500301518 1.15 Fractional Format . 1 0000000 000010 1 -20 2-1 2-15 Implied radix point 0xC002 = -20 + 2-1 + 2-14 = -1.0 + 0.5 + 0.000061035 = -0.499938965 1.15 Fractional Format (negative number) 2-14 . |
|
링크 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 |