Download 1 Program Summary

Transcript
4 applied instructions
4-9-8.Sine[SIN]
1. Summary
Float Sine[SIN]
16 bits
-
Execution
condition
Normally
rising/falling edge
Hardware
-
ON/OFF,
32 bits
SIN
Suitable
XC2.XC3.XC5.XCM
Models
-
Software
requirement
requirement
2. Operands
Operands
Function
Data Type
S
The soft element address need to do sine
32 bits, BIN
D
The result address
32 bits, BIN
3. Suitable soft components
Word
Operands
System
D
FD
S
●
●
D
●
X0
Description
ED
SIN
→
(D51,D50)
Binary Floating
TD
CD
Constant
Module
ID
DX
DY
DM
DS
K/H
●
●
●
●
●
●
●
●
S·
D·
D50
D60
QD
(D61,D60)SIN
Binary Floating
 This instruction performs the mathematical SIN operation on the floating point value
in S (angle RAD). The result is stored in D.
S·
D51
D50
RAD value (angle×π/180)
Assign the binary floating value
D·
D61
D60
SIN value
Binary Floating