MCB1000.rar

  • PUDN用户
    了解作者
  • TEXT
    开发工具
  • 121KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 5
    下载次数
  • 2015-08-07 05:41
    上传日期
The Blinky project is a simple demo program for the NXP LPC1343 microcontroller using Keil MCB1000 Evaluation Board, compliant to Cortex Microcontroller Software Interface Standard (CMSIS v1.0). Example functionality: - Clock Settings: - XTAL = 12 MHz - SYS Clock = 1 MHz - 8 LEDs blink with a fixed speed, determined by SysTick Timer working in interrupt mode The Blinky program is available in different targets: LPC1343 RAM: runs Internal RAM located on chip (used for target debugging) LPC1343 Flash: runs Internal Flash located on chip (used for production or target debugging)
MCB1000.rar
  • MCB1000.pdf
    125.8KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622bb2973d2fbb00071ff484/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622bb2973d2fbb00071ff484/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">#include "LPC13<span class="_ _0"></span>xx.h" <span class="_ _0"></span> /* LPC13xx defin<span class="_ _0"></span>itions <span class="_ _0"></span> */ </div><div class="t m0 x1 h2 y2 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y3 ff1 fs0 fc0 sc0 ls0 ws0">#define LED_NUM<span class="_ _0"></span> 8 <span class="_ _0"></span> /* Number <span class="_ _0"></span>of user LEDs <span class="_ _0"></span> */ </div><div class="t m0 x1 h2 y4 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y5 ff1 fs0 fc0 sc0 ls0 ws0">const unsigned long led<span class="_ _0"></span>_mask[] = { 1<span class="_ _0"></span>&lt;&lt;0, 1&lt;&lt;1, <span class="_ _0"></span>1&lt;&lt;2, 1&lt;&lt;3, 1&lt;&lt;<span class="_ _0"></span>4, 1&lt;&lt;5, 1&lt;&lt;6,<span class="_ _0"></span> 1&lt;&lt;7 }; </div><div class="t m0 x1 h2 y6 ff1 fs0 fc0 sc0 ls0 ws0">volatile unsigned l<span class="_ _0"></span>ong SysTi<span class="_ _0"></span>ckCnt; /* SysTic<span class="_ _0"></span>k Counter <span class="_ _0"></span> */ </div><div class="t m0 x1 h2 y7 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y8 ff1 fs0 fc0 sc0 ls0 ws0">void SysTick_Handler <span class="_ _0"></span>(void) { <span class="_ _0"></span> /* SysTick Int<span class="_ _0"></span>errupt Han<span class="_ _0"></span>dler (1ms) */ </div><div class="t m0 x1 h2 y9 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">SysTickCnt++;<span class="_ _0"></span> </span></div><div class="t m0 x1 h2 ya ff1 fs0 fc0 sc0 ls0 ws0">} </div><div class="t m0 x1 h2 yb ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 yc ff1 fs0 fc0 sc0 ls0 ws0">void Delay (unsigned l<span class="_ _0"></span>ong tick) { <span class="_ _0"></span> /* Delay Functi<span class="_ _0"></span>on <span class="ls2">*/</span> </div><div class="t m0 x1 h2 yd ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">unsigned long s<span class="_ _0"></span>ystickcnt; </span></div><div class="t m0 x1 h2 ye ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 yf ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">systickcnt = S<span class="_ _0"></span>ysTickCnt; </span></div><div class="t m0 x1 h2 y10 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">while ((SysTickCnt<span class="_ _0"></span> - systickcnt) <span class="_ _0"></span>&lt; tick) __wfi(); </span></div><div class="t m0 x1 h2 y11 ff1 fs0 fc0 sc0 ls0 ws0">} </div><div class="t m0 x1 h2 y12 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y13 ff1 fs0 fc0 sc0 ls0 ws0">int main (void) { <span class="_ _0"></span> /* <span class="_ _0"></span>Main Progra<span class="_ _0"></span>m <span class="_ _0"></span>*/ </div><div class="t m0 x1 h2 y14 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">int num = -<span class="ls3">1; <span class="_ _0"></span><span class="ls0"> </span></span></span></div><div class="t m0 x1 h2 y15 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">int dir = 1; </span></div><div class="t m0 x1 h2 y16 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y17 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">SystemInit(); </span></div><div class="t m0 x1 h2 y18 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;SYSTIC<span class="_ _0"></span>KCLKDIV = LPC_SYSCON-<span class="_ _0"></span>&gt;SYSAHBCLK<span class="_ _0"></span>DIV; /* Set systi<span class="_ _0"></span>ck clock = sys cloc<span class="_ _0"></span>k */ </span></div><div class="t m0 x1 h2 y19 ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">SysTick_Config<span class="_ _0"></span>(SystemFre<span class="_ _0"></span>quency/100); <span class="_ _0"></span>/* Generate in<span class="_ _0"></span>terrupt each ~10 <span class="_ _0"></span>ms */ </span></div><div class="t m0 x1 h2 y1a ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h2 y1b ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;SSPC<span class="_ _0"></span>LKDIV = 0; <span class="_ _0"></span> /* Disable unu<span class="_ _0"></span>sed dividers <span class="_ _0"></span> */ </span></div><div class="t m0 x1 h2 y1c ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;UART<span class="_ _0"></span>CLKDIV = 0<span class="_ _0"></span>; </span></div><div class="t m0 x1 h2 y1d ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;USBCL<span class="_ _0"></span>KDIV = 0; </span></div><div class="t m0 x1 h2 y1e ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;W<span class="_ _0"></span>DTCLKDI<span class="_ _0"></span>V = 0; </span></div><div class="t m0 x1 h2 y1f ff1 fs0 fc0 sc0 ls1 ws0"> <span class="ls0">LPC_SYSCON-&gt;CL<span class="_ _0"></span>KOUTDIV = 0; </span></div></div><div class="pi" data-data='{"ctm":[1.611792,0.000000,0.000000,1.611792,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • Actual-language-of-the-application-of-(single-chip
      这是一篇单片机语言C51应用实战集锦,里面有很多程序实例,非常实用
    • zd_chip.rar
      linux driver, This file implements all the hardware specific functions for the ZD1211 and ZD1211B chips. Support for the ZD1211B was possible after Timothy Legge sent me a ZD1211B device.
    • ON-CHIP-PROGRAMS_PIC16F877.zip
      the contents are pic16f877 programme for ADC, PWM and SERIAL TX and Rx...
    • ipath_init_chip.rar
      Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    • chip_tilegx.rar
      The ELF e_machine type for binaries for this chip.
    • csio_hw_chip.rar
      This file is part of the Chelsio FCoE driver for Linux.
    • mmu_64.rar
      UltraSPARC-III+ and later have a feature whereby you can what page size the various Data-TLB instances in the chip. In order to gracefully support this, we put the version field in a spot outside of ...
    • chip-to-antenna wire bond interconnect
      毫米波雷达前端电路的高性能、低成本互联设计、开发
    • CHIP_8
      这是一个小项目,致力于创建CHIP-8仿真器。 它使用SDL来显示游戏,并且当前仅在linux计算机上工作。 Windows支持将在将来的某个时候添加。 编译: 它使用Cmake进行编译,因此这是您需要做的 cmake . make ./CHIP_8...
    • Proteus7.12.rar
      Proteus7.12完美破解版.rar电路仿真软件很好用可以仿真单片数字模拟电路