# peterd

Members

10

• Rank
Beginner

## Profile Information

• Are you University user?
No
1. ## Unable to use fxATan2 block

Atan2(sin(θ), cos(θ)) uniquely determines angle throughout a full 2pi rotation. A single arctan(sin(θ)/cos(θ)) is ambiguous since negative valued sin(θ)/positive cos(θ) has the same value as positive sin(θ)/negative cos(θ) Additionally, using atan2 in fixed point is computationally faster and more precise than dividing sin/cos and then doing arctan(). The result angle of fxAtan2 ranges from 0 to 1, atan2 ranges from -π to π In the plot above we use 1 Hz sin and cos.
2. ## SPI Slave transmit problem

The thing to remember about SPI is that the Master controls the clock. So if you want to read data from the slave, the Master must write dummy data to the slave just to drive the clock even though the slave will ignore any data that the Master writes. In your diagram the Master never does a write, so no data will be exchanged. The attached diagram has the master drive the clock at a 1kHz rate. Please try it. SPI-New-Slv2.vsm

5. ## Phase Lock Loop Development

Post your .vsm files so we can see what the problem might be
6. ## TI LaunchPad Compilation Error

For some reason, your environment variable VS_DIR is not set. It should be set to c:\stembed2017 in your case. The link below explains how: https://www.computerhope.com/issues/ch000549.htm

Thanks!
8. ## How to fix jumbled toolbar

Toolbars can become stacked vertically for no apparent reason. The stacked tool bars are due to the unmaximized window of being quite narrow. Solution is to: 1) unmaximize 2) mouse drag vertical edges of app window to expand near full screen 3) arrange toolbars as desired, then exit. On restart, toolbars should retain horizontal arrangement.
9. ## How to fix jumbled toolbar

Toolbars can become stacked vertically for no apparent reason. The stacked tool bars are due to the unmaximized window of being quite narrow. Solution is to: 1) unmaximize 2) mouse drag vertical edges of app window to expand near full screen 3) arrange toolbars as desired, then exit. On restart, toolbars should retain horizontal arrangement.
10. ## how interface ultrasonic sensor with msp430g2553

Yogesh, what distances are you trying to measure? It affects the data rate of the timer as it can only hold 16 bits. The attached should measure up to 34 meters with .5 mm accuracy. I assume pin functions as follows: Pin Functions P1.1 - send usonic pulse out P1.2 - read return pulse P1.0 - set high when distance > 40cm Pete pulseMeasurement.vsm
×
×
• Create New...