5.0

5.0 | 1 rating Rate this file 25 Downloads (last 30 days) File Size: 10.9 KB File ID: #19316

Fixed-Point ATAN2 using CORDIC

by Giorgia Zucchelli

 

25 Mar 2008 (Updated 25 Mar 2008)

This demo shows how a fixed-point cordic algorithm to calculate a phase from polar coordinates (arct

| Watch this File

File Information
Description

This demo consists of a m-file script (fixed_point_atan2_using_cordic.m) and a m-file function (atan2_fixpt.m). The script contains a step-by-step explanation of how a four quadrant arctan can be calculated using a CORDIC (COordinate Rotation DIgital Computer) algorithm. The first part shows the CORDIC algorithm in floating-point double precision, whereas the second part of the m-file explains how to implement the CORDIC in 16-bit fixed-point with bit shifts. The third part shows how to generate C code for the m-file function to speed-up the algorithm.

The m-file function contains an implementation of the CORDIC in Embedded MATLAB™ compliant m-code. This function can be used to generate C-code or HDL (VHDL or Verilog) in MATLAB® of Simulink®.

Required Products Fixed-Point Toolbox
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
15 Jul 2010 Ali

can you please elaborate how you came across the trade off between fixed point and algorithmic precision.
Thanks

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
dsp Giorgia Zucchelli 22 Oct 2008 09:55:04
cordic atan atan2 arctan tan Giorgia Zucchelli 22 Oct 2008 09:55:04
cordic atan atan2 arctan tan Hong Ye 23 Oct 2008 09:32:27

Contact us at files@mathworks.com