⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 第一届飞思卡尔智能车竞赛华中科技大学的程序清单 3_大学生参考网.mht

📁 飞思卡尔单片机mc9s12dg128的ad初始化参考程序
💻 MHT
📖 第 1 页 / 共 5 页
字号:
            lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">case=20
            </SPAN><SPAN lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">0x80:=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>Direction =3D=20
            4000; <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>Velocity =3D=20
            LOWSPEED; <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'">break</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"><FONT =
size=3D3><SPAN=20
            lang=3DEN-US style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">case=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">0x<st1:chmetcnv =
TCSC=3D"0"=20
            NumberType=3D"1" Negative=3D"False" HasSpace=3D"False" =
SourceValue=3D"3"=20
            UnitName=3D"C" w:st=3D"on">3c</st1:chmetcnv>: </SPAN><SPAN =
lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">/* =
0011 1100=20
            over start line */ <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'">case=20
            </SPAN><SPAN lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">0xff:=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">/* =
1111 1111=20
            over crossing line */ <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'">case=20
            </SPAN><SPAN lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">0x00:=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New Roman'">/* =
0000 0000=20
            go straight not need changed state */ =
<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'">default</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"><FONT =
size=3D3><SPAN=20
            lang=3DEN-US=20
            style=3D"COLOR: blue; FONT-FAMILY: 'Times New =
Roman'">break</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: blue; FONT-FAMILY: 'Times New =
Roman'">if</SPAN><SPAN=20
            lang=3DEN-US style=3D"FONT-FAMILY: 'Times New =
Roman'">(signal &gt;=20
            0x<st1:chmetcnv TCSC=3D"0" NumberType=3D"1" =
Negative=3D"False"=20
            HasSpace=3D"False" SourceValue=3D"0" UnitName=3D"F"=20
            w:st=3D"on">0f</st1:chmetcnv>) <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>Direction =3D=20
            -Direction; <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=20
            size=3D3>PWMout(Direction, LOWSPEED); =
<o:p></o:p></FONT></SPAN></P>
            <P class=3DDefault=20
            style=3D"TEXT-JUSTIFY: inter-ideograph; MARGIN: 0cm 0cm 0pt; =
TEXT-ALIGN: justify"><SPAN=20
            lang=3DEN-US style=3D"FONT-FAMILY: 'Times New Roman'"><FONT =
size=3D3>}=20
            <o:p></o:p></FONT></SPAN></P>
            <P class=3DDefault=20
            style=3D"TEXT-JUSTIFY: inter-ideograph; MARGIN: 0cm 0cm 0pt; =
TEXT-ALIGN: justify"><SPAN=20
            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"><SPAN =
lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'"><FONT=20
            size=3D3>* LCD1620.c <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>* ICC-AVR application builder : 2006-1-8 21:43:48=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>* Target : M8 <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>* <st1:place w:st=3D"on"><st1:City=20
            w:st=3D"on">Crystal</st1:City></st1:place>: 4.0000Mhz=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>* Note : Don't change this file if possible.=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>****************************************************************=
******************/=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">CMD_CLEAR 0x01=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">CMD_RESET 0x02=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'">&lt;iom8v.h&gt;=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'">&lt;macros.h&gt;=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_DATA 0xff=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_EN 0x01 =
</SPAN><SPAN=20
            lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">//PORTC 0=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_RS 0x02 =
</SPAN><SPAN=20
            lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">//PORTC 1=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_RW 0x04 =
</SPAN><SPAN=20
            lang=3DEN-US=20
            style=3D"COLOR: #009a00; FONT-FAMILY: 'Times New =
Roman'">//PORTC 2=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_DATAPORT PORTB=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_ENPORT PORTA=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_RSPORT PORTA=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'">#define=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New Roman'">LCD_RWPORT PORTA=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: blue; FONT-FAMILY: 'Times New =
Roman'">void=20
            </SPAN><SPAN lang=3DEN-US=20
            style=3D"FONT-FAMILY: 'Times New =
Roman'">lcd_init(</SPAN><SPAN=20
            lang=3DEN-US=20
         

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -