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_WaitDiv</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">CP_WaitDiv <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>void CP_WaitDiv( void )</CODE></dd>
22</dl>
23
24<h2>Arguments</h2>
25<p>None.</p>
26
27<h2>Return Values</h2>
28<p>None.</p>
29
30<H2>Description</H2>
31<P>This function waits until the Divider is in a ready state.</P>
32<P>
33The calculation cycle of the divider 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>
34<TABLE border="1">
35  <TBODY>
36    <TR>
37      <TH>Division Mode</TH>
38      <TH>Calculation</TH>
39      <TH>Calculation Cycles</TH>
40      <TH>CPU Cycle Conversion</TH>
41    </TR>
42    <TR>
43      <TD>CP_DIV_32_32BIT_MODE</TD>
44      <TD>32-bit divided by 32-bit</TD>
45      <TD>18 cycles</TD>
46      <TD>36 cycles</TD>
47    </TR>
48    <TR>
49      <TD>CP_DIV_64_32BIT_MODE</TD>
50      <TD>64-bit divided by 32-bit</TD>
51      <TD>34 cycles</TD>
52      <TD>68 cycles</TD>
53    </TR>
54    <TR>
55      <TD>CP_DIV_64_64BIT_MODE</TD>
56      <TD>64-bit divided by 64-bit</TD>
57      <TD>34 cycles</TD>
58      <TD>68 cycles</TD>
59    </TR>
60  </TBODY>
61</TABLE>
62
63<h2>Internal Operation</h2>
64<p><CODE>Reference DIVCNT(0x4000280) of the IO register.<br></CODE></p>
65
66<h2>See Also</h2>
67<p><CODE><A href="CP_SetDivImm.html">CP_SetDivImm*</A>, <A href="CP_SetDiv.html">CP_SetDiv*</A>, <A href="CP_IsDivBusy.html">CP_IsDivBusy</A>, <A href="CP_GetDivResult.html">CP_GetDivResult*</A>, <A href="CP_GetDivRemainder.html">CP_GetDivRemainder*</A></CODE></p>
68
69<H2>Revision History</H2>
70<P>2006/08/09 Added description of calculation cycle number.<BR>2004/01/09 Added contents.<BR>2003/12/01 Initial version.</P>
71<hr><p>CONFIDENTIAL</p></body>
72</html>
73