Hi. The funda is this. Eg : 0.5 in 2.14 format will be 0x2000 0.5 in 1.15 format will be 0x4000 -0.5 in 1.15 format will be 0x8000 Shifting can be done using the SR set of registers with either immediate shift or the shift loaded to the SE register. Preferable always use an arithmetic shift so that the sign shall get extended. |
Re: Re: Doubt Regarding Format Conversion in Fixed Point ADSP Processors!
Started by ●June 27, 2001