找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 13061|回复: 7
打印 上一主题 下一主题
收起左侧

51单片机控制32个LED多花样流水灯程序

[复制链接]
跳转到指定楼层
楼主
ID:76127 发表于 2015-4-17 21:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
32个led灯接在51单片机的4个p口上面 刚好32个.下面是程序源码:
  1. #include <reg51.h>

  2. #include <intrins.h>

  3. #define ushort unsigned short                       //P0,P1,P2,P3数据类型是 unsigned short  ;数值范围 :0~~~~65 635

  4. #define uint unsigned int      





  5. ushort code display_P0[]={                         //P0 口显示内容

  6. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,           //P0--》P3逐个堆积点亮部分的P0 流水点亮

  7. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,           //P0  全灭等待

  8. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,   

  9. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  10. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,         

  11. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,        

  12. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,  

  13. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  14. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,         

  15. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,         

  16. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,         

  17. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  18. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  19. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  20. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  21. 0xFF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. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  48. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  49. 0xFF,0xFF,0xFF,0xFF,0xFF,



  50. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  51. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  52. 0xFF,0xFF,0xFF,0xFF,



  53. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  54. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  55. 0xFF,0xFF,0xFF,



  56. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  57. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  58. 0xFF,0xFF,



  59. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  60. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  61. 0xFF,



  62. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  63. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  64. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  65. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  66. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  67. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  68. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  69. 0xFF,0xFF,0xFF,0xFF,0xFF,



  70. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  71. 0xFF,0xFF,0xFF,0xFF,



  72. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  73. 0xFF,0xFF,0xFF,



  74. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  75. 0xFF,0xFF,



  76. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  77. 0xFF,



  78. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,                      //P0--》P3逐个堆积点亮部分的P0 堆积点亮

  79. 0x7E,0x7D,0x7B,0x77,0x6F,0x5F,0x3F,

  80. 0x3E,0x3D,0x3B,0x37,0x2F,0x1F,

  81. 0x1E,0x1D,0x1B,0x17,0x0F,

  82. 0x0E,0x0D,0x0B,0x07,

  83. 0x06,0x05,0x03,

  84. 0x02,0x01,

  85. 0x00,



  86. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                       //P0 闪烁

  87. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  88. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  89. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  90. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  91. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,                      //P0--》P3间隔点亮部分的P0 1,3,5,7 亮。2,4,6,8灭

  92. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  93. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  94. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  95. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  96. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  97. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  98. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  99. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  100. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  101. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  102. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  103. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  104. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  105. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  106. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,



  107. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                    //P0 闪烁

  108. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  109. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  110. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  111. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  112. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,                    //P0--》P3从两边到中间逐个点亮部分的P0逐个点亮

  113. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                    //P0--》P3从两边到中间逐个点亮部分的P0全亮等待



  114. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  115. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  116. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                   //P0--》P3从两边到中间逐个熄灭部分的P0全亮等待

  117. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  118. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,                   //P0--》P3从两边到中间逐个熄灭部分的P0逐个熄灭



  119. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                   //P0 闪烁//

  120. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  121. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  122. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  123. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  124. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,                  //P0--》P3从左到右逐个点亮部分的P0逐个点亮      

  125. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                  //P0--》P3从左到右逐个点亮部分的P0全亮等待

  126. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  127. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  128. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  129. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  130. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                  //P0--》P3从右到左逐个熄灭部分的P0全亮等待            

  131. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  132. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  133. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,                  //P0--》P3从右到左逐个熄灭部分的P0逐个熄灭



  134. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                  //P0 闪烁

  135. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  136. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  137. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  138. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  139. };





  140. ushort code display_P1[]={

  141. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  142. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  143. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  144. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  145. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  146. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,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,0xFF,

  172. 0xFF,

  173. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  174. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  175. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  176. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  177. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  178. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  179. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  180. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  181. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  182. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  183. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  184. 0xFF,0xFF,0xFF,0xFF,0xFF,

  185. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  186. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  187. 0xFF,0xFF,0xFF,0xFF,

  188. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  189. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  190. 0xFF,0xFF,0xFF,

  191. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  192. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  193. 0xFF,0xFF,

  194. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  195. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  196. 0xFF,

  197. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  198. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  199. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  200. 0x7E,0x7D,0x7B,0x77,0x6F,0x5F,0x3F,

  201. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  202. 0x3E,0x3D,0x3B,0x37,0x2F,0x1F,

  203. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  204. 0x1E,0x1D,0x1B,0x17,0x0F,

  205. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  206. 0x0E,0x0D,0x0B,0x07,

  207. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  208. 0x06,0x05,0x03,

  209. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  210. 0x02,0x01,

  211. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  212. 0x00,

  213. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  214. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  215. 0x00,0x00,0x00,0x00,0x00,0x00,

  216. 0x00,0x00,0x00,0x00,0x00,

  217. 0x00,0x00,0x00,0x00,

  218. 0x00,0x00,0x00,

  219. 0x00,0x00,

  220. 0x00,



  221. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  222. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  223. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  224. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  225. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  226. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  227. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  228. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  229. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  230. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  231. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  232. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  233. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  234. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  235. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  236. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  237. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  238. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  239. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  240. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  241. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,



  242. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  243. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  244. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  245. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  246. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  247. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  248. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,



  249. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  250. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  251. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  252. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,

  253. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  254. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  255. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  256. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  257. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  258. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  259. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  260. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,

  261. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  262. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  263. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  264. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  265. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  266. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  267. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,

  268. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  269. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  270. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  271. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  272. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  273. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  274. };      







  275. ushort code display_P2[]={

  276. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  277. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  278. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  279. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  280. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  281. 0xFF,0xFF,0x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xF7,0xEF,0xDF,0xBF,0x7F,

  307. 0xFF,

  308. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  309. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  310. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  311. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  312. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  313. 0x7E,0x7D,0x7B,0x77,0x6F,0x5F,0x3F,

  314. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  315. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  316. 0x3E,0x3D,0x3B,0x37,0x2F,0x1F,

  317. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  318. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  319. 0x1E,0x1D,0x1B,0x17,0x0F,

  320. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  321. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  322. 0x0E,0x0D,0x0B,0x07,

  323. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  324. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  325. 0x06,0x05,0x03,

  326. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  327. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  328. 0x02,0x01,

  329. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  330. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  331. 0x00,

  332. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  333. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  334. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  335. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  336. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  337. 0x00,0x00,0x00,0x00,0x00,0x00,

  338. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  339. 0x00,0x00,0x00,0x00,0x00,

  340. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  341. 0x00,0x00,0x00,0x00,

  342. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  343. 0x00,0x00,0x00,

  344. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  345. 0x00,0x00,

  346. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  347. 0x00,

  348. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  349. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  350. 0x00,0x00,0x00,0x00,0x00,0x00,

  351. 0x00,0x00,0x00,0x00,0x00,

  352. 0x00,0x00,0x00,0x00,

  353. 0x00,0x00,0x00,

  354. 0x00,0x00,

  355. 0x00,



  356. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  357. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  358. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  359. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  360. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  361. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  362. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  363. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  364. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  365. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  366. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  367. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  368. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  369. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  370. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  371. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  372. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  373. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  374. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  375. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  376. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,



  377. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  378. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  379. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  380. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  381. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  382. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  383. 0x7F,0x3F,0x1F,0x0F,0x07,0x03,0x01,0x00,



  384. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  385. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  386. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  387. 0x01,0x03,0x07,0x0F,0x1F,0x3F,0x7F,0xFF,

  388. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  389. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  390. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  391. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  392. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  393. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  394. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  395. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  396. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,

  397. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  398. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  399. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,







  400. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  401. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,

  402. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  403. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  404. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  405. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  406. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  407. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  408. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  409. };







  410. ushort code display_P3[]={

  411. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  412. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  413. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  414. 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,

  415. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  416. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  417. 0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,

  418. 0x7E,0x7D,0x7B,0x77,0x6F,0x5F,0x3F,

  419. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  420. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  421. 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,

  422. 0x3E,0x3D,0x3B,0x37,0x2F,0x1F,

  423. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  424. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  425. 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,

  426. 0x1E,0x1D,0x1B,0x17,0x0F,

  427. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  428. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  429. 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,

  430. 0x0E,0x0D,0x0B,0x07,

  431. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  432. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  433. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,

  434. 0x06,0x05,0x03,

  435. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  436. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  437. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,

  438. 0x02,0x01,

  439. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  440. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  441. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

  442. 0x00,

  443. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  444. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  445. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  446. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  447. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  448. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  449. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  450. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  451. 0x00,0x00,0x00,0x00,0x00,0x00,

  452. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  453. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  454. 0x00,0x00,0x00,0x00,0x00,

  455. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  456. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  457. 0x00,0x00,0x00,0x00,

  458. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  459. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  460. 0x00,0x00,0x00,

  461. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  462. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  463. 0x00,0x00,

  464. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  465. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  466. 0x00,

  467. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  468. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  469. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  470. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  471. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  472. 0x00,0x00,0x00,0x00,0x00,0x00,

  473. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  474. 0x00,0x00,0x00,0x00,0x00,

  475. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  476. 0x00,0x00,0x00,0x00,

  477. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  478. 0x00,0x00,0x00,

  479. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  480. 0x00,0x00,

  481. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  482. 0x00,

  483. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  484. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  485. 0x00,0x00,0x00,0x00,0x00,0x00,

  486. 0x00,0x00,0x00,0x00,0x00,

  487. 0x00,0x00,0x00,0x00,

  488. 0x00,0x00,0x00,

  489. 0x00,0x00,

  490. 0x00,



  491. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  492. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  493. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  494. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  495. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  496. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  497. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  498. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  499. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  500. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  501. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  502. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  503. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,



  504. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  505. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  506. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  507. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  508. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  509. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,

  510. 0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,

  511. 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,



  512. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  513. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  514. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  515. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  516. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  517. 0x7F,0x3F,0x1F,0x0F,0x07,0x03,0x01,0x00,

  518. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  519. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  520. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,



  521. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  522. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  523. 0x01,0x03,0x07,0x0F,0x1F,0x3F,0x7F,0xFF,





  524. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  525. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  526. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  527. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  528. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  529. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  530. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  531. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  532. 0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,



  533. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  534. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,





  535. 0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,

  536. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  537. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  538. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,



  539. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  540. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  541. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  542. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,

  543. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  544. };

  545. void delayms(uint ms)                                //延时子程序



  546. {

  547.   ushort k;                                          

  548.   while(ms--)

  549.   {

  550.     for(k = 0; k < 50; k++);

  551.   }

  552. }      



  553. void main(void)                                     //P0---》P3 初始状态

  554. {

  555.   ushort i;

  556.   P0 = 0xff;

  557.   P1 = 0xff;

  558.   P2 = 0xff;

  559.   P3 = 0xff;

  560.    

  561.   while(1)                                         //定义P0,P1,P2,P3,

  562.    for(i=0;i <946; i++)     

  563.     {

  564.       P0 =display_P0[i];

  565.       P1 =display_P1[i];

  566.       P2 =display_P2[i];

  567.       P3 =display_P3[i];

  568.       delayms(50);

  569.     }

  570. }      

复制代码


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:76273 发表于 2015-4-24 19:06 | 只看该作者
不错挺好的
回复

使用道具 举报

板凳
ID:77945 发表于 2015-4-24 21:04 | 只看该作者
楼主  好好
回复

使用道具 举报

地板
ID:77965 发表于 2015-4-24 23:03 | 只看该作者
感谢分享
回复

使用道具 举报

5#
ID:82807 发表于 2015-6-12 18:08 | 只看该作者
  你能把电路图 和 程序发给我么
回复

使用道具 举报

6#
ID:74408 发表于 2015-6-21 19:59 | 只看该作者
求电路图
回复

使用道具 举报

7#
ID:107657 发表于 2016-3-19 10:37 | 只看该作者
这是什么意思呀   
Build target '目标 1'
compiling xx.c...
linking...
BL51 BANKED LINKER/LOCATER V6.22 - SN: Eval Version
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009
"xx.obj"
TO "xx"
******************************************************************************
* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 1E57H BYTE (379%) *
******************************************************************************
Program Size: data=11.0 xdata=0 code=7782
LINK/LOCATE RUN COMPLETE.  0 WARNING(S),  0 ERROR(S)
*** FATAL ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDED
    MODULE:  E:\\C51\LIB\C51S.LIB (-----)
    LIMIT:   0800H BYTES
目标未创建     
回复

使用道具 举报

8#
ID:109676 发表于 2016-3-19 13:21 | 只看该作者
不错,赞一个
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表