www.ti.com
Instructions
UI16TOF32 RaH, RbH
Convert unsigned 16-bit integer to 32-bit floating-point value
Operands
RaH
floating-point destination register (R0H to R7H)
RbH
floating-point source register (R0H to R7H)
Opcode
LSW: 1110 0110
1000 1111
MSW: 0000 0000
00bb baaa
Description
When converting F32 to I16/UI16 data format, the F32TOI16/UI16 operation truncates to
zero while the F32TOI16R/UI16R operation will round to nearest (even) value.
RaH = UI16ToF32[RbH]
Flags
This instruction does not affect any flags:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
Pipeline
This is a 2 pipeline cycle (2p) instruction. That is:
UI16TOF32
RaH, RbH
; 2 pipeline cycles (2p)
NOP
; 1 cycle delay or non-conflicting instruction
; <-- UI16TOF32 completes, RaH updated
NOP
Any instruction in the delay slot must not use RaH as a destination register or as a
source operand.
Example
MOVXI
R5H, #0x800F
; R5H[15:0] = 32783 (0x800F)
UI16TOF32
R6H, R5H
; R6H = UI16TOF32 (R5H[15:0])
NOP
; 1 cycle delay for UI16TOF32 to complete
; R6H = 32783.0 (0x47000F00)
See also
SPRUEO2A – June 2007 – Revised August 2008
Instruction Set
131
Содержание TMS320C28 series
Страница 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...