1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>CP_IsSqrtBusy</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CP_IsSqrtBusy <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/cp.h></CODE><BR> 20 <BR> 21 <CODE>s32 CP_IsSqrtBusy( void )</CODE></dd> 22</dl> 23 24<h2>Arguments</h2> 25<p>None.</p> 26 27<h2>Return Values</h2> 28<p>Determines whether square root calculator is busy. 0 means ready state and non-0 means busy state.</p> 29<H2>Description</H2> 30<P>Checks whether square root calculator is busy or not. After writing in a square root calculation register, it will be in a busy state for a fixed cycle period. When acquiring results of square root calculation, you need to read when it is no longer busy. The calculation cycle is as follows. (The calculation cycle is a cycle number based on 33.514 MHz. The CPU cycle conversion is a cycle number based on 67.028 MHz.))</P> 31<TABLE border="1"> 32 <TBODY> 33 <TR> 34 <TH>Square Root Calculation Mode</TH> 35 <TH>Calculation</TH> 36 <TH>Calculation Cycles</TH> 37 <TH>CPU Cycle Conversion</TH> 38 </TR> 39 <TR> 40 <TD>CP_SQRT_32BIT_MODE</TD> 41 <TD>Square root calculation of 32-bit values</TD> 42 <TD>13 cycles</TD> 43 <TD>26 cycles</TD> 44 </TR> 45 <TR> 46 <TD>CP_SQRT_64BIT_MODE</TD> 47 <TD>Square root calculation of 64-bit values</TD> 48 <TD>13 cycles</TD> 49 <TD>26 cycles</TD> 50 </TR> 51 </TBODY> 52</TABLE> 53 54<h2>Internal Operation</h2> 55<p><CODE>Reference SQRTCNT(0x40002B0) of the IO register.<br></CODE></p> 56 57<h2>See Also</h2> 58<p><code><A href="CP_SetSqrtImm.html">CP_SetSqrtImm*</A></code>, <code><A href="CP_SetSqrt.html">CP_SetSqrt*</A></code>, <code><A href="CP_WaitSqrt.html">CP_WaitSqrt</A></code>, <code><A href="CP_GetSqrtResult.html">CP_GetSqrtResult*</A></code></p> 59 60<H2>Revision History</H2> 61<P>2004/11/02 Corrected the error in cycle numbers. Changed the function type in the C Specification from int to s32.<br> 2004/06/16 Added description of cycle number.<BR> 2004/01/09 Added contents.<BR> 2003/12/01 Initial version.</P> 62<hr><p>CONFIDENTIAL</p></body> 63</html> 64