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_IsDivBusy</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">CP_IsDivBusy <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 &lt;nitro/cp.h&gt;</CODE><BR>
20  <BR>
21  <CODE>s32 CP_IsDivBusy( void )</CODE></dd>
22</dl>
23
24<h2>Arguments</h2>
25<p>None.</p>
26
27<h2>Return Values</h2>
28<p>Whether the divider is busy or not. 0 means ready state and non-0 means busy state.</p>
29
30<H2>Description</H2>
31<P>Determines whether the divider is busy or not. After writing to a divider register, it will be in busy status for a fixed cycle period. To get the result of division, 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>
32<TABLE border="1">
33  <TBODY>
34    <TR>
35      <TH>Division Mode</TH>
36      <TH>Calculation</TH>
37      <TH>Calculation Cycles</TH>
38      <TH>CPU Cycle Conversion</TH>
39    </TR>
40    <TR>
41      <TD>CP_DIV_32_32BIT_MODE</TD>
42      <TD>32-bit divided by 32-bit</TD>
43      <TD>18 cycles</TD>
44      <TD>36 cycles</TD>
45    </TR>
46    <TR>
47      <TD>CP_DIV_64_32BIT_MODE</TD>
48      <TD>64-bit divided by 32-bit</TD>
49      <TD>34 cycles</TD>
50      <TD>68 cycles</TD>
51    </TR>
52    <TR>
53      <TD>CP_DIV_64_64BIT_MODE</TD>
54      <TD>64-bit divided by 64-bit</TD>
55      <TD>34 cycles</TD>
56      <TD>68 cycles</TD>
57    </TR>
58  </TBODY>
59</TABLE>
60
61<h2>Internal Operation</h2>
62<p><CODE>Reference DIVCNT(0x4000280) of the IO register.<br></CODE></p>
63
64<h2>See Also</h2>
65<p><A href="CP_SetDivImm.html">CP_SetDivImm*</A>, <A href="CP_SetDiv.html">CP_SetDiv*</A>, <A href="CP_WaitDiv.html">CP_WaitDiv</A>, <A href="CP_GetDivResult.html">CP_GetDivResult*</A>, <A href="CP_GetDivRemainder.html">CP_GetDivRemainder*</A></p>
66
67<H2>Revision History</H2>
68<P>2004/11/02 Changed the function type of C Specification from u32 to s32.<BR> 2004/06/16 Added description of cycle number.<BR> 2004/01/09 Added contents.<BR> 2003/12/01 Initial version.</P>
69<hr><p>CONFIDENTIAL</p></body>
70</html>
71