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>CTRDG_SetPhiClock</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CTRDG_SetPhiClock <IMG src="../image/NTR.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/ctrdg.h></CODE><BR> 20 <BR> 21 <CODE>void CTRDG_SetPhiClock( CTRDGPhiClock clock )</CODE></dd> 22</dl> 23<h2>Arguments</h2> 24<TABLE border="1" width="100%"> 25 <TBODY> 26 <TR> 27 <TD width="13%"><EM><STRONG>clock</STRONG></EM></TD> 28 <TD width="87%">PHI terminal output control setting</TD> 29 </TR> 30 </TBODY> 31</TABLE> 32 33<h2>Return Values</h2> 34<p>None.</p> 35 36<H2>Description</H2> 37<P>This function performs PHI terminal output control setting.</P> 38<P>The clock argument is in <CODE>CTRDGPhiClock</CODE> enum format and has the following meanings:</P> 39<TABLE> 40 <TBODY> 41 <TR> 42 <TD bgcolor="#eeeeee"><CODE>CTRDG_PHI_CLOCK_LOW</CODE></TD> 43 <TD bgcolor="#eeeeee">Low-level output</TD> 44 </TR> 45 <TR> 46 <TD bgcolor="#eeeeee"><CODE>CTRDG_PHI_CLOCK_4MHZ</CODE></TD> 47 <TD bgcolor="#eeeeee">4.19MHz clock output</TD> 48 </TR> 49 <TR> 50 <TD bgcolor="#eeeeee"><CODE>CTRDG_PHI_CLOCK_8MHZ</CODE></TD> 51 <TD bgcolor="#eeeeee">8.38MHz clock output</TD> 52 </TR> 53 <TR> 54 <TD bgcolor="#eeeeee"><CODE>CTRDG_PHI_CLOCK_16MHZ</CODE></TD> 55 <TD bgcolor="#eeeeee">16.76MHz clock output</TD> 56 </TR> 57 </TBODY> 58</TABLE> 59<P><BR> This function sets both the ARM9 and ARM7.</P> 60<P>This function is not thread-safe.</P> 61<h2>Internal Operation</h2> 62<P>Accesses the EXMEMCNT I/O register (0x4000204) of both the ARM9 and ARM7. To do this, it also sends an instruction to the ARM7 via PXI.</P> 63<h2>See Also</h2> 64<p><CODE><A href="CTRDG_GetPhiClock.html">CTRDG_GetPhiClock</A><br></CODE></p> 65 66<H2>Revision History</H2> 67<P>2006/04/28 Changed from MI_ to CTRDG. Revised functionality so that both the ARM7 and ARM9 are set.<BR>2003/12/18 Initial version</P> 68<hr><p>CONFIDENTIAL</p></body> 69</html> 70