ioport unsigned int port7000 什么意思

[复制链接]
 楼主| run_mo 发表于 2009-1-10 15:07 | 显示全部楼层 |阅读模式
<br /><br />ioport&nbsp;unsigned&nbsp;int&nbsp;port7000&nbsp;什么意思<br /><br />俺不是学DSP的,请指教<br />
hotpower 发表于 2009-1-10 17:41 | 显示全部楼层

ioport

<br />#define&nbsp;Port_Data&nbsp;port8000<br />#define&nbsp;Port_Ale&nbsp;&nbsp;port8004<br />#define&nbsp;Port_Cle&nbsp;&nbsp;port8002<br /><br />extern&nbsp;ioport&nbsp;unsigned&nbsp;int&nbsp;port8000;<br />extern&nbsp;ioport&nbsp;unsigned&nbsp;int&nbsp;port8004;<br />extern&nbsp;ioport&nbsp;unsigned&nbsp;int&nbsp;port8002;<br /><br />void&nbsp;nFlashObj::FlashId(void)<br />{<br />&nbsp;&nbsp;FlashEnable();//使能FLASH<br />&nbsp;&nbsp;Port_Cle&nbsp;=&nbsp;0x90;<br />&nbsp;&nbsp;__nop();//此处绝对不能少于2个nop()<br />&nbsp;&nbsp;__nop();<br />&nbsp;&nbsp;Port_Ale&nbsp;=&nbsp;0x00;<br />&nbsp;&nbsp;__nop();//此处绝对不能少于2个nop()<br />&nbsp;&nbsp;__nop();<br />&nbsp;&nbsp;FlashSck();//发送时钟信号<br />&nbsp;&nbsp;MakerId&nbsp;=&nbsp;Port_Data;<br />&nbsp;&nbsp;FlashSck();//发送时钟信号<br />&nbsp;&nbsp;DeviceId&nbsp;=&nbsp;Port_Data;<br />&nbsp;&nbsp;FlashSck();//发送时钟信号<br />&nbsp;&nbsp;ThirdCyc&nbsp;=&nbsp;Port_Data;<br />&nbsp;&nbsp;FlashSck();//发送时钟信号<br />&nbsp;&nbsp;FourthCyc&nbsp;=&nbsp;Port_Data;<br />&nbsp;&nbsp;FlashDisable();//禁止FLASH<br />//K9F1G08U0A的ID={0xec,0xec,0xf1,0x80,0x15}<br />//K9F1G08U0B的ID={0xec,0xec,0xf1,0x80,0x95}<br />&nbsp;&nbsp;Active&nbsp;=&nbsp;(MakerId&nbsp;==&nbsp;0xec)&nbsp;&&&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(DeviceId&nbsp;==&nbsp;0xf1)&nbsp;&&<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;((ThirdCyc&nbsp;&nbsp;==&nbsp;0x80)&nbsp;||&nbsp;(ThirdCyc&nbsp;==&nbsp;0x00))&nbsp;&&&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;((FourthCyc&nbsp;==&nbsp;0x15)&nbsp;||&nbsp;(FourthCyc&nbsp;==&nbsp;0x95));<br />}<br />&nbsp;<br />&nbsp;<br /><table class=ubb cellspacing=0><TR><td class=ubb><B>run_mo&nbsp;</B>发表于&nbsp;2009-1-10&nbsp;15:07&nbsp;<font color=#336699><b>侃单片机</b></font>&nbsp;←返回版面&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/profile.gif">&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/fav.gif">&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/edit.gif"></td></TR><TR><td class=ubb><br /><font color=#FF0066>楼主:</font>&nbsp;<U>ioport&nbsp;unsigned&nbsp;int&nbsp;port7000&nbsp;什么意思</U></td></TR><TR><td class=ubb><br /><table class=ubb cellspacing=0><TR><td class=ubb>ioport&nbsp;unsigned&nbsp;int&nbsp;port7000&nbsp;什么意思<br /><br /><br /><br /><br /><br /><br />您是否还在苦苦寻找更小体积的电源解决方案<br /><br />热门讲座:设计更轻松:&nbsp;全新SIMPLE&nbsp;SWITCHER&reg;&nbsp;解决方案及设计工具<br /><br />最快的电路板打样&nbsp;电路板雕刻加工服务&nbsp;从一块板做起&nbsp;24小时交货!</td></TR></table></td></TR></table><img src="https://bbs.21ic.com/club/bbs/Images/blank.gif"><br /><table class=ubb cellspacing=0><TR><td class=ubb><B><img src="https://bbs.21ic.com/club/bbs/images/emote/mood25.gif">&nbsp;hotpower&nbsp;</B>发表于&nbsp;2009-1-10&nbsp;17:24&nbsp;<font color=#336699><b>侃单片机</b></font>&nbsp;←返回版面&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/profile.gif">&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/fav.gif">&nbsp;<img src="https://bbs.21ic.com/club/bbs/images/edit.gif"></td></TR><TR><td class=ubb><br /><font color=#FF0066>2楼:</font>&nbsp;<U>DSP&nbsp;CCS下表示IO空间地址为0x7000的uint16型变量</U></td></TR><TR><td class=ubb><br /></td></TR></table>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

20

主题

44

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部