04.htm

来自「硬盘MP3开发的所有源代码!整理自21ICBBS。 原作者xwj!」· HTM 代码 · 共 694 行 · 第 1/5 页

HTM
694
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://www.21icbbs.com/club/bbs/ShowAnnounce.asp?v=&ID=1702045 -->
<!--
	- 21ic技术社区
	- Based on Active BBS 5.0 By stars@21ic.com	
	- Last Updated: 2001-6-11 
--><HTML><HEAD><TITLE>21ICBBS讨论</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="03.files/style.css" type=text/css rel=STYLESHEET>
<META http-equiv=Expires content=0>
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY><IFRAME id=wFrameSpamReport name=wFrameSpamReport src="about:blank" 
width=0 height=0></IFRAME>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD align=middle><IMG height=4 src="03.files/blank.gif" width=1 
      border=0><BR></TD></TR></TBODY></TABLE>
<SCRIPT language="" src="03.files/dcookie.js"></SCRIPT>

<SCRIPT>
  	 var maxLenth=60;
	
	 function showTitle(str){
		document.write((str.length>(maxLenth+35)?str.substr(0,(maxLenth+35)-1)+"...":str))
	 }
	 
	 function showRelateTopic(){
		document.write((str.length>maxLenth?str.substr(0,maxLenth-1)+"...":str))
	 }
</SCRIPT>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD class=text9 vAlign=top width="100%"><IMG height=1 
      src="C:\Documents and Settings\liweihua\My Documents\硬盘mp3源代码\03.files\blank(1).gif" 
      width=190><BR>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=pagehead noWrap>阅读帖子</TD></TR></TBODY></TABLE><IMG height=5 
      src="C:\Documents and Settings\liweihua\My Documents\硬盘mp3源代码\03.files\blank(1).gif" 
      width=1><BR></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=2 cellPadding=1 width="100%">
  <TBODY>
  <TR>
    <TD bgColor=#003399><FONT color=white>源代码(续,未完)头文件部分</FONT></B></TD></TR>
  <TR>
    <TD bgColor=#e6f4ff><IMG src="03.files/mood24.gif" align=absMiddle> 
      computer00 发表于 2005-6-17 19:39 <FONT 
      color=#336699><STRONG>DVB与视音频</STRONG></FONT> <A 
      href="http://www.21icbbs.com/club/bbs/list.asp?boardid=25"><FONT 
      color=red>←返回版面</FONT></A> <A 
      href="http://www.21icbbs.com/club/bbs/queryInfo.asp?key=RVZZZqxb0ZGucBWQ4rOcZWMO%2D4SUiwg1%2FZLwQvOEa%2Fcv12LSz9E%2D2%2Fa%2BZ6OZ%2F%2FQ4&amp;txtname=computer00" 
      target=_blank><IMG alt=按此察看该网友的资料 src="03.files/profile.gif" border=0></A> 
      <A 
      href="http://www.21icbbs.com/club/bbs/info/addToBookMark.asp?type=announce&amp;boardID=25&amp;id=1702045&amp;topic=%D4%B4%B4%FA%C2%EB%A3%A8%D0%F8%2C%CE%B4%CD%EA%A3%A9%CD%B7%CE%C4%BC%FE%B2%BF%B7%D6&amp;author=computer00"><IMG 
      alt=按此把文章加入收藏夹 src="03.files/fav.gif" border=0></A> <A 
      href="http://www.21icbbs.com/club/bbs/ownerEditAnnounce.asp?v=&amp;id=1702045"><IMG 
      alt=按此编辑本帖 src="03.files/edit.gif" border=0></A><A 
      title=怀疑该贴为广告、垃圾等,可向管理员举报 
      href="http://www.21icbbs.com/club/bbs/SpamReport.asp?id=1702045" 
      target=wFrameSpamReport>举报该贴</A></TD></TR>
  <TR>
    <TD bgColor=#e6f4ff><BR>
      <TABLE cellSpacing=1 cellPadding=3 width="95%" align=center>
        <TBODY>
        <TR>
          <TD 
            style="FONT-SIZE: 12px; LINE-HEIGHT: 18px">/*H**************************************************************************<BR>* 
            NAME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;regsnd1.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>*----------------------------------------------------------------------------<BR>* 
            Copyright (c) 2003 
            Atmel.<BR>*----------------------------------------------------------------------------<BR>* 
            RELEASE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;snd1c-refd-nf-4_0_3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>* 
            REVISION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>*----------------------------------------------------------------------------<BR>* 
            PURPOSE:<BR>* This file defines the T8xC51SND1 
            component:<BR>*&nbsp;&nbsp;&nbsp;- Register 
            SFRs<BR>*&nbsp;&nbsp;&nbsp;- Bit 
            SFRs<BR>*****************************************************************************/<BR><BR><BR>/////////////////////////////////////////////////////////////////////////////<BR>//&nbsp;&nbsp;&nbsp;&nbsp;Edited 
            by 
            Computer-lov&nbsp;&nbsp;2005.3.19<BR>//&nbsp;&nbsp;&nbsp;&nbsp;AT89C51SND1C.H 
            FILE<BR>////////////////////////////////////////////////////////////////////////////<BR><BR><BR>#ifndef 
            __AT89C51SND1C_H__<BR>#define __AT89C51SND1C_H__<BR><BR>#define 
            Sfr(name,address) sfr name = address<BR>#define Sfr16(name,address) 
            sfr16 name = address<BR>#define Sbit(name,reg,bit_address) sbit name 
            = reg ^ bit_address<BR><BR>/*_____ I N C L U D E S 
            ____________________________________________________*/<BR><BR><BR>/*_____ 
            M A C R O S 
            ________________________________________________________*/<BR><BR><BR>/* 
            C51 CORE */<BR><BR>Sfr (A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 
            0xE0);<BR>Sfr (ACC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0xE0);<BR>Sfr 
            (B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0xF0);<BR>Sfr 
            (PSW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0xD0);<BR>Sfr 
            (SP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0x81);<BR>Sfr 
            (DPL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0x82);<BR>Sfr 
            (DPH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0x83);<BR>Sfr16 
            (DPTR&nbsp;&nbsp;, 0x82);<BR><BR>Sbit 
            (CY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, PSW&nbsp;&nbsp;&nbsp;, 
            7);<BR>Sbit (AC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 
            PSW&nbsp;&nbsp;&nbsp;, 6);<BR>Sbit 
            (F0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, PSW&nbsp;&nbsp;&nbsp;, 
            5);<BR>Sbit (RS1&nbsp;&nbsp;&nbsp;&nbsp;, PSW&nbsp;&nbsp;&nbsp;, 
            4);<BR>Sbit (RS0&nbsp;&nbsp;&nbsp;&nbsp;, PSW&nbsp;&nbsp;&nbsp;, 
            3);<BR>Sbit (OV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 
            PSW&nbsp;&nbsp;&nbsp;, 2);<BR>Sbit 
            (F1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, PSW&nbsp;&nbsp;&nbsp;, 
            1);<BR>Sbit (P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 
            PSW&nbsp;&nbsp;&nbsp;, 0);<BR><BR><BR>/* SYSTEM MANAGEMENT 
            */<BR><BR>Sfr (PCON&nbsp;&nbsp;&nbsp;&nbsp;, 0x87);<BR>Sfr 
            (AUXR&nbsp;&nbsp;&nbsp;&nbsp;, 0x8E);<BR>Sfr 
            (AUXR1&nbsp;&nbsp;&nbsp;, 0xA2);<BR>Sfr (NVERS&nbsp;&nbsp;&nbsp;, 
            0xFB);<BR><BR><BR>/* PLL &amp; CLOCK */<BR><BR>Sfr 
            (CKCON&nbsp;&nbsp;&nbsp;, 0x8F);<BR>Sfr (PLLCON&nbsp;&nbsp;, 
            0xE9);<BR>Sfr (PLLDIV0 , 0xEE);<BR>Sfr (PLLNDIV , 0xEE);<BR>Sfr 
            (PLLDIV1 , 0xEF);<BR>Sfr (PLLRDIV , 0xEF);<BR><BR><BR>/* INTERRUPT 
            */<BR><BR>Sfr (IEN0&nbsp;&nbsp;&nbsp;&nbsp;, 0xA8);<BR>Sfr 
            (IPL0&nbsp;&nbsp;&nbsp;&nbsp;, 0xB8);<BR>Sfr 
            (IPH0&nbsp;&nbsp;&nbsp;&nbsp;, 0xB7);<BR>Sfr 
            (IEN1&nbsp;&nbsp;&nbsp;&nbsp;, 0xB1);<BR>Sfr 
            (IPL1&nbsp;&nbsp;&nbsp;&nbsp;, 0xB2);<BR>Sfr 
            (IPH1&nbsp;&nbsp;&nbsp;&nbsp;, 0xB3);<BR><BR>Sbit 
            (EA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 7);<BR>Sbit 
            (EAUD&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 6);<BR>Sbit 
            (EMP3&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 5);<BR>Sbit 
            (ES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 4);<BR>Sbit 
            (ET1&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 3);<BR>Sbit 
            (EX1&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 2);<BR>Sbit 
            (ET0&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 1);<BR>Sbit 
            (EX0&nbsp;&nbsp;&nbsp;&nbsp;, IEN0&nbsp;&nbsp;, 0);<BR><BR>Sbit 
            (IPLAUD , IPL0&nbsp;&nbsp;, 6);<BR>Sbit (IPLMP3 , IPL0&nbsp;&nbsp;, 
            5);<BR>Sbit (IPLS&nbsp;&nbsp;&nbsp;, IPL0&nbsp;&nbsp;, 4);<BR>Sbit 
            (IPLT1&nbsp;&nbsp;, IPL0&nbsp;&nbsp;, 3);<BR>Sbit 
            (IPLX1&nbsp;&nbsp;, IPL0&nbsp;&nbsp;, 2);<BR>Sbit 
            (IPLT0&nbsp;&nbsp;, IPL0&nbsp;&nbsp;, 1);<BR>Sbit 
            (IPLX0&nbsp;&nbsp;, IPL0&nbsp;&nbsp;, 0);<BR><BR><BR>/* PORTS 
            */<BR><BR>Sfr (P0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0x80);<BR>Sfr 
            (P1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0x90);<BR>Sfr 
            (P2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;, 0xA0);<BR>Sfr 

⌨️ 快捷键说明

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