FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
- M451 Base Series(118)
- M451M Series(117)
- M452 USB Series(130)
- M4521 USB Series(1)
- M453 CAN Series(128)
- M463 CAN FD/USB HS Series(1)
- M467 Ethernet/Crypto Series(1)
- M471 Series(1)
- M479 Motor Control Series(1)
- M481 Base Series(4)
- M482 USB FS OTG Series(4)
- M483 CAN Series(4)
- M484 USB HS OTG Series(4)
- M485 Crypto Series(4)
- M487 Ethernet Series(4)
- M4TK Touch Key Series(25)
- NUC442/472 Series(130)
- NUC472 Series(1)
- NUC505 Series(138)
FAQ
Why does DSP (Digital Signal Processing) need Q format? What do q31, q15, q7, and f32 mean? Issue Date:2016-11-29
In DSP operations, when a problem cannot be solved by using an integer, and the floating-point operation spends too much time, the Q format can be used to solve the problem regarding performance and operation time.
- q31, q15, and q7 use a fixed-point number to represent the bits of fractional part. The data size is 32, 16, and 8 bits respectively, and the values are in the range of -1 to 0.9999.
- f32 is the floating-point number that uses 32 bits to store and represent.
Example:
The hexadecimal number 0x2000 = 8192, but in the q15 format is 0.25, the reason is that 0x2000 expands into the binary number 0010 0000 0000 0000, and then includes 15 fractional bits, i.e. 0.010 0000 0000 0000 is equal to 0.25 of the 10's carry (the first digit of the left is the number of symbols).
In addition, after the multiplication of Q format, it needs to be shifted to the right. The shift depends on the Q format. The multiplication of q15 represents to shift 15 bits to the right; q7 represents to shift 7 bits to the right, and so on.
Example:
There are two decimal digits, 0.25 and 0.5, expressed in the q7 format as 0.010 0000 and 0.100 0000, which becomes 0000 1000 0000 0000 after multiplication, and then becomes 0.001 0000 after 7 bits to the right. In q7 format, it is equal to 0.125 of the 10's carry.
Products: | Microcontrollers ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,M4TK Touch Key Series ,NUC442/472 Series ,NUC505 Series |
---|---|
Applications: | |
Function: | Peripherals,ARM,DSP |