Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Getting incorrect ATAN2 result with DsPic

Status
Not open for further replies.

jmarkwolf

Junior Member level 3
Joined
Feb 13, 2007
Messages
29
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,503
I'm employing a Sin, Cos, Atan2 construct to "average" a group of phase angle integers.

The equation works in Excel, but is generating a grossly incorrect result in the DsPic C30 compiler.

Tried using the "Q16" tricks from Microchip.

I'm stuck, Anybody have an example how to do this?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top