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.

How to create ATAN function using LUT with 15 bit resolution

Status
Not open for further replies.

paramesh

Newbie level 5
Joined
Apr 24, 2008
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
ATAN creation using LUT

Hi all,

currently I am working on DDS.

How to create ATAN function using LUT with 15 bit resolution. with less memory.

I need to store the data and access faster rate.

thanks,
 

Re: ATAN creation using LUT

How to calculate trigonometric functions: **broken link removed**

Usually CORDIC is used for atan


Special approximations

static inline double arctg1 (double x)
//-------------------------------------------
// 2
// arctg(x) = A*x - B*x , if (x >= 0)
//
// 2
// arctg(x) = A*x + B*x , if (x < 0)
//
// error <= 0.004
//-------------------------------------------
{
if (x < 0) {
return x*(1.0597 + 0.27131*x);
}else {
return x*(1.0597 - 0.27131*x);
}
}/*arctan1*/


α=atan2(I,Q) (α in +- pi/4)
α = I*Q / (I^2 + 0,28125*Q^2)
error<0.045 radian (0.26 grad)

But If you use no operation, only LUT you should use linear quantization tables and correspondent restoration tables. The only posibility for making size less is to take into account range of argument or changing accuracy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top