?? 第一屆飛思卡爾智能車競賽華中科技大學的程序清單 2_大學生參考網.mht
字號:
Roman'"><FONT=20
=
size=3D3>****************************************************************=
******************/=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">#include=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><hidef.h>=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">#include=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New =
Roman'"><mc9s12dg128.h>=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: blue; FONT-FAMILY: 'Times New Roman'">extern =
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #7f7f7f; FONT-FAMILY: 'Times New =
Roman'">SYSCLOCK</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">; =
</SPAN><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">/*=20
</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=D2=FD=D3=C3=C8=AB=BE=D6=B1=E4=C1=BF</FONT></SPAN><SP=
AN lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">,</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=CF=B5=CD=B3=CA=B1=D6=D3</FONT></SPAN><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'"> */ =
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">void=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #870000; FONT-FAMILY: 'Times New =
Roman'">CarMain</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">(</SPAN><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">void</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">);=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
size=3D3>/* <o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
=
size=3D3>****************************************************************=
*******************=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">*=20
PWM</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=B3=F5=CA=BC=BB=AF=BA=AF=CA=FD</FONT></SPAN><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
size=3D3>* <o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
=
size=3D3>****************************************************************=
******************/=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">void=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #870000; FONT-FAMILY: 'Times New =
Roman'">Init_PWMout</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">(</SPAN><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">void</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">)=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT size=3D3>{=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">PWME =
=3D 0x22;=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">/*01:50Hz=20
45:1kHz */ <o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT =
size=3D3>PWMPOL =3D 0x22;=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT =
size=3D3>PWMCTL =3D 0x50;=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT =
size=3D3>PWMCLK =3D 0x02;=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT =
size=3D3>PWMSCLA =3D 4;=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT size=3D3>}=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
size=3D3>/* <o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
=
size=3D3>****************************************************************=
*******************=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">*=20
PWM</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=CA=E4=B3=F6=BA=AF=CA=FD</FONT></SPAN><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">*=20
</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=B3=CC=D0=F2=C3=E8=CA=F6=A3=BA=CA=E4=C8=EB=B2=CE=CA=FD=
=CE=AA=B7=BD=CF=F2=A3=AC=CB=D9=B6=C8</FONT></SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">*=20
</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
=
face=3D=BA=DA=CC=E5>=B7=BD=CF=F2=A3=BA=A3=AD</FONT></SPAN><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">45</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
face=3D=BA=DA=CC=E5>=A1=AB</FONT></SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">45=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: #009a00; FONT-FAMILY: 'Times =
New Roman'">*=20
</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
face=3D=BA=DA=CC=E5>=CB=D9=B6=C8=A3=BA</FONT></SPAN><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">0</SPAN><SPAN=20
style=3D"COLOR: #009a00; mso-bidi-font-family: 'Times New =
Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT=20
face=3D=BA=DA=CC=E5>=A1=AB</FONT></SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">24000=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
=
size=3D3>****************************************************************=
******************/=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">void=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #870000; FONT-FAMILY: 'Times New =
Roman'">PWMout</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">(</SPAN><SPAN=20
lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">int=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #7f7f7f; FONT-FAMILY: 'Times New =
Roman'">Direction</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">, =
</SPAN><SPAN=20
lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">int=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #7f7f7f; FONT-FAMILY: 'Times New =
Roman'">Velocity</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">)=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'"><FONT size=3D3>{=20
<o:p></o:p></FONT></SPAN></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US=20
style=3D"COLOR: #7f7f7f; FONT-FAMILY: 'Times New =
Roman'">Direction=20
</SPAN><SPAN lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">=3D=20
</SPAN><SPAN lang=3DEN-US=20
style=3D"COLOR: #7f7f7f; FONT-FAMILY: 'Times New =
Roman'">Direction</SPAN><SPAN=20
lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'">/3 + =
4500;=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DDefault style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D3><SPAN=20
lang=3DEN-US=20
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -